i need to display a page with a moving carousel, on slide -- not changing page but showing item in carousel on slide only (w/o page reload). in the carousel the items are then linked to a jqm dialog. how can i do this w/o iframe or embed. this needs to work on swipe though
Have a look to Ariel Flesler's lib LocalScroll :
http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
You can see it in use here : http://nancysellers.net/
Check out http://swipejs.com/
Pros:
License: GPL or MIT
The link to your dialog can be done by simply bind a tap handler to the swiping elements that generates a dynamic dialog like this:
var dialog = jQuery('<div data-role="dialog"> <div data-role="content"> <h1>A Dialog</h1> </div> </div>');
dialog.appendTo(jQuery.mobile.pageContainer);
jQuery.mobile.changePage(dialog);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With