PDA

View Full Version : Script works in Chrome but not FF/IE (Google maps API)



ILoveLamp
04-11-2012, 04:27 AM
Hi there,
First off, first time poster, and I'm thrilled at finding this site. It seems like a lot of helpful people are here.

My page is here:

http://thesportslogbook.com/mapgenerate.php

This should display a map centered on the users location with various icons indicating nearby stadiums.

When I load it in Chrome, it works fine. However, when I load it in IE, I get an error saying " Object doesn't support this property or method"

The 2nd line is where the error is:



function error(msg) {
var s = document.querySelector('#status');
s.innerHTML = typeof msg == 'string' ? msg : "failed";
s.className = 'fail';


Does anyone have any idea what's causing this error?

As you can likely tell from looking at the script, I'm a complete newbie trying to fuddle my way into getting things to work through a patchwork approach, which I know is suboptimal, however it is teaching me a lot (I like to learn by mistakes).

Any help would be much appreciated

ILoveLamp
04-14-2012, 08:01 PM
Any suggestions maybe on at least a good reference site? :)