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:06
Problem with URL's not... linking
Poster: bzeitner
Dated: Saturday October 4 2003 - 19:38:14 BST
I have a problem with the URL's of the menu items not linking.. if you click on them, nothing happens, and not even the status shows the URL. This does not happen for all the links, only on two submenus in particular, and not all the URL's on those menu's..
I'm using two different systems, but both are W2K SP4, IE6. Same issues on both systems.
Since this is for a corporate intranet, I cannot post the URL to the site, but I can email a zip containing the basics (menu and template file) for help.
Any ideas? I've already verified syntax on everything inside menu_data.js. I'm using RC14
Poster: Hergio
Dated: Saturday October 4 2003 - 20:34:18 BST
Please copy and paste your menu_data file into a forum post. That will greatly help.
Poster: bzeitner
Dated: Sunday October 5 2003 - 15:01:39 BST
The following is the contents of the menu_data.js file.
Is there something wrong here that is not causing URL's to work, in particular:
--------
Boy, don't I feel like an idiot.. I'll finish this post so others don't make the same mistake... I was editing the file in Dreamweaver.. in that program both the "1" and "l" look EXACTLY the same... Upon pasting over here though and taking sensitive information out, I noticed the difference.. Some were coded as ur1 and others url... hence the problem.
For the rest of you out there, please don't make the same mistake
<code>
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
_scrollAmount=3 // Only needed for Netscape 4.x
_scrollDelay=20 // Only needed for Netcsape 4.x
with(menuStyle=new mm_style()){
onbgcolor="#FFFFFF";
oncolor="#FF9933";
offbgcolor="#FF9933";
offcolor="#FFFFFF";
bordercolor="#2D729D";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=2;
fontsize="10px";
fontstyle="normal";
fontfamily="Verdana";
pagecolor="#003366";
pagebgcolor="#FFFFFF";
subimage="/img/white_arrow.gif";
subimagepadding="2";
onsubimage="/img/orange_arrow.gif";
itemheight="10";
overfilter="Fade(duration=0.2);Alpha(opacity=100);Shadow(color='#777777', Direction=180, Strength=4)";
outfilter="randomdissolve(duration=0.3)";
}
with(menuStyle2=new mm_style()){
onbgcolor="#FFFFFF";
oncolor="#FF9933";
offbgcolor="#FF9933";
offcolor="#FFFFFF";
bordercolor="#2D729D";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=2;
fontsize="10px";
fontstyle="normal";
fontfamily="Verdana";
pagecolor="#003366";
pagebgcolor="#FFFFFF";
subimage="/img/white_arrow.gif";
subimagepadding="2";
onsubimage="/img/orange_arrow.gif";
itemheight="16";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=6)";
outfilter="randomdissolve(duration=0.3)";
}
with(milonic=new menuname("Nav Menu")){
screenposition="center";
top=82;
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;itemwidth=50;url=/home.asp;status=Go to: Home Page;");
aI("text=Command Group;itemwidth=150;showmenu=Command Group;status=Go to: Command Group;");
aI("text=Staff;itemwidth=100;showmenu=Staff;status=Go to: Staff Sections;");
aI("text=Companies;itemwidth=100;showmenu=Companies;status=Go to: Company Sections;");
aI("text=Links;itemwidth=50;showmenu=Links;status=View External Links;");
aI("text=Communications First. Soldiers Always.;align=right;fontstyle=italic;onbgcolor=#FF9933;oncolor=#FFFFFF;itemwidth=293;");
}
with(milonic=new menuname("Command Group")){
style=menuStyle2;
aI("text=No Data;");
}
with(milonic=new menuname("Staff")){
style=menuStyle2;
aI("text=S1;showmenu=S1;status=S1;");
aI("text=S2;showmenu=S2;status=S2;");
aI("text=S3;showmenu=S3;status=S3;");
aI("text=S4;showmenu=S4;status=S4;");
aI("text=BMO/ ELM;showmenu=BMO;status=BMO/ ELM;");
aI("text=Chaplain;showmenu=Chaplain;status=Chaplain;");
}
with(milonic=new menuname("Companies")){
style=menuStyle2;
aI("text=HHC Company;status=HHC;");
aI("text=Alpha Company;status=A;");
aI("text=Bravo Company;status=B;");
aI("text=Charlie Company;status=C;");
aI("text=Delta Company;status=D;");
}
with(milonic=new menuname("Links")){
style=menuStyle2;
aI("text=3rd ACR;url=notforyoureyes;status=Open 3rd Armored Cavalry Regiment in a new window;target=_blank;");
aI("text=22nd Signal Brigade;url=notforyoureyes;status=Open 22nd Signal Brigade in a new window;target=_blank;");
aI("text=V Corps;url=notforyoureyes;status=Open V Corps in a new window;target=_blank;");
aI("text=82nd Airborne Division;url=notforyoureyes;status=Open 82nd Airborne Division in a new window;target=_blank;");
aI("text=AKO-S;url=notforyoureyes;status=Open AKO-S in a new window;target=_blank;");
aI("text=Intelink;url=notforyoureyes;status=Open Intelink in a new window;target=_blank;");
}
with(milonic=new menuname("S1")){
style=menuStyle2;
aI("text=Policy Letters;url=/s1/policy/;");
aI("text=Award Tracker;url=/s1/awards.asp;");
aI("text=Evaluation Tracker;url=/s1/eval.asp;");
aI("text=Personnel Tracker;url=/s1/personnel.asp;");
}
with(milonic=new menuname("S2")){
style=menuStyle2;
aI("text=WSIR;showmenu=WSIR;");
aI("text=SOP;showmenu=SOP;");
aI("text=Security Clearance Access Roster;url=/s2/scar/;");
aI("text=Weather Forecast;url=/s2/weather/;target=_blank;");
}
with(milonic=new menuname("WSIR")){
style=menuStyle2;
aI("text=View/Submit Report;ur1=/s2/wsir/;");
aI("text=View Baseline;url=/s2/wsir/baseline.asp;");
}
with(milonic=new menuname("SOP")){
style=menuStyle2;
aI("text=Download WSIR SOP;ur1=/s2/sop/sop_wsir.doc;target=_blank;");
aI("text=Download Key Control SOP;url=/s2/sop/sop_keycontrol.doc;target=_blank;");
}
with(milonic=new menuname("S3")){
style=menuStyle2;
aI("text=Training;showmenu=Training;");
aI("text=Operations;showmenu=Operations;");
aI("text=Automations;showmenu=Automations;");
}
with(milonic=new menuname("Training")){
style=menuStyle2;
aI("text=METL;ur1=/s3/training/METL/default.asp;");
aI("text=Monthly Calendar;url=/s3/training/calendar.htm;");
}
with(milonic=new menuname("Operations")){
style=menuStyle2;
aI("text=FRAGO Browser;ur1=/s3/ops/frago/;");
aI("text=FRAGO Tracker;url=/s3/ops/fragotracker.htm;target=_blank;");
aI("text=Task Organization;ur1=/s3/ops/taskorg/;target=_blank;");
aI("text=Switch Reports;ur1=/s3/ops/reports/;target=_blank;");
aI("text=S6 CIP;ur1=/s3/ops/s6cip.htm;target=_blank;");
aI("text=Phone Books;ur1=/s3/ops/phonebooks/;");
aI("text=Network Diagrams;url=/s3/ops/network/;");
}
with(milonic=new menuname("Automations")){
style=menuStyle2;
aI("text=Software Downloads;ur1=/s3/auto/downloads/;");
aI("text=Data QRG's;url=/s3/auto/;");
aI("text=IP Schemes;ur1=/s3/auto/;");
}
with(milonic=new menuname("S4")){
style=menuStyle2;
aI("text=Movement;showmenu=Movement;");
aI("text=Purchase Request;showmenu=Purchase Request;");
aI("text=Inventory Schedules;url=/s4/inventory.asp;");
}
with(milonic=new menuname("Movement")){
style=menuStyle2;
aI("text=List All Requested Movements;url=/s4/movement/;");
aI("text=View/ List Convoy Requests;url=/s4/movement/viewconvoy.asp");
aI("text=Submit a Convoy Request;url=/s4/movement/submitconvoy.asp;");
aI("text=View/ List Flight Requests;url=/s4/movement/viewflight.asp;");
aI("text=Submit a Flight Request;url=/s4/movement/submitflight.asp;");
}
with(milonic=new menuname("Purchase Request")){
style=menuStyle2;
aI("text=View/ List Purchase Requests;url=/s4/prq/default.asp;");
aI("text=Submit a Purchase Request;url=/s4/prq/submit.asp;");
}
with(milonic=new menuname("BMO")){
style=menuStyle2;
aI("text=No Data;");
}
with(milonic=new menuname("Chaplain")){
style=menuStyle2;
aI("text=No Data;");
}
drawMenus();
</code>
Poster: John
Dated: Sunday October 5 2003 - 18:47:53 BST
Hey, no reason at all to "feel like an idiot". We all hit snags, no biggie.
Besides...
1. You found the problem yourself (great!).
2. You posted it anyway so others might not make the same error (excellent!).
Welcome to the group...
Poster: fredlongworthhighschool
Dated: Monday October 6 2003 - 8:59:50 BST
bzeitner wrote:
Boy, don't I feel like an idiot.. I'll finish this post so others don't make the same mistake... I was editing the file in Dreamweaver.. in that program both the "1" and "l" look EXACTLY the same... Upon pasting over here though and taking sensitive information out, I noticed the difference.. Some were coded as ur1 and others url... hence the problem.
I don't care what people say, you can't beat good old NOTEPAD for editing text!
Poster: John
Dated: Monday October 6 2003 - 15:02:16 BST
fredlongworthhighschool wrote:
I don't care what people say, you can't beat good old NOTEPAD for editing text!
Aw, Andy - and we were getting along so well up to now...
Far too many added features and checks in things like Dreamweaver (code mode) and BBEdit that help to keep you from making mistakes.
Notepad is - well - umm... never mind. I'll keep it to myself and we'll just stay friends...