Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:17
Relative Links
Poster: kcorkre __at__ hotmail.com
Dated: Wednesday July 28 2004 - 2:42:09 BST
Hello all,
I have a menu in development and keep getting an error that says invalid argument on line 16 when I rollover a menu with subs and a relative link. I know that is not much to go on but i have narrowed it to this:
This does not cause the error:
aI("text=Home;url=http://www.milonic.com/mylicenses.php;");
This does:
aI("text=Home;url=index.asp");
I think it is looking for a www. becasue if i hard code the path like this:
aI("text=Home;url=http://www.localhost/web/home/index.asp");
then i do not get the error. I know that does not make sense with the http://www.localhost, but when I remove the www. i get the error again.
Is there a way to set it to use relative paths? i am not ready to post to production or i would just make all the paths absolute and forget it.
any ideas? i would think it should be an easy one
Here is the link
Poster: kcorkre __at__ hotmail.com
Dated: Thursday July 29 2004 - 1:38:24 BST
Use this link and rollover the Home Link at the top a coulple of times.
http://www.sixstring.org/newsite/index.asp
Notice the path for the directions link is: url=http://www.localhost/corkrean/sixstring/index.asp;
and it is not giving the error. Crazy huh
Thanks for the help,
Kevin
Poster: John
Dated: Thursday July 29 2004 - 18:37:30 BST
When I roll over Home I get http://www.sixstring.org/newsite/index.asp.
Are you saying your not getting a JavaScript error?
Poster: kcorkre __at__ hotmail.com
Dated: Tuesday August 3 2004 - 1:36:57 BST
When you rollover this link? Is anyone else getting an "Invalid Argument line 16" error? I really need to figure out if using a relative path is possible, I can not understand why it would not be.
Thanks,
Kevin
Re: Are you saying your not getting a JavaScript error?
Poster: timrivera
Dated: Tuesday August 3 2004 - 4:23:52 BST
kcorkre __at__ hotmail.com wrote:
Is anyone else getting an "Invalid Argument line 16" error?
I had no problems in Opera 7.53 or Firefox 0.9.2, however the links do not change color on rollover in Firefox.
In IE6, I didn't notice any actual problems, however I do get the "Error on page." message at the bottom-left corner after I rollover "Home". This is the error details I get when I double-click the error icon:
Line: 17
Char: 6688
Error: Invalid argument
Code: 0
URL: http://www.sixstring.org/newsite/index.asp
thanks
Poster: kcorkre __at__ hotmail.com
Dated: Tuesday August 3 2004 - 4:32:15 BST
For the Reply, can someone post a link to a site they do not have trouble with. I would like to see what i am doing wrong. I really need this to work here soon and I am lost.
Thanks for you time,
Kevin
Re: thanks
Poster: timrivera
Dated: Tuesday August 3 2004 - 8:19:58 BST
kcorkre __at__ hotmail.com wrote:
can someone post a link to a site they do not have trouble with
www.FallenHeroesMemorial.com/OIF
Tim
Poster: John
Dated: Tuesday August 3 2004 - 15:02:44 BST
The error only occurs when rolling off the Home link, but none of the others (didn't happen that way the other day). The only things I see are...
Code:
aI("text=Home;url=index.asp");
...should be...
Code:
aI("text=Home;url=index.asp;");
...and...
Code:
drawMenus()
...should be...
Code:
drawMenus();
...but I don't really think either one of those should cause this on only one link.
Also, you're 4 levels down - 5.37a is current - and the link to Milonic needs to show, not be hidden as you have done (assuming, of course, you're after additional support from the Team!).
thanks
Poster: kcorkre __at__ hotmail.com
Dated: Tuesday August 10 2004 - 1:13:36 BST
John,
Thanks for all the help. I started using the new version 5.4 and everything seems to be working fine. I was not able to figure out what I was doing wrong, but i am happy now. I am sorry about hiding the link, I thought that satisfied the requirements. I will be happy to show the link in the footer of the site.
Have a great day.
Kevin
Re: thanks
Poster: John
Dated: Tuesday August 10 2004 - 15:18:03 BST
kcorkre __at__ hotmail.com wrote:
Thanks for all the help. I started using the new version 5.4 and everything seems to be working fine. I was not able to figure out what I was doing wrong, but i am happy now. I am sorry about hiding the link, I thought that satisfied the requirements. I will be happy to show the link in the footer of the site.
You're welcome.
To be fair, if you think about it, we're giving you a great product for free, but you (were) hiding the source of that product. Doesn't make much sense from our viewpoint, yes?
That said, we appreciate your understanding and compliance.