Declaring scriptpath in milonic_src.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Declaring scriptpath in milonic_src.js

Post by tepidarium »

Hi all,

I have read the FAQ on the Milonic website and it says you can declare the scriptpath in milonic_src.js to allow for using absolute referenced urls -i.e. "/menu/menu_data.js"

I would like to do this as currently I am using "http://www.mydomain.com/menu/menu_data.js"

Where in Milonic_src.js should one make the change? I could not find the scriptpath variable, so I decalred one about the other commands...but this doesn't work.

Thanks for any help you can provide!
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Scriptpath is no longer used or defined. Has not been for quite a few releases. Check the docs that come in the download for the proper setup and calls.
John
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

Hi,

Thanks for your resposne. I have reread: readme.txt, install.txt, howtobuild.txt - I cannot find information detailing change of script path. At this point I am unable to get absolute scriptpaths to work with the menu when the paths beign witha forward slash i.e. "/menu/menu_data.js" will not work while defining "http://www.mydomain.com/menu/menu_data.js" will work.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

URL?
John
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

Hi john -

The url is:

http://www.citytech.cuny.edu/m-menu.html

It works when I uploaded the file to the server, but won't work locally on my c: drive. The file path is the same.

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

Post by John »

tepidarium wrote:It works when I uploaded the file to the server, but won't work locally on my c: drive. The file path is the same.
Ah - now you tell me that :!:

If it works on the server but not locally there has to be a difference in the pathing. They may look the same, but often it's a real bear to get a local setup to operate properly. My menus won't work locally either, but the problem there is all of my directories are virtual and I'm tired of the headaches in trying to figure out what will work in both places while keeping the pathing as clean as possible and keeping the Dreamweaver site manager happy as well.
John
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

jgillett wrote: My menus won't work locally either, but the problem there is all of my directories are virtual and I'm tired of the headaches in trying to figure out what will work in both places while keeping the pathing as clean as possible and keeping the Dreamweaver site manager happy as well.
Ok, I'll guess I'll jut have to live with not seeing the menus locally. Is there any advantage to declaring the absolute server path i.e., "http://www.mydomain.com/menu/menu_data.js" ?

On an unrelated issue, I'm hoping for a hide object fix before I implment the menu system site wide so I can keep my flash scroller where it is (for NS 4 & IE 5 & Opera 5)
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

tepidarium wrote:Ok, I'll guess I'll jut have to live with not seeing the menus locally. Is there any advantage to declaring the absolute server path i.e., "http://www.mydomain.com/menu/menu_data.js" ?
I don't think so.
tepidarium wrote:On an unrelated issue, I'm hoping for a hide object fix before I implment the menu system site wide so I can keep my flash scroller where it is (for NS 4 & IE 5 & Opera 5)
That would be Uncle Andy's department. He's been sick, but last I heard he's still alive. :roll:
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Andy informed us that he's "cracked the hide div problem" so you may see something soon that may be able to hide your objects.

Absolute pathing has NO disadvantages in regards to addressing. It will however clutter your source code slightly and will increase the file size of your page. This isn't considerably bad as long as you dont have a page with 500 links on it, ya know what I mean? The advantages of the absolute addressing is just that, its absolute, so you can use it in any page and be assured it will work. Best of luck!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
tepidarium
Mega User
Mega User
Posts: 169
Joined: Sun Oct 05, 2003 4:21 am

Post by tepidarium »

Hergio wrote:Andy informed us that he's "cracked the hide div problem" so you may see something soon that may be able to hide your objects.
Awesome...I'm looking forward to it! :D
Hergio wrote:Absolute pathing has NO disadvantages in regards to addressing. It will however clutter your source code slightly and will increase the file size of your page. This isn't considerably bad as long as you dont have a page with 500 links on it, ya know what I mean? The advantages of the absolute addressing is just that, its absolute, so you can use it in any page and be assured it will work. Best of luck!
Would you say there is any particular benefit for using this absolute style:

"http://www.mydomain.com/menu/menu_data.js"

over this absolute style:

"/menu/menu_data.js"
?

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

Post by John »

tepidarium wrote:Would you say there is any particular benefit for using this absolute style:

"http://www.mydomain.com/menu/menu_data.js"

over this absolute style:

"/menu/menu_data.js"?
Just to be picky, the first one is absolute, the second is server-relative. Assuming identical pathing, server-relative makes a site move from one server to another a no-brainer. For instance, we develop on http://webdev..., but our production server is http://westcgi... . With server-relative the move is made with no code or path changes at all. If you used absolute, all URLs would have to be changed site-wide.
John
Post Reply