On Jan 3, 7:32 pm, aj <[email protected]> wrote:
> Thanks very much Larry!
>
> I have solved the one problem according to your suggestion. But another one
> still there, is that map can't be showed. I have tried many times, but still
> dont understand why it cant be showed.
>
> This time, I just put the map in a table, and checked it, one html, one
> head, one body, it can't be showed in IE and Firefox yet, but when I put the
> <div id="map" style="width: 100%; height: 100%"></div> out of <body> and in
> <head>, it can be showed, but it is out of table, I have had no ideas, could
> you please tell me what happend, how to do it?
>
> link:http://www.easylocation.ca/x2.html         <div id="map" style="width:
> 100%; height: 100%"></div> in <body>

Don't put the script in the table.  Put it at the end, just before the
</body> tag.


>      http://www.easylocation.ca/x3.html         <div id="map"
> style="width: 100%; height: 100%"></div> in <head>
>
> Thanks again!
>
> Alex
>
> 2009/1/2 [email protected] <[email protected]>
>
>
>
> > On Jan 2, 7:04 pm, aj <[email protected]> wrote:
> > > But the map still dosen't be showed in IE, and even though I add the
> > > document.getElementById(
>
> > > > category+"box").checked = false; some markers showed on map, but others
> > > > don't, not all checkbox cleared, why?
>
> > > link:http://www.easylocation.ca/L1-1.html
>
> >         <link href="file:///F:/Small
> > biz/Easylocation/website/web-content/css/
> > basic.css" rel="stylesheet" type="text/css" media="all" />
>
> > 1. I'm not going to let you access the F: drive on my computer and the
> > F: drive on your computer is not available to me...
>
> > Don't use the file:// protocol on websites, remove all references to
> > file:///F:... from the live page.
>
> > 2. There is still no check box with id="cibcbox", there is one with
> > id="cibckbox".  That error causes the rest of the check boxes after
> > that not to be processed.
>
> > 3. starting with check box id="citizensCheckbox" onclick="boxclick
> > ('citizens')" [citizensCheck box, should be citizensbox, and the
> > boxclick function expects 2 arguments.  Some of them are right but
> > most of them have issues]
>
> > 4. Learn to use the Error Console in Firefox, the script debugger for
> > IE (it will make fixing this a lot quicker...).
>
> >  -- Larry
>
> > > thanks
>
> > > Alex
>
> > > 2009/1/2 [email protected] <[email protected]>
>
> > > > On Jan 2, 5:18 pm, aj <[email protected]> wrote:
> > > > > Hi Larry,
>
> > > > > Thanks very much!
>
> > > > > But it is same as before( just 1 body), I dont know why, and how to
> > clear
> > > > > the checkbox? could you please write more clearer for me, I'm not
> > good on
> > > > > Javascript language.
> > > > > link:http://www.easylocation.ca/L1.html
>
> > > > The link you posted previously is:
> > > >http://www.easylocation.ca/L2.html
>
> > > > That has three <body> sections.
>
> > > >http://www.easylocation.ca/L1.html
> > > > does not.  It is also missing:
> > > >        document.getElementById(category+"box").checked = false;
> > > > from the L2 version, which would clear the check boxes.
>
> > > >  -- Larry
>
> > > > > Thanks again!
>
> > > > > Alex
>
> > > > > 2009/1/2 [email protected] <[email protected]>
>
> > > > > > On Jan 2, 10:41 am, "[email protected]" <[email protected]>
> > > > > > wrote:
> > > > > > > aj wrote:
> > > > > > > > Hi Mike,
>
> > > > > > > > Happy new year!
>
> > > > > > > > I have questions now.
>
> > > > > > > > 1, Why I can't show maps in IE, but in Firefox is okay.
>
> > > > > > > I see a map in IE7.  The javascript error that IE reports is:
> > > > > > > Line: 353
> > > > > > > Error: 'document.getElementById(...)' is null or not an object
>
> > > > > > > Because there is no element in the DOM with id "cibcbox".
>
> > > > > > After that error, the map is not longer displayed correctly.
>
> > > > > > The real problem is that your html is invalid.  You have 3 <body>
> > > > > > sections,  only one is allowed.
>
> >http://validator.w3.org/check?uri=http%3A%2F%2Fwww.easylocation.ca%2F..
> > > > .<
> >http://validator.w3.org/check?uri=http%3A%2F%2Fwww.easylocation.ca%2F..
> > > > .>
>
> > > > > >  -- Larry
>
> > > > > > > BTW, the firefox error consol reports the same error:
> > > > > > > Error: document.getElementById(category + "box") is null
> > > > > > > Source File:http://www.easylocation.ca/L2.html
> > > > > > > Line: 342
>
> > > > > > >   -- Larry
>
> > > > > > > > 2, When I run my page, why some marks were showed on map, I had
> > > > hide it
> > > > > > > > initially, and can't hide all marks after I check the Hide all,
> > how
> > > > > > should I
> > > > > > > > do it?
>
> > > > > > > Probably the same root cause.
>
> > > > > > >   -- Larry
>
> > > > > > > > Thanks very much!
>
> > > > > > > > link:http://www.easylocation.ca/L2.html
>
> > > > > > > > Alex
>
> > > > > > > > 2008/12/31 aj <[email protected]>
>
> > > > > > > > > Hi Mike,
>
> > > > > > > > > Now everything is okay, I can see the line after I check the
> > > > > > checkbox. I
> > > > > > > > > did something wrong.
>
> > > > > > > > > Thanks again!
>
> > > > > > > > > Alex
>
> > > > > > > > > 2008/12/27 Mike Williams <[email protected]>
>
> > > > > > > > >> Wasn't it aj who wrote:
> > > > > > > > >> >Hi Mike,
>
> > > > > > > > >> >Thanks very much for your help, I have been learning your
> > > > examples
> > > > > > for
> > > > > > > > >> >long time.
>
> > > > > > > > >> >For this case, I changed the every thing according to your
> > > > > > suggestion,
> > > > > > > > >> >but the line disappeared. I dont know why, could you please
> > > > help me
> > > > > > > > >> >take a look what happend?
>
> > > > > > > > >> >link:http://www.easylocation.ca/example4_1.html
> > > > > > > > >> >Thanks very much
>
> > > > > > > > >> Sorry, "gpolyline[parseInt(n) - 1]" should obviously be
> > > > > > > > >> "gpolylines[parseInt(n) - 1]"
>
> > > > > > > > >> --
> > > > > > > > >>http://econym.org.uk/gmap
> > > > > > > > >> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to