Menu Arrays loaded between script tags

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
wmswartz
Beginner
Beginner
Posts: 2
Joined: Thu Sep 26, 2002 6:49 pm
Location: California

Menu Arrays loaded between script tags

Post by wmswartz »

Hi,

I ran this by Andy, and he said this would work, however I can't seem to make it work.

To test this out, I took then entire menu_array.js file and loaded it into menu.htm between script tags like this ( see below - abbreviated) I didn't modify the file at all, just copied and pasted between the script tags.. And ... No Menu.
I then deleted the stuff in between the script tags, and re-inserted the reference to menu_array.js and everything worked fine. Tried this on both IE 6, and Mozilla 1.0 both have the same behavior.

Code: Select all

<script language=javascript>
// Example of how I loaded the data between the script tags
menunum=0;menus=new Array();
timegap=500			// The time delay for menus to remain visible

style1=[	// style1 is an array of properties. You 
addmenu(menu=[
</script>
tia
Bill
wmswartz
Beginner
Beginner
Posts: 2
Joined: Thu Sep 26, 2002 6:49 pm
Location: California

works fine

Post by wmswartz »

Not sure what was causing this, but it works fine.

Also, if anyone is interested, I am just about done with a DotNet control that will read an XML file and create the Milonic Menu. It does have a limitation in that I validate numbers. This would cause a problem where you would want to insert a script instead of a number.

This could be very powerful in that the next step would be to have the menu created from a database, and dynamically change based upon users, and or page content.

If anyone wants this when I get done, email me at wmswartz@sbcglobal.net.

I am also spending a little time documenting the Style and Array items as I go through my debugging process.

Bill
Post Reply