Sie sind nicht angemeldet.

1

Mittwoch, 21. Oktober 2015, 19:40

Error handling

I'm working on a web app that does a pano exported from Panotour. I have the piece working, but I want to put in some error handling in case an XML file can't be found or if some other error happens.

I've been able to get Javascript errors taken care of, but trying to get the "onloaderror" handler to fire is proving to be difficult.

I've tried adding the onloaderror to the first <event> tag, and have had no success. I've also tried to include it through javascript with initvars by doing a

Quellcode

1
settings["events.onloaderror"] = "js(tour360ErrorHandle())";



If anyone has any ideas or suggestions so that I can do some proper handling in case things go south for some reason, I would greatly appreciate the expertise.

toosten

Fortgeschrittener

Beiträge: 521

Wohnort: Berlin

Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )

  • Nachricht senden