Displaying 2 results from an estimated 2 matches for "add_product_form".
2008 Jul 10
0
JavaScript Form Submit with form_remote_tag
...cript instead of a
regular form submit button. Here is my code:
<%=
form_remote_tag(
:url=> { :controller=>''store'', :action=>''add_to_cart_ajax'', :id =>
@product.id, :variation => @variations[i].id },
:html => {:name => ''add_product_form''},
:complete => "showPopWin(''/store/show_cart'', 600, 400, null,
true)",
:failure => ''alert("That item appears to have gone out of stock
before you were able to add it to your cart.\n\nPlease refresh this
page.")'',
:u...
2006 Jun 21
2
Using RJS to highlight one LI if using insert_html on an UL?
It seems common to use RJS for quickly adding and highlighting a list
that is having content added to it like this:
http://rafb.net/paste/results/Z3m32g48.html
... where "my_list" would be an UL and the partial would insert a LI.
Given that example, is there an easy way to highlight only the newly
inserted LI instead of the whole UL? The only way I can see to do it is
to give