September 1, 2005
@ 06:34 PM

I have a LazyWeb request. I plan to write an article about my Seattle Movie Finder hack which is built on the MSN Virtual Earth APIs next week. Currently the application works in Internet Explorer but not in Firefox. This isn't due to any issues with VE but has to do with the fact that I don't know what the Firefox alternatives to innerHTML and some other properties of the DOM in IE actually are nor do I have time to brush up on writing Firefox-specific Javascript.

If any kind soul can do a view source on the Seattle Movie Finder and modify it to also work in Firefox, I'd appreciate it. Thanks in advance.

Update:  Julien Couvreur just swung by my office and fixed the page so it works in Firefox & IE. The new version of the site should be up in a few hours.


Thursday, September 1, 2005 8:56:09 PM (GMT Daylight Time, UTC+01:00)
Dare, I commented on another post of yours about innerHTML in firefox. firefox fully suppports innerHTML, its right here in the gecko dom reference:

After looking at you JS code, there are only a few things that I noticed off the bat that would need to change.

You need to pass 'null' in your .send() method on the XMLHttpRequest object.

You are using the .selectNodes() method on an element, I dont think firefox supports that, I've run into problems with it in firefox, but I'd have to dig up an example as I can't remember off the top of my head.

Thursday, September 1, 2005 9:58:07 PM (GMT Daylight Time, UTC+01:00)
Folks are going to have trouble developing against your webservice, because of the "same domain" restrictions that apply to XMLHttpRequest.

I noticed that you're using m(i) for accessing arrays, instead of m[i].
Also, you're using getElementById to get an element which doesn't actually have an ID, but only has a NAME. That wouldn't work outside of IE.

Here's how to emulate selectNodes in Firefox:
Wednesday, September 7, 2005 10:03:22 PM (GMT Daylight Time, UTC+01:00)
"nor do I have time to brush up on writing Firefox-specific Javascript"

Just wanted to comment on that little bit you wrote: its not Firefox specific javascript, its standards-compliant. There's a difference.

Firefox/Mozilla support the standards whereas IE has many propritary methods that work only in IE -- not in Moz, FF, Opera, Safari, or anywhere else. Hope you get your project working and standards compliant!
Comments are closed.