HighDots Forums  

New Windows

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss New Windows in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul W Smith
 
Posts: n/a

Default New Windows - 01-03-2006 , 08:25 AM






I have an asp page which, upon selection from a dropdown, opens a new window
(target="_blank") using the selected value as the parameter
(page.asp?Test=(dropdown value))

What I want to do is control the look of the new page. I have been told I
need to use JavaScript to open the new window. But how do I fire the
JavaScript procedure and how do I pass it the selected dropdown value?

Paul Smith



Reply With Quote
  #2  
Old   
Bob Barrows [MVP]
 
Posts: n/a

Default Re: New Windows - 01-03-2006 , 08:35 AM






Paul W Smith wrote:
Quote:
I have an asp page which, upon selection from a dropdown, opens a new
window (target="_blank") using the selected value as the parameter
(page.asp?Test=(dropdown value))

What I want to do is control the look of the new page. I have been
told I need to use JavaScript to open the new window. But how do I
fire the JavaScript procedure and how do I pass it the selected
dropdown value?
This is a client-side scripting question more suited for
microsoft.public.scripting.jscript. However, to get you started:
http://www.aspfaq.com/show.asp?id=2353

After googling the terms in the above article, please followup in the
appropriate group.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"




Reply With Quote
  #3  
Old   
paul@bullschmidt.com
 
Posts: n/a

Default Re: New Windows - 01-09-2006 , 06:14 PM



<a
href="javascript:jpsjsOpenPopup('http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/dhtml_node_entry.asp',
'_blank',
'width=610,innerWidth=610,height=500,innerHeight=5 00,toolbar=yes,directories=yes,status=yes,menubar= yes,scrollbars=yes,resizable=yes,location=yes')">< b>DHTML
Language Reference (Microsoft)</b></a>

function jpsjsOpenPopup(pstrURL, pstrWindowName, pstrHow) {
// Dim var.
var winOpenPopup;

// Open in new window.
winOpenPopup = window.open(pstrURL, pstrWindowName, pstrHow);

// Set focus.
// Useful for if this opener page opens popup and then user clicks
back on original page,
// refreshes original page, or goes to new page leaving popup still
open.
// This is ignored by AOL browsers.
winOpenPopup.focus();
}

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips


Quote:
I have an asp page which, upon selection from a >dropdown, opens a new window
(target="_blank") using the selected value as the >parameter
(page.asp?Test=(dropdown value))

What I want to do is control the look of the new >page. I have been told I
need to use JavaScript to open the new window. >But how do I fire the
JavaScript procedure and how do I pass it the >selected dropdown value?

Paul Smith


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.