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:30
url within ai()
Poster: jz18
Dated: Monday August 13 2007 - 4:09:25 BST
Hi,
Is that possible that the url in ai() can be replaced by directories' path? And
can i set the URL in ai() using relative path, instead of full path?
thanks
Poster: John
Dated: Monday August 13 2007 - 16:16:42 BST
Yes, the url= can be set to any valid URL you need.
Did you try it?
Poster: jz18
Dated: Tuesday August 14 2007 - 6:10:16 BST
What do you mean for valid url.... for what i mean is to set the url like:
url=../../namedFolder/file.aspx
can i do like this? Thanks
Poster: Ruth
Dated: Tuesday August 14 2007 - 7:21:03 BST
Hi,
Yes you can use relative paths. All John meant by valid is that it is a url in existence, I believe. So if your page was at ../library/books but you put in ../books/library, well that would not be valid unless you actually had a book/library folder setup.
Ruth
Re: url within ai()
Poster: Andy
Dated: Friday November 2 2007 - 9:58:02 GMT
Hi,
Any of the following are acceptable urls :
Code:
aI("text=test;url=http://www.milonc.com/");
aI("text=test;url=/");
aI("text=test;url=../../dir/");
aI("text=test;url=../../dir/link.html")
aI("text=test;url=javascript:alert()");
aI("text=test;url=file:///c:/cdrivefile.html");
aI("text=test;url=/");
aI("text=test;url=../../dir/");
aI("text=test;url=../../dir/link.html")
aI("text=test;url=javascript:alert()");
aI("text=test;url=file:///c:/cdrivefile.html");
Probably many more but you get the idea
Basically, anything that can be declared as a link in HTML can be declared as a url in the aI string
-- andy
Re: url within ai()
Poster: John
Dated: Friday November 2 2007 - 14:04:11 GMT
Andy wrote:
Basically, anything that can be declared as a link in HTML can be declared as a url in the aI string
Thought I said that...