I am trying to convert my tours to iPad/iPhone friendly and my onstart action in xml which calls a javascript function is not working.
How the function is defined:
Code
var viewerInterface = {
...
initTour: function(){
if(!viewerInterface.ready){
viewerInterface.init();
}
if(document.location.hash){
viewerInterface.updateCurrentTour(
document.getElementById(
document.location.hash.substr(1)).getElementsByTagName("a")[0]);
} else {
viewerInterface.updateCurrentTour(document.getElementById("hc_movielist")
.getElementsByTagName("ul")[0].getElementsByTagName("li")[0]
.getElementsByTagName("a")[0]);
}
viewerInterface.changethumb(viewerInterface.currentTour.parentNode);
},
...
}
Display More
How it is called:
The error:
Note that this works fine in Flash.
The tour: http://www.harrcreative.com/realestate/109
A related thread: Javascript interface doesn't work on iphone HTML5?