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

Target problems


Poster: heinrichegg
Dated: Tuesday February 10 2004 - 21:42:27 GMT

I have problems with this code: (the style is in a separate file).

with(milonic=new menuname("main_tur_menu")){
top=120;
style=style1;
alwaysvisible=1;
itemwidth=230;
alignment="left";
position="relative";
aI("text=MILONIC TEST - NEW WINDOW;url=svalbard_oppdagelse_kart.htm;target=_blank;targetfeatures=width=580 height=800 scrollbars=yes resizable=yes;");
aI("text=Utstyr / Generell informasjon;url=scooter_vinter_info_utstyr.htm;target=_blank;targetfeatures=width=580 height=800 scrollbars=yes resizable=yes;");
aI("text=Salgsbetingelser;url=salgsbetingelser.htm;target=_blank;targetfeatures=width=580 height=800 scrollbars=yes resizable=yes;");
aI("text=MILONIC TEST BACK;url=index.htm;");
aI("text=Send oss en forespørsel!;url=stefano __at__ poliarctici.com;");
}
drawMenus();


This is a menu on a webpage without frames. The menu worked fine until I downloaded the Tuesday January 6 2004 - 12:27 build. Since then the BACK link has opened a new window. If I insert target=_self it solves the problem. Hovewer, this must be a bug since it worked fine with all builds included the Wednesday December 17 2003 - 15:56. In between theese two builds something happened?

I am testing with Win XP Pro SP2, Explorer ver. 6.0.2800.1106

Look at the demos here: (Do not bother about the top menu - it works)
http://www.poliarctici.com/demo/new_final_not_working/
and
http://www.poliarctici.com/demo/old_working/

The last one uses the three code files build Dec 17 2003. This one works.

Try the three links I have marked with Uppercase letters and MILONIC in the link. Try clicking back and fourth several times - try open up a second window first (the top link in the menu) - then go BACK.

You will see that something is wrong with the final code.

Best regards
HE


Poster: fredlongworthhighschool
Dated: Wednesday February 11 2004 - 11:09:40 GMT

XP Service pack two? As far as I am aware, only SP1a is the official current release at present, SP2 is still a beta.

Do you think there are some patches which may be affecting the menu?


Poster: heinrichegg
Dated: Wednesday February 11 2004 - 11:30:37 GMT

Sorry: It is XP Servicepack 1. Hovewer - the About Internet Explorer says xpsp2 for some reason.

This can not be a problem since I am testing the menu with both the old and new code files and it works fine with the old files.

H


Poster: John
Dated: Wednesday February 11 2004 - 23:51:54 GMT

I worked with your code (brought down to my Mac) for a while last night. The problem is definitely there, so it's not the browser.

I'm curious why you split the style code into its own file. You actually wind up calling the same code twice (once for each menu). I put everything back together and ran from my server. Still fails.

Sorry (but I haven't quit yet!).


Poster: kevin3442
Dated: Thursday February 12 2004 - 6:36:41 GMT

Heinrich,

What I'm seeing in IE6/Win2k is that the new window that opens on the "MILONIC TEST BACK" item has no scrollbars, no toolbar or menubar, and is not resizable. Makes me think of targetfeatures, except that there are no targetfeatures defined for this menu item, and in fact no new window specified for this menu item... but there are targetfeatures defined in the menu items above it. If you remove the targetfeatures property from the menu item definitions above "MILONIC TEST BACK", you'll notice that the problem goes away. The problem also goes away if you make the "MILONIC TEST BACK" item the first item in the menu. This, combined with the fact that it works with an older menu release, suggests a possible bug in the targetfeatures property. I notice that in your "working" example, the target features don't quite seem to work as you'd expect... I get a new window that is much taller that the specified height=800... do you also?

My suggestions would be:

(1) If target=_self works for you then, for now, you could use it. Of course, that might be impractical if you have many such menu items.

(2) You could try using <base target="_self"> in the <head> of you html files.

(3) (This is what I'd do...) Instead of using target=_blank and targetfeatures for items that you want to have open another window, you might try calling a javscript function to open the new window instead (you'll find various threads in this forum on that subject)

Hope that helps,

Kevin


Poster: heinrichegg
Dated: Friday February 13 2004 - 23:03:41 GMT

Thanks!

I'm still using target=_self as a preliminary solution.

I'm separating the styles into a separate file since I'm operating with many different menus. If I change the style for my menus I only have to do it in one file, not in all menu-files.

I tried the 5.01 version but the same problem is there.

H


Poster: heinrichegg
Dated: Tuesday February 17 2004 - 18:28:41 GMT

5.02 still same problem

H

THE PORBLEM IS SOLVED WITH VER. 5.09


Poster: heinrichegg
Dated: Friday March 26 2004 - 15:50:34 GMT

:lol:

Tried the ver 5.09 today and finally this problem is solved. The last version I tried was 5.04 and then the problem still was there.

I tried download ver 5.05, 6 , 7, and 8, but the links are not working. It might be interesting to know excact when the problem was solved?

Thanks!

H


Poster: Ruth
Dated: Friday March 26 2004 - 16:26:26 GMT

Heinrich,
If you haven't already done it, you might go to this topic http://www.milonic.com/forum/viewtopic.php?t=3108 and check the watch this topic box while you are logged in. Sometimes the fixes come fast and furious and so there are new versions close together, once a new one comes out the old one is not available. Also, you might check here for the change log, though I didn't see anything about target http://www.milonic.com/menuvinfo.php

Ruth


Poster: John
Dated: Friday March 26 2004 - 23:37:49 GMT

Note also that only the most curent release is officially supported, as stated on the version page. It's usually a good idea to stay up-to-date. Ruth's suggestion was a good one.