Target=_NEW doesn't work properly...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Areometer
Advanced
Advanced
Posts: 28
Joined: Mon Sep 01, 2003 6:14 am
Location: Mass, USA

Target=_NEW doesn't work properly...

Post by Areometer »

Hi All, wish someone could help me this time. :|

The site is at: http://www.Aquaristics.com. Please rest your cursor on Contact, then again on the text Forum (on top of the text). If you click on the text now, no new window opens.

Now do the same thing but instead of clicking on the text 'Forum', click on the background other than Forum. A NEW window pops up. How can I make it behave only in the latter way even when the user clicks on the text Forum?

The code is:
with(milonic=new menuname("Contact")){
style=menuStyle;
aI("text=E-mail: info@aquaconnect.us;url=mailto:info@aquaconnect.us?subject=Aquaristics;;status=Click to E-mail us;");
aI("text=Tel: 617-494-8396 (12 - 6pm EST);status=Our telephone number;");
aI("text=Fax: 866-728-3575 (toll-free);status=Toll-free fax number;");
aI("text=Forum;url=http://www.sigmaautomotive.com/phpbb/in ... quaristics forum powered by Sigma Automotive;");
aI("text=Tell-A-Friend;url=http://www.recommend-it.com/irec/Referr ... =Recommend Aquaristics site to your friends;");
}
Thank you.

Areometer
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

I tested your site using IE 6.0 and everything works fine. When I move cursor over "Contact" and the sub-menu appears and then when I click on "Forum" a new window appears at http://www.sigmaautomotive.com/phpbb/index.php

Maybe I don't understand the issue.
User avatar
stephen702
Super Advanced
Super Advanced
Posts: 77
Joined: Wed Jul 16, 2003 4:53 am
Location: Davis, CA
Contact:

Post by stephen702 »

I think I understand the issue.

Once a second window has been opened via "Target=_NEW" any other menu link with "Target=_NEW" will open in the same second window, instead of opening up additional new windows.

There is javascript available that will open up additional windows [one example is at http://www.pageresource.com/jscript/jwinopen.htm]
Areometer
Advanced
Advanced
Posts: 28
Joined: Mon Sep 01, 2003 6:14 am
Location: Mass, USA

Post by Areometer »

bobwill wrote:I tested your site using IE 6.0 and everything works fine. When I move cursor over "Contact" and the sub-menu appears and then when I click on "Forum" a new window appears at http://www.sigmaautomotive.com/phpbb/index.php

Maybe I don't understand the issue.
Hi, thanks for trying. Did you click on the text Forum or merely somewhere in the background? A new window is opened ONLY if you click on the background. If you click on the text itself, the new page will be loaded in the same window. I just tried again and it is still the case.

Thanks.

Areometer
Areometer
Advanced
Advanced
Posts: 28
Joined: Mon Sep 01, 2003 6:14 am
Location: Mass, USA

Post by Areometer »

stephen702 wrote:I think I understand the issue.

Once a second window has been opened via "Target=_NEW" any other menu link with "Target=_NEW" will open in the same second window, instead of opening up additional new windows.

There is javascript available that will open up additional windows [one example is at http://www.pageresource.com/jscript/jwinopen.htm]
Thanks for your explanation. I don't think I can agree with your observation. Try to click on the background of instead of the text Forum, they behave differently. Former will open up a new window every time. Latter will load the new page in the same window every time.

Also, the above link isn't working for me. Thanks.

Areometer
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

What do you mean when you say 'background'? I can't reproduce your error either.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

fredlongworthhighschool wrote:What do you mean when you say 'background'? I can't reproduce your error either.
I can. Click anywhere within the sub-menu item in question on its background area (not the text of that menu item) and it works. Click directly on the text of that same menu item and it does not work; i.e., hover over the blue background of 'Forum' (not the word Forum') and click and you get a new window; hover over the word 'Forum' and click and you do not get a new window.

Sorry, but I don't have an answer.
John
Areometer
Advanced
Advanced
Posts: 28
Joined: Mon Sep 01, 2003 6:14 am
Location: Mass, USA

Post by Areometer »

Thank you John. You are right on!

So, no solution to this issue of mine either, huh? Any one else experiencing this same thing?

Areometer
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The problem is within the file http://www.aquaristics.com/qa.js

The functions in the file are changing ALL the DIV's on the page. As the menu is made up of a series of divs this is breaking the menu.

Where did this file come from and what does it do?

Is it another one of DynamicDrives wonderful (yes I am beng sarcastic) free (NOT) scripts? If it is, I suggest you try and get rid of it.

Cheers
Andy
Areometer
Advanced
Advanced
Posts: 28
Joined: Mon Sep 01, 2003 6:14 am
Location: Mass, USA

Post by Areometer »

Hi Andy, sorry to reply you late. Wow, you are gooood. I trust that you've located the source of my problem. QA is a cool script, great for Q&As. Take a look here: http://www.aquaristics.com/schuran_skimmerfresh.asp, in the middle of the page, click on that down arrow. More text will be expanded.

I think it's from DynamicDrive indeed.

Thanks.

Areometer
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The menu will also do the same, this is based on the Tooltips functionality.

-- Andy

EDIT - Actually I got it wrong, the tooltips are at the bottom of your page. The code for showing the extra text could be done with the menu but it's probably better what you already have.
Post Reply