Advertisement

05.19.2008 at 09:38AM PDT, ID: 23414328
[x]
Attachment Details

How do i refer to my <div> in this Javascript?

Asked by Daniish in Web Languages/Standards, JavaScript

Tags: Javascript, Firefox 2.0, www.globexposure.net/index_overlay.php

Hello,

At present my site includes the following code which launches the function 'showFrontLayer' if the icon type is neither pushpin or marker:

if ((poi_markers.getAttribute("icon")!='pushpin') && (poi_markers.getAttribute("icon")!='arrow')) {
                    GEvent.addListener(marker,'click',function(){ showFrontLayer(); });
                }

I want to modify this now so that if the marker is a puspin or arrow it loads any content in a div (id="poi_overview"). I'm half way there except that i don't know how to refer to the div in question - see code snippet below:


Many thanksStart Free Trial
1:
2:
3:
4:
5:
6:
if ((poi_markers.getAttribute("icon")='pushpin') || (poi_markers.getAttribute("icon")='arrow')) {
                    WHAT GOES HERE TO REFER TO THE DIV poi_overview
                }
else {
GEvent.addListener(marker,'click',function(){ showFrontLayer(); });
}
[+][-]05.19.2008 at 09:55AM PDT, ID: 21599490

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Languages/Standards, JavaScript
Tags: Javascript, Firefox 2.0, www.globexposure.net/index_overlay.php
Sign Up Now!
Solution Provided By: sinoj
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.19.2008 at 10:05AM PDT, ID: 21599582

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 10:06AM PDT, ID: 21599591

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 10:07AM PDT, ID: 21599599

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.19.2008 at 10:46AM PDT, ID: 21599937

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628