I have a very straightforward setup at the moment.
index.html has 2 links. Using jQuery I handle the .click event of the links and call app.navigate to load either "test.html" or "about.html". They both load correctly as far as static HTML goes, however anything inside of a jQuery block does not work.
For example on about.html I have a link with id="test". with the jQuery of :
it does not show an Alert. If I move the Alert as regular JS code it works or if I move the jQuery code and "test" link to the main view (index.html) it works.
So it seems pretty obvious that any jQuery code (or at least events) not in the index.html and referencing HTML elements that exist in the DOM at the moment won't work correctly.
Is this a known bug? It seems like an incredibly large oversight.
index.html has 2 links. Using jQuery I handle the .click event of the links and call app.navigate to load either "test.html" or "about.html". They both load correctly as far as static HTML goes, however anything inside of a jQuery block does not work.
For example on about.html I have a link with id="test". with the jQuery of :
$(
"#test"
).click(
function
(e){
alert(
'inside click'
);
});
it does not show an Alert. If I move the Alert as regular JS code it works or if I move the jQuery code and "test" link to the main view (index.html) it works.
So it seems pretty obvious that any jQuery code (or at least events) not in the index.html and referencing HTML elements that exist in the DOM at the moment won't work correctly.
Is this a known bug? It seems like an incredibly large oversight.