Help - Search - Members - Calendar
Full Version: Need to edit menu code aaaagh!
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
wirecreative
Hi,

I'm a web developer who's inherited a site for maintenance work that uses DMB DHTML ENGINE 1.1.29. I gather that's an old version? Anyway, the menu has worked fine, but it hadn't been updated for menu changes in over two years. I needed to get into the menu and remove a few menu links. What a nightmare. The source files for the menu were not formatted at all -- no line breaks and some code shortcuts that made the actual menu portion of the js file not easily decipherable (looks like code written by a piece of software, is that right?).

I've gone through the js file and painstakingly rebuilt the code and now I'm getting an error that I think is located in this line (the error messages are not pointing me to the correct line; I've sussed this out by gradually deleting every line of the mebu code until the errors stopped):

CODE
<div nowrap style=\"position: absolute; left: 1px; top: 1px; width: 121px; height: 21px; font-family: Verdana; font-size: 11px; font-weight:normal;font-style:normal;text-decoration:none;color:#2F2F2F;cursor:default;background-color:#EFEFEF;\" id=0 \"cFrame.HoverSel(0,\'_\',\'_\',this);status=\'\';\" OnClick=\"cFrame.execURL(\'/company/index.asp\',\'frames[\'self\']\');\">


And I think it's centered on the bit "\'frames[\'self\']\" because the original file had some unreadable characters on either side of "self" that I assumed were "". I guess not.

Here's the link to the testing page:
http://prosight.wirecreative.net/index.menu.asp

I've put the code directly in this page for easier debugging. The javascript errors claim the error is in line 1096, but they are actually in the menu building code above. Check out line 827 for the line referenced here. The error in that line is likely repeated several more times througout the following code, but that should be easy to fix once the problem in that line is figured out.

Thanks if you can help!

Greg
Hywel
The menu files aren't formatted so that they're smaller.  Yes, it is generated by software.

I suspect it will be quicker, and ultimately cheaper, to buy a new version of the software and re-do the menu.
wirecreative
Like I said, I'm almost there, but apparently there's an error in the portion of the code that specifies the actual menu items. Just wondering if anyone can help with that.
Hywel
What happens if you take out the carriage returns after the plus signs?
Hywel
Any chance you could ZIP up all the text files that are needed for that page?  Just HTML, CSS, and JavaScript, with the directory structure, then attach the ZIP to a post here.

It works fine in Firefox, BTW!:)
chrisw184
Honestly, Hywel is right..it would be cheaper and quicker to just buy the software...then you have it for future menu's that you could create.

The menu you are using could be built, from scratch, in about 10 minutes, seriously..and no...I'm not on commission for selling the software lol!!

As a professional this software is the easiest to use, with excellent support if needed and if you see another menu you like, say created in Flash or something, then you can challenge the creator to recreate it using this program...if he can't do it he will give you the software for free!! how wgood is that.

Seriously...once you use the software, which isn't hard to learn at all, you will wonder why you ever pulled your hair out looking through all that code!

Chris
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.