- Where Developers Learn, Share, & Build Careers


I am new to jQuery Mobile & amp; Phonegap I'm trying to build an app that can run on multiple platforms. Actually, I have an HTML file that contains some DIVs (used as separate pages). From the Home screen, I have a button to link to another page:

  & lt; A href = "#getCategories" onclick = 'GetCategories (0);' Data-transition = "pop" data-roll = "button" & gt; Get Categories & lt; / A & gt;   

GetCategories (classid) Ajax request to return results based on the variable class.

I have shown "#getcategories" "screen and all information properly without any problems. I have approximately 6 categories and each has a different category, from 1 to 6. I also get Get class classes in each category to get my sub-categories, but this is not work.

Please note that the web service returns from In the DIV who use to fill all the information, I I set the ID for it (of course it does not work). If I use the 'class' of this div, this will work, but the back button will point directly to the home page, not the parent category .

I really want every page to navigate back, click on the right button, i.e. take the sub-categories page to my parent category page if the back button is clicked.

Someone Thank you very much. Thank you very much.

Try using: < Pre> $ ('# your_a_id') .bind ('vclick', function () {GetCategories (0);});

Features Javascript events usually do not run on HTML with jquery mobile.

Always use .bind () and jqmobile events.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -