Help - Search - Members - Calendar
Full Version: Multiple Menus on Same Page
xFX JumpStart Public Forums > DHTML Menu Builder > Generic Problems > JavaScript Errors
Less Than Joe
I am putting two menus on the same page...i am getting the attached script error...i have another page that has two menus and this error came up but i forgot how i fixed the problem...can you help?
xfx
I don't think this error is related to the fact that you're using two menus.

Please post a ZIP file with the HTML document loading the two menus and all the related .js files so I can take a look at it.
Less Than Joe
here it is...tell me if this helps...this is the first time i tried zipping files
Less Than Joe
im sorry...wrong html page...here is the right one
xfx
I just noticed two things:

1) The loader code for both scripts must be placed after the opening < body > tag. Right now you have one of the loader codes inside a cell table at the end of the page. You have to move it so both loader codes are one after the other and both after the opening < body > tag.

2) The other issue is that both projects must be compiled using the same type of configuration.
One of your projects is using a config of type relative and the other remote. Make both projects use a config of type remote and recompile them to regenerate the .js files.
Less Than Joe
One of the projects was made with the old Menu Builder and the other is made with 3.5.....How do I change from the default config to remote config in 3.5?

-----------------------------------------------------------

Thanks for your help
Less Than Joe
Nevermind...i figured out how to do it....i have both menus running now but the colors of one are not the same anymore...the background disappeared....any ideas on what could of caused this and how to fix it??

Thanks
xfx
Joe, can you ZIP everything again so I can see your implementation?
Less Than Joe
I have the background working now...just a common sense mistake...but i have both menus moving with the vertical scrollbar but one of them doesn't...any ideas on fixing the problem?...here are the zip files...the one that doesnt follow the scrollbar is the one named PAP...thanks
Less Than Joe
im sorry the PAP file is wrong...here is the correct one...sorry for inconvience....thanks again
xfx
Two things:

1) The code that your pasted it from the documentation to implement multiple menus must always be located after the loader codes. Right now you have it before.

2) Download DMB 3.5.002 and recompile both projects.

After following #1 and #2 your menus should work just fine.
Less Than Joe
i did both....after i put the loader codes before the multiple menus script the attached error comes up and locks up internet explorer....if i put the codes back after the script it still doesnt follow the scrollbar
xfx
JavaScript functions and variables are case sensitive, so if you have set the name of one of your projects to PAP, then you must use "PAP_" or prefix the functions on the shared code. The same goes for the "Main_" prefix.

Take a look at the attached ZIP file which contains your work with all the suggested fixes.
Less Than Joe
works good...thanks for your help
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.