JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 20th, 2013, 03:11 PM
we5inelgr we5inelgr is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 106 we5inelgr User rank is Lance Corporal (50 - 100 Reputation Level)we5inelgr User rank is Lance Corporal (50 - 100 Reputation Level)we5inelgr User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 24 m 29 sec
Reputation Power: 1
Question Window.open doesn't account for parms, and mouseover not working?

Hi all,

Two issues:

1. When I mouseover this link, I actually see the url instead of the "MySite.com some information" message I'd like on the onMouseOver event.

2. When I click the link, it opens in a new tab (using I.E. 9) instead of a new window...which is fine. However, the new window (or tab) should not have the address url, etc based on the parameters I'm sending to window.open

The link:
Code:
<a href="javascript:window1('http://mysite.com/somepage.html');" onMouseOver="window.status='MySite.com some information'; return true" onmouseout="window.status=' '; return true;">Some information</a>


The js:
Code:
function window1 (url) {
    window.open(url, "Some information", "height=400,width=600,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resiz  eable=0,scrollbars=0,status=0,toolbar=0");
    return;
}


Ideas on why those things are happening?

Thanks.

Note: I'm not sure why the word "resizable" has a space in it, it doesn't in my source and I've tried taking it out here. Could be something with this editor.

Reply With Quote
  #2  
Old February 20th, 2013, 04:06 PM
web_loone08's Avatar
web_loone08 web_loone08 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2008
Posts: 605 web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level)web_loone08 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 16 h 34 m 55 sec
Reputation Power: 69
This takes care of Issue 1:
Code:
<a href="MySite.com" onclick="window1('http://mysite.com/somepage.html');return false">Some information</a>

However... Issue 2; I am not sure what you mean by:
Quote:
Originally Posted by we5inelgr
However, the new window (or tab) should not have the address url, etc based on the parameters I'm sending to window.open

Because your not sending any parameter, in the url of your window.open(). An example of sending a parameter; would be:
Code:
<a href="MySite.com" onclick="window1('http://mysite.com/somepage.html?myQueryString=123');return false">Some information</a>

Reply With Quote
  #3  
Old February 20th, 2013, 06:24 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,947 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 10 h 37 m 24 sec
Reputation Power: 7053
1. Nearly all modern browsers do not allow you to set window.status.

2. Nearly all modern browsers don't allow you to do certain things when opening new windows - such as hiding the address bar.

Yes, the options exist, but for the most part they have been removed from browsers for security reasons.
__________________
PHP FAQ
How to program a basic, secure login system using PHP
Connect with me on LinkedIn


Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Window.open doesn't account for parms, and mouseover not working?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap