how to set the url in 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

how to set the url in aI()

Post by jz18 »

Hello,

I am having problem to set the url in aI(), How to set the full path of the url in aI() from root direcroty rather than relative path.

thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Think of the words url= as equivalent to a href=, then except that you do NOT use " marks you just put the same thing as you would put into a regular a href= url.

Code: Select all

url=http://whatever.com/folder/page.htm 
or whatever your full path is.

Ruth
jz18
Advanced
Advanced
Posts: 24
Joined: Thu May 03, 2007 2:37 am

Post by jz18 »

well, this url is for live website, what if the website is not live, how to set the full path? just like:

rootFolder/foldername/filename

is this correct?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I believe this is asking the same question, and this was all I could give as an answer to that.

viewtopic.php?p=42010

Since, when I test menus to help here, I just put everything in the same folder I don't have to worry about paths on the computer :?

Ruth
jz18
Advanced
Advanced
Posts: 24
Joined: Thu May 03, 2007 2:37 am

Post by jz18 »

Right now i can get the menu working correctly, but when click the "home" from other pages (these pages are not at the same location as "home" page), then link is not working. That's why the aI()'s Url has to be modified. The problem is, if you change the url of "home" page, when you go to other pages (under the different folder) the link will not work again. So, is there a way to set the url dynamically? and how to do that...Thanks
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Are you talking about when it's on the web? I'll need to see the page to see what's going on. If you're setting full paths then it should just go to the page no matter what page you're on since you are using full paths.

If you are talking about on the desktop, then I gave you all the information I can, I have no idea how to set the url using the c:\\ or whatever yours might be on your desktop. Most developers use something like the apache setup on the desktop to emulate the actual website so they can just develop it as the website structure is going to be. I have always put everything in one folder because I've never been able to get anything to work using the c:\ path setup

There is an instruction section on how to set that up here

http://milonic.com/apachesetup.php

Ruth
jz18
Advanced
Advanced
Posts: 24
Joined: Thu May 03, 2007 2:37 am

Post by jz18 »

Thanks for your help Ruth!

I would rather use the full path, even though i am using asp .net to develop the website (I have to write something like http://localhost:portNUmber/root/foldername/filename). a little bit complicated. But it works, and i need to change the url address to the live website address when i put that on.

Thanks anyway Ruth!
Post Reply