FYI, I finally resolved the issue by switching from the YUI ajax library to a different library. It may have been an cacheing issue. It still doesn't answer why the maps code would be firing in that situation - bug?
On Jan 18, 1:34 pm, tanomsak <[email protected]> wrote: > Hi Tarek, > > I had similar problem with "Invalid argument" error in IE. I don't > know why map was called when set display=none for displaying tabs. But > I can get away with it using off-left technique for hiding inactive > tab panels. I add class to the hiding tab as following. > > .hide_tab { > position: absolute; > left: -10000px; > > } > > On Jan 17, 9:52 pm, Tarek <[email protected]> wrote: > > > Hi Daniel, thanks for the follow up. I tried to reply earlier but for > > some reason the post never showed up. At any rate, the setup of the > > page is that the overview information is loaded with the page and > > shown in a div (id="overview"). If someone clicks on another tab, the > > overview div is set to display=none so it is only loaded one time. The > > map information is loaded when the Maps tab is clicked and that > > information is displayed in a separate div (id="map"). The other tabs > > are all loaded via AJAX into a 3rd div (id="content_area") each time > > that tab is clicked. > > > At any rate, any ideas why that map code would be executing when I'm > > leaving the map tab for another? > > > On Jan 11, 6:36 pm, Daniel Lee <[email protected]> wrote: > > > > It works fine when switching between the map and "Overview" tab. > > > There seems to be a difference in the way the Map container is hidden > > > in this scenario. > > > > I also noticed when switching from Map to Leaderboard tab in Firefox, > > > the map doesn't load either. How are you hiding the map container > > > differently there? > > > > On Jan 8, 9:17 am, Tarek <[email protected]> wrote: > > > > > Hello - I've been wrestling with this bug for a couple of days now and > > > > can't track down the cause so any help would be appreciated. > > > > > If you go to this page:http://www.teeitupnz.com/course.asp?id=101 > > > > > then click on the maps/directions tab, everything works fine, but as > > > > soon as you click on another tab, e.g. Leaderboard, you'll see a > > > > javascript error "Line: 1 Error: Invalid argument." in main.js. This > > > > only occurs in IE (I'm using IE 8). > > > > > The line causing the error is: > > > > return a.width=b > > > > > the value of b at the time of the crash is "-10px". Looking at the > > > > start of the call stack I see var d=Sd(a,[b]); but I have no idea how > > > > we're getting to that line of code. > > > > > What I'm not understanding is why any maps code is firing. When a user > > > > clicks on another tab (e.g. Leaderboard), the DIV containing the map > > > > is set to display: none. > > > > > So my questions are: > > > > > 1. Why is any map code being executed in that situation? > > > > 2. How do I prevent that from happening? > > > > > TIA, > > > > Tarek -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
