Jump to content


Link problem in dreamweaver


10 replies to this topic

#1 Gimler

    Young Padawan

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Holland
  • Interests:Games<br />Anime

Posted 21 May 2006 - 05:31 AM

Hai!

I'm working on a site, and I really need some help with it.
I use Dreamweaver mx (6.0) (html and some javascript). You all know that dreamweaver has this option to make your own dropdown menu's. They work fine but at some point they don't.

I'll try to explain my problem, hope you understand my English xD:

Dropdownmenu:
"Aquaristiek" -> "Algemeen", "planten", "vissen".
Now I want to ad a page under "Algemeen". I'll put that file in the main root folder.
That all works fine, but now my problem:
On the page "Algemeen" there are some links to articles. Those pages come in a other folder called "Aquaristiek" (in the main root folder offcourse)
When I try to use the drowdown menu to go back to a page in the main root folder I get a blank page.

--

I already asked for advice on some dutch forums and they said that I have to put ../ or ./ in front of the url. I did that, but it doesn't work.. I'll still get a blank page.
I'm also use a template to update my site, maybe it will help to make another one for the pages in the folder "Aquaristiek"?

Please help!
Gimler

P.S: My site is online so if you want the url to look at the source code orso, just ask! :huh:

Edited by Gimler, 21 May 2006 - 05:32 AM.


#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 21 May 2006 - 05:52 AM

View PostGimler, on May 21 2006, 11:31 AM, said:

P.S: My site is online so if you want the url to look at the source code orso, just ask! :)

:huh: , url please :) :D

#3 Gimler

    Young Padawan

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Holland
  • Interests:Games<br />Anime

Posted 21 May 2006 - 06:42 AM

Please click. :huh:

P.S: The "problem" isn't online..

Edited by Gimler, 21 May 2006 - 06:44 AM.


#4 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 21 May 2006 - 06:58 AM

oh ok. So let me get this straight.....

The file you have the drop down menu is is something like index.html....

/files/index.html < that one

and you want tolink the drop down box to....

/other/anotherfile.html

If thats the case then using "../" should do it....what code are you using for the drop down box?

#5 Gimler

    Young Padawan

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Holland
  • Interests:Games<br />Anime

Posted 21 May 2006 - 07:55 AM

You're right! ../ actually works fine if I want to go from the file under the drop down menu to another file
Like:
/files/index.html
to
/other/anotherfile.html

But if I am at the file /other/anotherfile.html and I want to go back to a file in "files" (with files you mean the main root folder right?) I get a blank page.

Maybe the problem is that I use the same template for the files in the main root folder and the files in the "other" folder?

---
Code for the drop down box. Uh, I've got two actually

This is the code in my index.htm (and in all my other file's)

<script language="JavaScript" type="text/JavaScript">function mmLoadMenus() {
  if (window.mm_menu_0803103519_0) return;
						window.mm_menu_0803103519_0 = new Menu("root",158,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#A8B29A","#FFFFFF","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0803103519_0.addMenuItem("De Club","location='de_club.htm'");
  mm_menu_0803103519_0.addMenuItem("Bestuur","location='het_bestuur.htm'");
  mm_menu_0803103519_0.addMenuItem("Colofon","location='colofon.htm'");
  mm_menu_0803103519_0.addMenuItem("Huiskeuring","location='huiskeuring.htm'");
  mm_menu_0803103519_0.addMenuItem("Nieuws");
  mm_menu_0803103519_0.addMenuItem("Algemene vergadering");
   mm_menu_0803103519_0.hideOnMouseOut=true;
   mm_menu_0803103519_0.bgColor='#FFFFFF';
   mm_menu_0803103519_0.menuBorder=1;
   mm_menu_0803103519_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0803103519_0.menuBorderBgColor='#000000';
window.mm_menu_0803161845_0 = new Menu("root",114,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#A8B29A","#FFFFFF","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0803161845_0.addMenuItem("Het verhaal");
  mm_menu_0803161845_0.addMenuItem("De deelnemers");
  mm_menu_0803161845_0.addMenuItem("Activiteiten");
  mm_menu_0803161845_0.addMenuItem("Keuringen");
   mm_menu_0803161845_0.hideOnMouseOut=true;
   mm_menu_0803161845_0.bgColor='#FFFFFF';
   mm_menu_0803161845_0.menuBorder=1;
   mm_menu_0803161845_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0803161845_0.menuBorderBgColor='#000000';

			window.mm_menu_0803165217_0 = new Menu("root",95,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#A8B29A","#FFFFFF","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0803165217_0.addMenuItem("Het verhaal");
  mm_menu_0803165217_0.addMenuItem("Bestuur");
  mm_menu_0803165217_0.addMenuItem("Deelnemers","location='rayon_deelnemers.htm'");
  mm_menu_0803165217_0.addMenuItem("Agenda","location='rayon_agenda.htm'");
  mm_menu_0803165217_0.addMenuItem("Keuringen","location='rayon_keuringen.htm'");
   mm_menu_0803165217_0.hideOnMouseOut=true;
   mm_menu_0803165217_0.bgColor='#FFFFFF';
   mm_menu_0803165217_0.menuBorder=1;
   mm_menu_0803165217_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0803165217_0.menuBorderBgColor='#000000';
  window.mm_menu_0803165617_0 = new Menu("root",109,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#A8B29A","#FFFFFF","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0803165617_0.addMenuItem("Agenda 2006","location='ciliata_agenda.htm'");
  mm_menu_0803165617_0.addMenuItem("Contactavond","location='contactavond.htm'");
   mm_menu_0803165617_0.hideOnMouseOut=true;
   mm_menu_0803165617_0.bgColor='#FFFFFF';
   mm_menu_0803165617_0.menuBorder=1;
   mm_menu_0803165617_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0803165617_0.menuBorderBgColor='#000000';
window.mm_menu_0803170053_0 = new Menu("root",84,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#A8B29A","#FFFFFF","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0803170053_0.addMenuItem("Algemeen");
  mm_menu_0803170053_0.addMenuItem("Vissen");
  mm_menu_0803170053_0.addMenuItem("Planten");
   mm_menu_0803170053_0.hideOnMouseOut=true;
   mm_menu_0803170053_0.bgColor='#FFFFFF';
   mm_menu_0803170053_0.menuBorder=1;
   mm_menu_0803170053_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0803170053_0.menuBorderBgColor='#000000';

			window.mm_menu_0803170631_0 = new Menu("root",106,18,"Arial, Helvetica, sans-serif",12,"#000000","#000000","#A8B29A","#FFFFFF","left","middle",3,0,500,-5,7,true,true,true,0,true,true);
  mm_menu_0803170631_0.addMenuItem("Stel uw vraag","location='contact_form.php'");
  mm_menu_0803170631_0.addMenuItem("Lid worden","location='lid_worden.htm'");
   mm_menu_0803170631_0.hideOnMouseOut=true;
   mm_menu_0803170631_0.bgColor='#FFFFFF';
   mm_menu_0803170631_0.menuBorder=1;
   mm_menu_0803170631_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0803170631_0.menuBorderBgColor='#000000';

mm_menu_0803170631_0.writeMenus();
} // mmLoadMenus()
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" type="text/javascript" src="mm_menu.js"></script>

And another one called mm_menu.js but that file is really big! :D
If you need it for my problem, just ask =)

#6 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 21 May 2006 - 08:01 AM

Ha, i thought u meant a drop down box menu. Thats a javascript one.. OK, right haha :)

You could try using "/files/index.html" to link back.

../ goes back one dir
/ starts from the home dir.

But without the problem being online i cant help much unfortunately :D

Edited by .Matt, 21 May 2006 - 08:01 AM.


#7 Gimler

    Young Padawan

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Holland
  • Interests:Games<br />Anime

Posted 21 May 2006 - 08:08 AM

mmhzz, I'll try to put the problem online this week. Can you get back on this when it is online?

Thanks, your a big help to me :D

#8 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 21 May 2006 - 08:24 AM

Absolutely, just reply here when its online :D

#9 Gimler

    Young Padawan

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Holland
  • Interests:Games<br />Anime

Posted 25 May 2006 - 04:28 AM

Alright then, the problem is online!

Go to site

If you are on the site go to "aquaristiek" -> "algemeen"
You see this page called "index aquaristiek algemeen". (This file is in the main root folder)
Click on the picture and you will go to a page with the article "keuren, ja gezellig" on it. (This page is in a other map)
Now try to go to "ciliata" -> "de club" (This page is in the main root folder) You get a 404 error page :P

How can I fix that?

#10 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 25 May 2006 - 04:37 AM

That link is pointed to the wrong URL. Well, not true. Its fine when your accessing a document in the same folder, but not when your....no...:P

Try pointing that link to "/de_club.htm".

#11 Gimler

    Young Padawan

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Holland
  • Interests:Games<br />Anime

Posted 25 May 2006 - 07:24 AM

-edit-

Problem solved! ;)
I made a new template and attached the file in the submap to it.
The new template has the ../ in the links and the other templates don't.

Thanks for your help .Matt

@mod: This topic can be closed =)

Edited by Gimler, 25 May 2006 - 07:59 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users