Phonegap jquery mobile link to external page and the DOM navigation -


when use phonegap , jquery mobile, required identify external links full path such 'http://mywebsite.com/register.html'. assumed so, page still added dom per jquery mobile documentation

'by default, when click on link points external page (ex. products.html), framework parse link's href formulate ajax request (hijax) , displays loading spinner.'

my problem when register.html page loaded (which happens form), when click on submit button within form, jquery code catch never seems fire.

$('#registerform').live("submit", function() {  alert("here "); event.preventdefault();  }); 

i have tried wrapping within various events (on pageinit, pageshow, etc.) , never seems catch it. works in browser fine.

i not sure if external page in dom (i not sure how tell) , or if not using proper event (pageshow, etc) catch it. proper event?
have no problem catching submits if form internal page within index.html. anyhelp appreciated.

you can add rel="external" attribute link tag.

adding make register.html load scripts etc. normal page.

now cant see code on this, if havent tried it, suggest so.

oh.. 1 thing more.. jquery live() removed in newer versions of jquery


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -