Manipulating Tiggzi Components with jQuery Mobile
Max
As am extension to your tutorial here:
http://blog.tiggzi.com/2012/03/manipu...
How would I navigate to a new page associated with the newly dynamically created list ?
thank you
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Max
As am extension to your tutorial here:
http://blog.tiggzi.com/2012/03/manipu...
How would I navigate to a new page associated with the newly dynamically created list ?
thank you
You can define navigation as always, Click event, then Navigate to Page.
yes but as it is unknown which list item the user will click how do i overcome this.
Is there a separate page for each item in the list?
lets say from your example, then you don't know how many items are going to be created.how do i link each item in the list to there own separate page
You either need to have a page for each link or one page and load its content dynamically (or part of it).
but the items in the list are created dynamically so i cannot create a link as i don't know how many required.How would I implement the one page option.
Thanks Max
As you generate the list, you need to add an id to each item. When you click on the list, you will read the id and know where you clicked and where you need to go.
To change content is runtime, you would need to manipulate the DOM.
i tried using the following on click event but nothing happens
-------------------------------------------$('li').each(function(index) {
alert(index + ': ' + $(this).text());
});
Can you offer a better solution
Where exactly did you try it and what is the result? Did you see any error messages in Chrome Developer Tools Console/