Ralph, thanks for the link, I think in essence this is what I am
trying to do.  with separate divs and separate sidebar instances.
That was how i would have done it, but really didnt think it through
enough.

What I am a little confused about is in the link, they use this:
 else if (gmarkers[i].myid == "#style4"){
123 html4 += '<a href="javascript:myclick(' + i + ')">' +
gmarkers[i].myname + '</a><br>';
124 document.getElementById("side_bar4").innerHTML = html4;
125 }

I understand the concept here, but what is "#style4". I had thought it
was a css style point to a div. but I cant seem to find it.


On Oct 5, 8:38 pm, daniel <[EMAIL PROTECTED]> wrote:
> Martin, I added the suggested code.  But the only difference i am
> noticing is the "undefined" before the first entry from the array.
>
> I would think that I would need to have several "sidebar" class
> instances. Just to clarify what I am thinking:
> Checkbox---
>    <div class="side_bar"></div>
> Checkbox--
>  <...."side_bar"...>
>
> Is this reasonable?
>
> On Oct 5, 6:20 pm, Martin <[EMAIL PROTECTED]> wrote:
>
> > Try something like this (it's untested btw!):
>
> > function makeSidebar() {
> > var html = '', categoryHtml={}; // create an object to use as an
> > associative array of strings - an element for each marker category
> > for (var i=0; i<gmarkers.length; i++) {
> > if (!gmarkers[i].isHidden()) {
> > categoryHtml[gmarkers[i].mycategory]+='<a href="javascript:myclick(' +
> > i + ')">' + gmarkers[i].myname + '</a><br>';}
> > }
>
> > for (i in categoryHtml){
> > // here you could add title html for each category of links
> > html+=categoryHtml[i];}
>
> > document.getElementById("side_bar").innerHTML = html;
>
> > }
>
> > Martin.
>
> > On 5 Oct, 07:30, daniel <[EMAIL PROTECTED]> wrote:
>
> > > I have a request from my boss to break up my current 1 sidebar into
> > > many.
>
> > > my map is very similar tohttp://www.osu.edu/map/google.php(asfaras
> > > the check boxes are concerned).  What he wants for whatever reason is
> > > to have the sidebar text show under the checkbox based on the checkbox
> > > being checked...
>
> > > I saw this:http://wolfpil.googlepages.com/toggle-cats.html
>
> > > and it seems close, but I my knowledge of javascript isn't developed
> > > enough to know what to tell the guy.
>
> > > Any help would be much appreciated.
--~--~---------~--~----~------------~-------~--~----~
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