The above xml package demonstrates how to use the allow engine attribute (which defaults to false). After setting the attribute to true your package will be available to the xml package engine methods, e-packagename.aspx and x-packagename.aspx. To include the skin use e-packagename.aspx. To run the package without the skin use x-packagename.aspx.<br />
The above function, updateMiniCart, will insert the AJAX response into the target div, vMiniCart. This method should be called when the item is added to the cart. The random number appended to the request URL keeps IE6 from caching the AJAX response. <br />
Engage and Inform with Movement<br /><ul><li>Users are used to posting back.
The more direct you can be with your users, the better.
Let us show the item moving to the cart.</li></ul>Movement Demo<br />
MoveElementToElement<br />This function should be called when initiating the AJAX call. It clones the element being passed in (the product image), positions the clone absolutely, animates the clone moving to the cart, and then removes the clone.<br />
Let the user choose</li></ul>Lightbox Demo<br />
For this example we will use a jQuery plugin called ColorBox. The above html will be created for each product on the category page. It is a link to the product page using x-dash so that it does not include the skin. We also pass “isquickview” on the query string so that we can toggle elements on the product page if the product is being viewed from quickview.<br />We then tell ColorBox to open all links with the class “productquickview” in a lightbox.<br />In order to use the product xml package in this way we must set it’s “allowengine” attribute to true. This will allow us to call x-product.ajaxproduct.aspx?productid=42&isquickview=true.<br />
The technology is ready, most development stratagies are not.</li></ul>HTML5 Demo<br />
The 8 lines of css above use CSS 3 to animate the cart dropping down when the user hovers over the minicart. –webkit-transition takes 3 parameters: attribute to animate (height), duration (1s), and transition type (ease-in-out). Note that mozilla based browsers have a similar attribute named –moz-transition.<br />The example above has a hard coded height per row. Unfortunately transitions do not yet support percent correctly.<br />
HTML5 Focus<br />-<br /><ul><li>Client Side Storage