Join GitHub today
Exception in $.mobile.focusPage function with native iPhone #5029
when I load my app with Cordova 1.7.0 with jqm 1.2.0-rc1 and jq 1.8.1, I have an issue during the initialization and each time I use $.mobile.changePage("#name_of_the_hash").
I just copied/paste that in an html file, added cordova.js and run this example through iphone simulator 5 and 6 and I got Error: SYNTAX_ERR: DOM Exception 12.
Luckily for you, I was able to see what line cause the problem: line 3245 (jqm 1.2.0-rc1).
If I do a page.find(".ui-title"), it returns an empty array.
I'm seeing this with jqm 1.3.1 and jQuery 1.9.1, running in iPhone simulator. Both titles seem to exist.
I found out that you can get rid of the error by changing from