user1411823
user1411823

Reputation: 25

Getting "Object doesn't support this property or method" error in IE7 with this javascript and problems with tabs not anchoring properly

Now getting error Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C) Timestamp: Fri, 15 Jun 2012 02:20:10 UTC

Message: Object doesn't support this property or method Line: 210 Char: 2 Code: 0 URI: http://www.seanprovost.com/frah_dev/j/s_jsInit.js

and my tabs arent anchoring right in IE7

$("#map").gMap({
            markers: [{ 
                latitude: 34.816117,
                longitude: -86.491022,
                html: "Flint River Animal Hospital",
                icon: { image: "i/googlePin.png", 
                      iconsize: [26, 46],
                      iconanchor: [12, 46],
                      infowindowanchor: [12, 0] },
                }],
            zoom: 14
});

----> $('#boaSectLeft').localScroll({ target:'#sections' });

Anyone know whats going on with it?

Upvotes: 0

Views: 2702

Answers (2)

ataddeini
ataddeini

Reputation: 4951

This might be the issue. I see you have a comma after defining your icon object (i.e the comma at the end of line infowindowanchor: [12, 0] }, which causes issues in IE.

Upvotes: 0

Danilo Valente
Danilo Valente

Reputation: 11352

Remove the last comma:

$("#map").gMap({
    markers: [{ 
        latitude: 34.816117,
        longitude: -86.491022,
        html: "Flint River Animal Hospital",
        icon: { image: "i/googlePin.png", 
            iconsize: [26, 46],
            iconanchor: [12, 46],
            infowindowanchor: [12, 0] }//Here
    }],
    zoom: 14
});

Because icon is the last property of your object.

However, it was supposed to work, at least in Chrome.

Upvotes: 1

Related Questions