Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 04-18-2007, 07:30 AM
anthony.de.oliveira@free.fr
Newsgroup Contributor
 
Posts: n/a
Problème IE7/window.open


j'ai un menu déroulant dans lequel réside plusieur sites, je voudrai
sélectionner un site dans la liste et qu'il soit ouvert dans une autre
fenetre.

j'ai donc une petite fonction qui ouvre ce site dans une autre fenetre
en récupérant l'adresse d'après la liste.

Lors du lancement de la fonction sous IE7, ma fenetre est bloqué,
considéré comme pop-up, par contre si au lieu de onchange, je met un
lien dur en onclick, la ce n'est pas considéré comme pop-up et la
fenetre s'ouvre, pourtant c'est la même fonction, alors pourquoi cette
différence?

je voudrai que ma fenetre s'ouvre a partir de la liste déroulante sans
qu'elle soit considérée comme pop-up.


voici des bout de code :

<SCRIPT language=JavaScript type=text/JavaScript>
<!--
var newWin = null;
function closeWin(){
if (newWin != null){
if(!newWin.closed)
newWin.close();
}
}
function new(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight
+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight
+",width="+strWidth;
if (strType=="elastic")
strOptions="toolbar,menubar,scrollbars,resizable,l ocation,height="+strHeight
+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}
//-->
</SCRIPT>
------------------------------------------------------------------------------
<FORM >
<SELECT
onchange="new(this.form.keyword.options[this.form.keyword.selectedIndex].value,'fixed',
400,400);return false;">

<OPTION value='adresse site1'>site1</OPTION>
<OPTION value='adresse site2'>site2</OPTION>
....

</SELECT>
</FORM>
------------------------------------------------------------------------------

Quelqu'un peu m'aider?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 04-18-2007, 07:30 AM
  #2 (permalink)  
Old 04-18-2007, 06:45 PM
Rock
Newsgroup Contributor
 
Posts: n/a
Re: Problème IE7/window.open

<anthony.de.oliveira@free.fr> wrote
j'ai un menu déroulant dans lequel réside plusieur sites, je voudrai
sélectionner un site dans la liste et qu'il soit ouvert dans une autre
fenetre.

j'ai donc une petite fonction qui ouvre ce site dans une autre fenetre
en récupérant l'adresse d'après la liste.

Lors du lancement de la fonction sous IE7, ma fenetre est bloqué,
considéré comme pop-up, par contre si au lieu de onchange, je met un
lien dur en onclick, la ce n'est pas considéré comme pop-up et la
fenetre s'ouvre, pourtant c'est la même fonction, alors pourquoi cette
différence?

je voudrai que ma fenetre s'ouvre a partir de la liste déroulante sans
qu'elle soit considérée comme pop-up.


voici des bout de code :

<SCRIPT language=JavaScript type=text/JavaScript>
<!--
var newWin = null;
function closeWin(){
if (newWin != null){
if(!newWin.closed)
newWin.close();
}
}
function new(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight
+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight
+",width="+strWidth;
if (strType=="elastic")
strOptions="toolbar,menubar,scrollbars,resizable,l ocation,height="+strHeight
+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}
//-->
</SCRIPT>
------------------------------------------------------------------------------
<FORM >
<SELECT
onchange="new(this.form.keyword.options[this.form.keyword.selectedIndex].value,'fixed',
400,400);return false;">

<OPTION value='adresse site1'>site1</OPTION>
<OPTION value='adresse site2'>site2</OPTION>
.....

</SELECT>
</FORM>
------------------------------------------------------------------------------

Quelqu'un peu m'aider?

__________________________

You might want to post to a French language newsgroup. This one is English
language. Also IE7 questions are best asked in an internet explorer or ie7
newsgroup.

List of MS public newsgroups:
http://aumha.org/nntp.htm

--
Rock [MS-MVP User/Shell]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
probleme zafirou1@hotmail.fr Windows Vista 1 04-10-2008 07:10 AM
OE links open new IE window but it merges with old window in new t thedoor Internet Explorer 0 09-27-2007 02:20 PM
links open in small window.. want to open in full screen window glovely Internet Explorer 1 06-27-2007 05:40 AM
Problème IE7/window.open anthony.de.oliveira@free.fr Internet Explorer 0 05-06-2007 11:21 AM
How get Window Desktop Search window to open full size? Andy Windows XP 3 01-04-2007 02:10 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 08:39 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0