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:11
Open new window from table embedded menu
Poster: wweide
Dated: Wednesday March 15 2006 - 18:03:43 GMT
Hello all...
I am having a few issues with a menu that has been embedded into a table on my page. I have version 5.744 and these problems are not present in another "main" menu that I have on my page. In fact, the exact code when placed in the "main" .js works like a champion. The "Style5" that the menu is using is written in my main .js file for my "main" menu.
The problems are;
1) The status text does not appear in my status bar.
2) The "Open New Window" feature does not open a link in a new window.
3) When I hover over a button, my horozontal scroll bar is added, and another 3 inches are added to the right side of my page.
The code I have presently is;
Code:
<script type="text/javascript">
with(new menuname("Quick Menu")){
style=style5;
position="relative";
alwaysvisible=1;
orientation="vertical";
aI("text=Cafeteria Menu;url=http://porweb/Nutrition/Menu/Cafeteria Menu.doc;;status=Cafeteria Menu");
aI("text=Calendar;url=http://porweb/StaffDevelopment/calendar.html;;status=View The Current Calendar");
aI("text=Check Email;url=http://idc-ex-vs03/exchange;target=_blank;;status=Check Web Email");
aI("text=Hospital Directory;url=P:/Fiscal_Services/Hosdir.doc;;status=Open The Current Hospital Directory");
aI("text=Job Postings;url=http://porweb/HR/jobs.html;;status=Current Job Listings");
aI("text=Med-e-Learn;url=http://172.16.205.56/index2.htm;;status=Med-e-Learn Training");
aI("text=S.H.I.N.E;url=http://hdqcbl/learnast/;;status=S.H.I.N.E Training");
}
drawMenus();
</script>
with(new menuname("Quick Menu")){
style=style5;
position="relative";
alwaysvisible=1;
orientation="vertical";
aI("text=Cafeteria Menu;url=http://porweb/Nutrition/Menu/Cafeteria Menu.doc;;status=Cafeteria Menu");
aI("text=Calendar;url=http://porweb/StaffDevelopment/calendar.html;;status=View The Current Calendar");
aI("text=Check Email;url=http://idc-ex-vs03/exchange;target=_blank;;status=Check Web Email");
aI("text=Hospital Directory;url=P:/Fiscal_Services/Hosdir.doc;;status=Open The Current Hospital Directory");
aI("text=Job Postings;url=http://porweb/HR/jobs.html;;status=Current Job Listings");
aI("text=Med-e-Learn;url=http://172.16.205.56/index2.htm;;status=Med-e-Learn Training");
aI("text=S.H.I.N.E;url=http://hdqcbl/learnast/;;status=S.H.I.N.E Training");
}
drawMenus();
</script>
Any help on this would be greatly appriciated, as I have already spent waaaaaaaaay too much time trying to figure this out.
Thank you,
Bill Weide
Shriners Hospitals For Children
Portland, Oregon USA
Poster: Migru
Dated: Wednesday March 15 2006 - 18:13:51 GMT
Hi
At a glance
Some ";" semicolon are missing (marked red) : for instance
status=Cafeteria Menu;");
(in all your status properties, the final semicolon is missing)
Some dublicated semicolon are not required ;;, one is enough
Michael
Would be better to provide a url, could be something different.
Poster: wweide
Dated: Wednesday March 15 2006 - 18:23:55 GMT
Thanks for checking the post...
I double checked the ";" and yes, some were missing... but, after putting them there, nothing changed. The problems are still present.
As far as posting an URL, that can't be done, as it is for an internal web on my closed network.
Thanks,
Bill
Poster: Migru
Dated: Wednesday March 15 2006 - 18:41:47 GMT
Hi
as far as I can see, reading your code, I do not find anything else which could be made responsible for those reported and posted issues.
I would have checked
- path settings of your js-milonic and menu_data - files
- path settings of your url
- placement of the js-file references right after the <body> tag or in the head section
- missing drawMenus() in the menu_data.js
(Its in the embedded main as well)
- release nos. of all files (5.744) it has already happened that one was missing or older !
- any other syntax issues ??
you say you are using it embedded in a <td>
So please check again:
http://www.milonic.com/tablemenu.php
What is the browser/version you´re using?
Michael