Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:17

invalid argument


Poster: run4it
Dated: Saturday July 31 2004 - 0:33:21 BST

I am experiencing an Invalid Argument error message in IE6 and my menus won't render. The script debugger says that the function spos() is the offender. Any suggestions?


Poster: Ruth
Dated: Saturday July 31 2004 - 1:02:53 BST

You need to post a test page so we can check it out. Without seeing your code and your page with the menu calls and any other script items, there's no way to really tell what's causing the problem.

Ruth


Poster: run4it
Dated: Monday August 2 2004 - 18:01:07 BST

What is the "newest" doctype that these menus will run on? It works with no doctype, but will not work with XHTML transitional or strict.


Poster: John
Dated: Monday August 2 2004 - 19:07:09 BST

Works with mine...
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Still need a URL as Ruth requested.


Poster: run4it
Dated: Monday August 2 2004 - 19:08:45 BST

What menu are you using?


Poster: run4it
Dated: Monday August 2 2004 - 19:12:41 BST

John - when I use this:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

I get "Object doesn't support this property or method" when I mouse over the menu item."

When I use this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

I get Invalid Argument and the menus don't render.


Poster: John
Dated: Monday August 2 2004 - 20:28:09 BST

run4it wrote:
What menu are you using?

If you mean version - 5.36 (current). It's running both the standard and beta tree menu system.

Got a URL we can hack at?


Poster: run4it
Dated: Monday August 2 2004 - 20:29:16 BST

its on our intranet.

But I think the problem must be in here:

// Special effect string for IE5.5 or above please visit http://www.milonic.co.uk/menu/filters_sample.php for more filters
effect = "Fade(duration=0.2);Alpha(style=0,opacity=100);Shadow(color='#777777', Direction=135, Strength=2)"

timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=40 // Follow Scrolling Rate
suboffset_top=00; // Sub menu offset Top position
suboffset_left=00; // Sub menu offset Left position
closeOnClick = true

style1=[ // style1 is an style array of properties for the main menu. None is used in this menu because the main
//menu item is an image
"", // 1. Mouse Off Font Color
"", // 2. Mouse Off Background Color
"", // 3. Mouse On Font Color
"", // 4. Mouse On Background Color
"", // 5. Menu Border Color
, // 6. Font Size in pixels
"", // 7. Font Style (italic or normal)
"", // 8. Font Weight (bold or normal)
"", //9. Font Name
, //10. Menu Item Padding
, //11. Sub Menu Image (Leave this blank if not needed)
, //12. 3D Border & Separator bar
, //13. 3D High Color
, //14. 3D Low Color
, //15. Current Page Item Font Color (leave this blank to disable)
, //16. Current Page Item Background Color (leave this blank to disable)
, //17. Top Bar image (Leave this blank to disable)
, //18. Menu Header Font Color (Leave blank if headers are not needed)
, //19. Menu Header Background Color (Leave blank if headers are not needed)
, //20. Menu Item Separator Color
]


style2=[ // style2 is an array of properties for the Table of Contents submenus
"F8F9B8", //1. Mouse Off Font Color
"388847", //2. Mouse Off Background Color
"388847", //3. Mouse On Font Color
"F8F9B8", //4. Mouse On Background Color
"F9DDCB", //5. Menu Border Color
10, //6. Font Size in pixels
"normal", //7. Font Style (italic or normal)
"bold", //8. Font Weight (bold or normal)
"Verdana, sans-serif", //9. Font Name
4, //10. Menu Item Padding
"graphics/arrow2.gif", //11. Sub Menu Image (Leave this blank if not needed)
, //12. 3D Border & Separator bar
, //13. 3D High Color
, //14. 3D Low Color
, //15. Current Page Item Font Color (leave this blank to disable)
, //16. Current Page Item Background Color (leave this blank to disable)
, //17. Top Bar image (Leave this blank to disable)
, //18. Menu Header Font Color (Leave blank if headers are not needed)
, //19. Menu Header Background Color (Leave blank if headers are not needed)
, //20. Menu Item Separator Color
]


style3=[ // style3 is an array of properties for the Extras submenus
"F8F9B8", //1. Mouse Off Font Color
"C05209", //2. Mouse Off Background Color
"C05209", //3. Mouse On Font Color
"F8F9B8", //4. Mouse On Background Color
"F9DDCB", //5. Menu Border Color
10, //6. Font Size in pixels
"normal", //7. Font Style (italic or normal)
"bold", //8. Font Weight (bold or normal)
"Verdana, sans-serif", //9. Font Name
4, //10. Menu Item Padding
"graphics/arrow2.gif ", //11. Sub Menu Image (Leave this blank if not needed)
, //12. 3D Border & Separator bar
, //13. 3D High Color
, //14. 3D Low Color
, //15. Current Page Item Font Color (leave this blank to disable)
, //16. Current Page Item Background Color (leave this blank to disable)
, //17. Top Bar image (Leave this blank to disable)
, //18. Menu Header Font Color (Leave blank if headers are not needed)
, //19. Menu Header Background Color (Leave blank if headers are not needed)
, //20. Menu Item Separator Color
]


addmenu(menu=[ // This is the array that contains menu properties and details
"topmenu", //1. Menu Name - This is needed in order for the menu to be called
116, //2. Menu Top - The Top position of the menu in pixels
8, //3. Menu Left - The Left position of the menu in pixels
0, //4. Menu Width - Menus width in pixels
0, //5. Menu Border Width
, //6. Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, //7. Properties Array - this is set higher up, as above
1, //8. Always Visible - allows the menu item to be visible at all time (1=on/0=off)
, //9. Alignment - sets the menu elements text alignment, values valid here are: left, right or center
, //10. Filter - Text variable for setting transitional effects on menu activation - see above for more info
0, //11. Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
0, //12. Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
0, //13. Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
, //14. Position of TOP sub image left:center:right
, //15. Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
, //16. Right To Left - Used in Hebrew for example. (1=on/0=off)
0, //17. Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
, //18. ID of the div you want to hide on MouseOver (useful for hiding form elements)
, //19. Background image for menu when BGColor set to transparent.
, //20. Scrollable Menu
, //21. Reserved for future use


"table of content","<img src=graphics/toc.gif>","show-menu=toc",,"",1 // "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"


])

addmenu(menu=["toc",
,,220,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Introduction", "show-menu=intro",,,1
,"HCBS Waiver Service System", "show-menu=descript",,,1
,"Eligibility","show-menu=elig",,,1
,"New Waiver Enrollment","page.shtml",,,1
,"Determining Health & Welfare Needs","page.shtml",,,1
,"Plan of Care Development","show-menu=poc",,,1
,"Annual Review Process","page.shtml",,,1
,"Termination","page.shtml",,,1
,"Data Management","show-menu=data",,,1
,"Case Record Documentation","show-menu=case",,,1
])

addmenu(menu=["intro",
,,60,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Purpose", "purpose.html",,,1
,"History", "history.html",,,1
,"Overview", "overview.html",,,1
])


addmenu(menu=["descript",
,,130,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Overview of System", "HCBS_overview.html",,,1
,"Waiver Services", "waiver_services.html",,,1

])

addmenu(menu=["elig",
,,70,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Waiver ", "page.shtml",,,1
,"ICF/MR", "show-menu=support",,,1
])

addmenu(menu=["support",
,,170,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Support Needs Assessment", "page.shtml",,,1
])

addmenu(menu=["poc",
,,230,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Writing The Plan", "show-menu=writing",,,1
,"When Needs Exceed Current Waiver", "page.html",,,1
,"Requesting Emergency Services", "page.html",,,1
,"Requesting ICF/MR Admission", "page.html",,,1
,"Exception To Rule", "page.html",,,1
])

addmenu(menu=["writing",
,,170,1,"",style2,,"left",effect,,,,,,,,,,,,
,"Quantifying", "page.html",,,1
,"Budgeting", "page.html",,,1
,"Dissemination of the Plan", "page.html",,,1
,"Prior Authorization", "page.html",,,1
])

addmenu(menu=["data",
,,120,1,"",style2,,"left",effect,,,,,,,,,,,,
,"CCDB ", "page.shtml",,,1
,"Change of Status", "page.html",,,1
])

addmenu(menu=["case",
,,150,1,"",style2,,"left",effect,,,,,,,,,,,,
,"What Gets Filed Where", "page.shtml",,,1
,"SERs", "page.html",,,1
])





addmenu(menu=[ // This is the array that contains menu properties and details
"lowernmenu", //1. Menu Name - This is needed in order for the menu to be called
375, //2. Menu Top - The Top position of the menu in pixels
8, //3. Menu Left - The Left position of the menu in pixels
, //4. Menu Width - Menus width in pixels
0, //5. Menu Border Width
, //6. Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, //7. Properties Array - this is set higher up, as above
1, //8. Always Visible - allows the menu item to be visible at all time (1=on/0=off)
, //9. Alignment - sets the menu elements text alignment, values valid here are: left, right or center
, //10. Filter - Text variable for setting transitional effects on menu activation - see above for more info
0, //11. Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
0, //12. Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
0, //13. Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
, //14. Position of TOP sub image left:center:right
, //15. Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
, //16. Right To Left - Used in Hebrew for example. (1=on/0=off)
, //17. Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
, //18. ID of the div you want to hide on MouseOver (useful for hiding form elements)
, //19. Background image for menu when BGColor set to transparent.
, //20. Scrollable Menu
, //21. Reserved for future use


,"<img src=graphics/extras.gif border=0>","show-menu=extras",,,1// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"


])


addmenu(menu=["extras",
,,170,1,"",style3,,"left",effect,,,,,,,,,,,,
,"Acronyms", "acronyms.shtml",,,1
,"Appendixes", "page.shtml",,,1
,"Fair Hearing", "page.shtml",,,1
,"Links", "page.shtml",,,1
,"Provider Related Activities", "page.shtml",,,1
,"QA/Monitoring System", "page.shtml",,,1
,"Resources", "page.shtml",,,1

])



dumpmenus()


Poster: John
Dated: Monday August 2 2004 - 20:38:15 BST

First problem. That is v3 code, which is no longer supported or developed (and why the Topic was moved). You'll need to upgrade to the current v5 system at http://www.milonic.com/.