url within ai()

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jz18
Advanced
Advanced
Posts: 24
Joined: Thu May 03, 2007 2:37 am

url within ai()

Post by jz18 »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Yes, the url= can be set to any valid URL you need.

Did you try it?
John
jz18
Advanced
Advanced
Posts: 24
Joined: Thu May 03, 2007 2:37 am

Post by jz18 »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: url within ai()

Post by Andy »

Hi,

Any of the following are acceptable urls :

Code: Select all

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");
Probably many more but you get the idea :D

Basically, anything that can be declared as a link in HTML can be declared as a url in the aI string

-- andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: url within ai()

Post by John »

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... :roll:
John
Post Reply