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:35
how to set the url in aI()
Poster: jz18
Dated: Wednesday May 9 2007 - 2:36:59 BST
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
Poster: Ruth
Dated: Wednesday May 9 2007 - 5:06:48 BST
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:
url=http://whatever.com/folder/page.htm
or whatever your full path is.
Ruth
Poster: jz18
Dated: Wednesday May 9 2007 - 6:15:52 BST
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?
Poster: Ruth
Dated: Wednesday May 9 2007 - 6:30:04 BST
Hi,
I believe this is asking the same question, and this was all I could give as an answer to that.
http://www.milonic.com/forum/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
Poster: jz18
Dated: Wednesday May 9 2007 - 6:50:36 BST
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
Poster: Ruth
Dated: Thursday May 10 2007 - 23:00:09 BST
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://www.milonic.com/apachesetup.php
Ruth
Poster: jz18
Dated: Friday May 11 2007 - 1:00:42 BST
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!