Displaying 1 result from an estimated 1 matches for "flash_cart".
2006 Jan 10
5
using dynamic element ids with visual_effect
...lication in the
Rails Studio. Part of the demo is a cart in the sidebar which updates
when you add a product to it. As well as updating the div, it also
highlights the most recently added link item. Right now, we do it with:
<script language="JavaScript">
function flash_cart(request) {
var id = request.getResponseHeader(''X-Item-Id'');
new Effect.Highlight(''cart_item_'' + id,
{ startcolor: "#66bb66",
endcolor: "#114411" });
}...