Help - Search - Members - Calendar
Full Version: DMB Menus in Visual Basic DHTML Project
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
rlhansel
I am trying to use DMB menus in a visual basic DHTML project.  Here is the scenario.  I am trying to embed a "
" tag with an ID field into the caption section.  When I hover on that item I get the error "s.style is null or not an object".

The purpose for adding the div tag is so that I can reference the object in code.

Any suggestions?

Thanks!
xfx
Each command in DMB already has an ID assign to it.

You can use this code to reference to any of the commands in your project using a DOM-compliant browser:

CODE
var itm = mFrame.document.getElementById(id);


And this code for Navigator 4:
QUOTE
var itm = FindNS4Item(id);
function FindNS4Item(id, tl) {
var itm;
var layers = tl.layers;
idn = "MC" + id + "EH" + id;
for(var i=0; i if(layers[i].document.layers.length>0) {
itm = FindNS4Item(id, layers[i].document);
if(itm) return itm;
}
if(layers[i].name.indexOf("EH")!=-1) {
if(layers[i].name==idn) {
return layers[i];
}
}
}
return null;
}
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.