mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

Manipulating Tiggzi Components with jQuery Mobile

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 );/*

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

Manipulating Tiggzi Components with jQuery Mobile

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

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

Manipulating Tiggzi Components with jQuery Mobile

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 );*

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Manipulating Tiggzi Components with jQuery Mobile

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

mcgrathken.kmg
Posts: 0
Joined: Sat Feb 04, 2012 6:03 pm

Manipulating Tiggzi Components with jQuery Mobile

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

Return to “Issues”