Google Groups Home
Help | Sign in
Message from discussion Multiple sidebars?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Martin  
View profile
 More options Oct 5 2008, 7:20 pm
From: Martin <warwo...@gmail.com>
Date: Sun, 5 Oct 2008 16:20:27 -0700 (PDT)
Local: Sun, Oct 5 2008 7:20 pm
Subject: Re: Multiple sidebars?
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 <dajohnso...@gmail.com> 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(as far as
> 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.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google