Event handler firing one time only
This is truly odd. I've got an index.html file that uses a pageshow event to register a button handler:
$("#mainPage").live("pageshow",function(event) {
console.log("pageshow for mainPage");
$("#submitButton").one("touchend",function(e) {
This is used to handle login logic. When I run my app, this works perfectly one time. I only return to this page when I logout. I can confirm that when I return that the pageshow log shows up. But the submit button handler isn't registered. I can even do
console.dir($("#submitButton"))
just to confirm it is still in the DOM, and it definitely is. But it is like the one() refuses to register the event. Btw, I tried one() because I thought maybe my on() was registering the event twice.