On 22/12/10 20:55, Stephan Knauss wrote:
On 22.12.2010 19:15, Tom Hughes wrote:
A second problem is that because Opera always fires the onload event for
the iframe, even if loading the content failed, the error popup doesn't
work on Opera if JOSM isn't running.
Why not using the CORS routine I implemented for remote control? Sounds
better than waiting for an error.
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RemoteControl#version_command
Because (a) I wasn't aware of it and (b) only the JOSM implementation of
remote control implements it.
I don't actually need to get any data back anyway, so I'm not even sure
that I need a callback. I just need to know if the connection worked. I
think XHR can do that but I have no idea how because I've never used it
directly - I've always used a high level wrapper of some sort.
Tom
--
Tom Hughes ([email protected])
http://compton.nu/
_______________________________________________
talk mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk