[OSM-talk] remote edit link not working in opera
Tom Hughes
tom at compton.nu
Wed Dec 22 21:32:53 GMT 2010
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 (tom at compton.nu)
http://compton.nu/
More information about the talk
mailing list