Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:38

subfolders files and images


Poster: gary04450
Dated: Sunday March 14 2004 - 0:46:18 GMT

Hello, I am new to this program and new to Javascript. I have completed most of my menu and have 2 problems...well I am sure there are not problems, I just do not know the answer.

Question 1. I have subfolders in my directory IE: News, Images,docs, etc..... In the News folder I have html documents. My question is, once I get to that html file, I CAN get my menu visible, but when I go to select another link from my pulldown menu, it does not work, the link stays in that News folder, how do I get back to the html files on the root of my directory which was working when I was in my index.html file and any .hmtl files that are on the root?

Question 2. My arrow.gif does not appear in the menu when the .html is not located on the root directory. My arrow.gif is located on the root.

Any help will be great....I am still learning Javascript.

Thanks, :D

Gary


Poster: Ruth
Dated: Monday March 15 2004 - 0:18:05 GMT

Is there a url to see what's happening? I can't picture what you mean about the menu showing but on different pages links not working, if they work on one they should work on all. As to the arrow, I would assume it's a path issue. have you tried putting in the full path just to check?

Ruth


Poster: John
Dated: Monday March 15 2004 - 2:10:13 GMT

I'm sure Ruth is correct with her path problem answer, but, without a URL (as she requested and we request on the posting page), it's all guesswork.


Poster: Ruth
Dated: Monday March 15 2004 - 3:08:00 GMT

I had so many path issues at one time with the menu [all my errors] I finally made one folder called menu in which every single thing that has to do with the menu is put, that solved my messing up the paths :)

Ruth

subfloders and images


Poster: gary04450
Dated: Monday March 15 2004 - 13:10:53 GMT

I am sure you both are correct about the path. I want to be able not to be online for anything that deals with .html files which I create, then all I have to do is upolaod them to the website. I hope this is possible.

Here is the code. The problem is with the News folder which has .html files in it. Once I am at that file, which shows the menu, when I try to use the menu the links stays in that folder. I hope I am writting this better now.

I inculded the subimage path below. The arrow.gif is on my root directory. Below you will see news/m030704.htm the "news" is a folder. I am sure this is a path issue, these are the last two thisng I have to solve before uplaoding the site. I do really love this memu!
some of the links below are still the samples....I have not changed them yet. I may just try putting everything dealing with the menu in one folder...

Thanks for your help!

Gary


subimage="arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}


with(milonic=new menuname("itn")){
style=menuStyle;
overflow="scroll";
aI("text=See 2004 Election Results;url=voting04.htm;");
aI("text=See All New Selectmen voted in;url=news/m030704.htm;");
aI("text=Residents question overdraft;url=overdrafts.htm;");
aI("text=Smith accuse Selectman of mishandling money;url=/menusample3.php;ther HTML objects');");
aI("text=Web Site not Created by Town;url=news/m021204.htm;");
aI("text=Town Officials Ignore Requests for Documents;url=statements.htm#223request;");
aI("text=Towns Procedure for Requesting Information;url=/menusample4.php; HTML object AREA');");
aI("text=Towns Leagal Advice on Eminent Domain;url=/menusample5.php;ly for every menu');");
aI("text=Offer from stalbansmaine.com;url=offer.htm");
aI("text=ARCHIVE NEWS;url=news.htm");
}


Poster: John
Dated: Monday March 15 2004 - 14:53:52 GMT

Once again, we need a URL. What you have posted does not show us your site pathing, and, according to your description, that appears to be where the problem is.

Also, I'm seeing a lot of errors in your aI statements...

Code:
aI("text=Smith accuse Selectman of mishandling money;url=/menusample3.php;ther HTML objects');");

Code:
aI("text=Towns Procedure for Requesting Information;url=/menusample4.php; HTML object AREA');");

Code:
aI("text=Towns Leagal Advice on Eminent Domain;url=/menusample5.php;ly for every menu');");

These are invalid.

Always use the code statements when posting code.


Poster: gary04450
Dated: Monday March 15 2004 - 15:47:05 GMT

Guess I am not doing to good...but I am not giving up!

If you go the this link below it will should you the URL I am trying to get to. You will also see an OLD FrontPage menu, YUCK!!! I want replace that with the Milonic menu.

http://www.stalbansmaine.com/news/m030704.htm

Here us what I have written
aI("text=See All New Selectmen voted in;url=news/m030704.htm;");
I can get to this URL, it is when I click on another it stays in that news/ folder.

Below is the code for About us. It works fine. It just does not work when I am on the news/m030704.htm. If I select an item from the menu it keeps it in the \news\town.htm The news folder should not be showing up...it should just be town.htm

with(milonic=new menuname("aboutus")){
style=menuStyle;
aI("text=The Town;url=town.htm;");
aI("text=Gary R. Jordan Sr.;url=aboutus.htm;");
aI("text=Dennis Smith;url=aboutus.htm#ds;");
}

How about I ulpload everything to a test site?

Yes I know some of my links are invalid. I have not changed them yet, trying to solve the news link stuff first.


How did I do? :?


Poster: John
Dated: Monday March 15 2004 - 15:55:16 GMT

gary04450 wrote:
Guess I am not doing to good...but I am not giving up!

Not to worry - we'll get there.
gary04450 wrote:
How about I ulpload everything to a test site?

Now that is exactly what we need to see. Make sure your pathing is exactly the same as it will be on the final site.
gary04450 wrote:
Yes I know some of my links are invalid. I have not changed them yet, trying to solve the news link stuff first.

It's not the links, but the syntax that is incorrect...
Code:
aI("text=Smith accuse Selectman of mishandling money;url=/menusample3.php;ther HTML objects');");

Note after .php; - it makes no sense, and the ');"); at the end is wrong as well.


Poster: Ruth
Dated: Monday March 15 2004 - 17:32:35 GMT

It's definately the paths according to what you posted. Don't you need a / in front of town.htm? I'm assuming it's in the root directory and NOT in the news room?
Code:
aI("text=The Town;url=/town.htm;");

here's one from Milonic site.
aI("text=About Us;url=/aboutus.php");
and they are all like that as far as I can see on the Milonic site


So, if you are in the news/whatever.htm if you click on a link that says town.htm it's assuming that's in the news directory. I think.

Ruth


Poster: gary04450
Dated: Monday March 15 2004 - 18:02:46 GMT

I am kicking myself for not knowing why this is happeneing.....I am also thinking it is a path issue, I just do not know the right code to use...


OK I have uploaded it to a test site. Location is here.

http://www.stalbansmaine.com/test/index.html

Now the menu works fine until I go to

In the News.....second topic down.

http://www.stalbansmaine.com/test/news/m030704.htm

Go to that page and try to get back to about us....and click on The Town....now look at the link? it goes to http://www.stalbansmaine.com/test/news/town.htm

it should read to:
http://www.stalbansmaine.com/test/town.htm

also look at the arrow.gif....it does not show up, but does on all other links that are on the root of the dirctory.

I am going to try the /town I had thought tried that last night and it did not work....let me try again.

Thanks for all the input everyone! :D

Gary


Poster: John
Dated: Monday March 15 2004 - 20:55:33 GMT

Pathing :!:

OK, you need to use server-relative paths. For now you have it in /test/, which I'll assume is not where it's going to stay. However, with it in /test/, your paths on partial URLs should look like this...
Code:
aI("text=See All New Selectmen voted in;url=/test/news/m030704.htm;");

If/when you move that out of /test/ the URL would become...
Code:
aI("text=See All New Selectmen voted in;url=/news/m030704.htm;");

As for the arrow...
Code:
subimage="/arrow.gif";

No /test/ for this one, because you have it at the root. The / tells it to start looking at the server root, in your case http://www.stalbansmaine.com/. This way, regardless of what level a page might be at, the search for a page or graphic always starts from the same point.


Poster: gary04450
Dated: Monday March 15 2004 - 21:24:47 GMT

Thank You John,

I am going to try that and see how that works.

I will let you know how I make out!

Gary