Page 2 of 2

Manipulating Tiggzi Components with jQuery Mobile

Posted: Fri Apr 13, 2012 7:18 pm
by mcgrathken.kmg

I couldn't get it to work and saw no errors so began to try this for dynamic page generation

-------------------------------------------------------------------------------------------------

/* Dynamically create a page and navigate to it.
(and include the page in browser history ) */

create markup
//var newPage = $("divdivh1/h1div);

append it to the page container
newPage.appendTo( $.mobile.pageContainer );

go to it
$.mobile.changePage( newPage );/*


Manipulating Tiggzi Components with jQuery Mobile

Posted: Fri Apr 13, 2012 7:26 pm
by mcgrathken.kmg

i couldn't get it to work and wasn't throwing an error.
So I was trying to get working on the click event of the list
Image


Manipulating Tiggzi Components with jQuery Mobile

Posted: Fri Apr 13, 2012 7:43 pm
by mcgrathken.kmg

i couldn't get it to work and wasn't throwing an error.
So I was trying to get working on the click event of the list

-----------------------------------------------------------------------------------------------------------

/* Dynamically create a page and navigate to it.
(and include the page in browser history )

//create markup
var newPage = $("divdivh1TestPg/h1div

//append it to the page container
newPage.appendTo( $.mobile.pageContainer );

//go to it
$.mobile.changePage( newPage );*


Manipulating Tiggzi Components with jQuery Mobile

Posted: Fri Apr 13, 2012 11:13 pm
by maxkatz

I'm not sure I understand how this code relates to adding a click event to a list item.


Manipulating Tiggzi Components with jQuery Mobile

Posted: Sat Apr 14, 2012 11:00 am
by mcgrathken.kmg

i need to create a new page when a list item is clicked , i'm trying to append it to a new container.


Manipulating Tiggzi Components with jQuery Mobile

Posted: Sun Apr 15, 2012 11:49 pm
by maxkatz