jquery/jquery-mobile — Issue #3696: Can't trigger events on the first page loaded using on()/off()
Author: frequent
Created: 2012-03-01 10:33:32+00:00
State: open

@johnbender

Sorry to repost this. I think I have narrowed #3645 down to what's wrong.

I used your fiddle from #3645. This is the new fiddle: http://jsfiddle.net/hDGVZ/3/

The problem is, you cannot trigger an event on the first page being loaded using on(). Doesn't work with pageID or div.jqmData(role="page").

If I do this using live() instead, I can set a listener for the the first page on both #pageID or div:jqmData(role="page"). They both fire as expected when the page loads.

However if I use on(), none of the events get triggered on the first page. Subsequent (or multi) pages work as expected.