Help - Search - Members - Calendar
Full Version: "null" problem in Safari
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
desertrat21
My menu works great with all the other browsers, but Safari doesn't like the format of some of the JavaScript.

In the JavaScript the "%%REP%%" in front of the page names is returning null and Safari is adding it to the URL.

example:
onclick="cFrame.execURL('%%REP%%Incubator.htm','_self');">
INCUBATOR DESIGN

In testing, I removed the %%REP%% from a local copy and it works as expected and removing it does not seem to break other browsers.

The problem is, how do I get DMB to create the Safari friendly script? I don't want to manually edit all of the code.
wacko.gif
xfx
Hello desertrat21,

The "null" appearing in Safari after clicking a menu item is an indication that your HTML documents contain multiple (two or more) instances of the menus' loader code; specially the portion of the code that defines the images:

CODE
<div id="dmbri" style="position:absolute;">
<img src="/menu/images/dmb_i.gif" name="dmbif" width="1" height="1" alt="">
<img src="/menu/dmb_m.gif" name="dmbjs" width="1" height="1" alt="">
</div>


Check your HTML documents' source code and make sure that the menus' loader code only appears once.
This should correct the problem.
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.