Wow thanks. That helped a lot. That made the majority of what I wanted to happen happen, now the side bar code is stuck in some sort of loop.
On Sep 10, 1:30 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Sep 10, 10:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I've installed firebug and I'm viewinghttp://hardins.com/retail3.htm > > > I'm getting this error: > > > map is undefined > > loadMapJSON(Object version=1.0 encoding=UTF-8 feed=Object)retail3.htm > > (line 166) > > (?)()values?a...adMapJSON (line 1) > > [Break on this error] map.addOverlay(marker); > > Your map variable is local to the load function. > > Remove the "var" from in front of it so it uses the global one (which > you define above). > Change this: > function load() { > if (GBrowserIsCompatible()) { > // Create and Center a Map > var map = new GMap2(document.getElementById("map")); > > to this: > function load() { > if (GBrowserIsCompatible()) { > // Create and Center a Map > map = new GMap2(document.getElementById("map")); > > -- Larry > > > > > It seems that I can only get one or the other working (either the > > local search, or the pulling information from a spread sheet working) > > >http://hardins.com/retail3.htmhasthe local search working, and it > > has all of the code in it to make it pull in information from a > > spreadsheet, just something isn't working. I'm having a hardtime > > pinpointing what it is. > > > On Sep 10, 12:19 pm, Garthan <[EMAIL PROTECTED]> wrote: > > > > there are a couple steps before or instead of "open the debugger" > > > > step two for me would be get FireBug its a firefox plugin if you > > > are using firefox3 you need firebug 1.2, when a page has > > > an error it shows a little red icon in the bottom right corner > > > of the page you can click on which opens a window > > > with the errors described by Rossko. It wouldnt help > > > you interpret the errors you see but it makes it obvious > > > where the browser thinks they might be > > > > (there is also an error console under tools.. which shows an error > > > that has been hit > > > and an approximate line number even if you havent installed FireBug) > > > > On Sep 10, 10:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > When using firefox, and go to tools, javascript debugger, the open > > > > windows pane, and then go to the current open document > > > > > It opens up the source code for the page I am wanting to fix. What is > > > > the next stop to figuring out whats wrong? I go to look at the help > > > > file and I'm not sure where to start with this. Any tips? I'd like > > > > to learn, I just need a little push in the right direction. > > > > > On Sep 10, 10:53 am, Rossko <[EMAIL PROTECTED]> wrote: > > > > > > > I know enough how to move some things around and > > > > > > see if it works, but not why or why not it is or isn't working. > > > > > > Unfortunately, cut'n'paste won't get you very far in this game, that's > > > > > just the way it is. You can become a programmer, hire one, or adjust > > > > > expectations :) > > > > > > Let me try a bigger clue. You added this line > > > > > map.addControl(new google.maps.LocalSearch()); > > > > > to your code. That's going to look for a GMap2 object called 'map' > > > > > and add a search bar to it. > > > > > It fails, complaining it can't find an object called 'map' - it tells > > > > > you so, by ' map is not defined '. > > > > > > Now look through your code to see where you DO define your map > > > > > object ... "something = new GMap2" > > > > > The 'something' is what your object is really called, so you need to > > > > > change the .addControl() to match, so that it tacks the LocalSearch > > > > > onto the right object. > > > > > > cheers, Ross K- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---