Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening new window 1

Status
Not open for further replies.

iao

Programmer
Feb 23, 2001
111
US
I use the following code to open the help file in a new window.

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
//Open a new browser window
function createWindow(cUrl,cName,cFeatures)
{ var xWin = window.open(cUrl,cName,cFeatures); }
</SCRIPT>

<INPUT TYPE=&quot;button&quot; NAME=&quot;Help&quot; VALUE=&quot;Help&quot;
onClick=&quot;createWindow('Display/dsp_help.cfm','window2','width=500,height=300,scrollbars')&quot; STYLE=&quot;Width:80&quot;>

This all works fine except that when the user tries to resize this window, they can't do it. It's a static window. How can I revise this code so that the new window that appears is resizable.

Thanks!
 
Use the tag:

<INPUT TYPE=&quot;button&quot; NAME=&quot;Help&quot; VALUE=&quot;Help&quot;
onClick=&quot;createWindow('Display/dsp_help.cfm','window2','width=500,height=300,scrollbars,resizeable=yes')&quot; STYLE=&quot;Width:80&quot; >

cheerio,

georgewilliamson

 
Hmmm, nope, that didn't work. I checked and rechecked my code just to make sure I typed it in correctly. In fact, there is no difference in the behavior as what it was before.

If you have any other ideas or know what I am doing wrong, please let me know. Thanks!

BTW: here is the code again.

<INPUT TYPE=&quot;button&quot; NAME=&quot;Help&quot; VALUE=&quot;Help&quot;
onClick=&quot;createWindow('Display/dsp_help.cfm','window2','width=500,height=300,scrollbars,resizeable=yes')&quot; STYLE=&quot;Width:80&quot; >
 
<INPUT TYPE=&quot;button&quot; NAME=&quot;Help&quot; VALUE=&quot;Help&quot;
onClick=&quot;createWindow('Display/dsp_help.cfm','window2','width='500',height='300',scrollbars='yes',resizeable='yes'')&quot; STYLE=&quot;Width:80&quot;>
 
You don't need the apostrophes, the problem is that it resizable (no 'e' after the 'z'). Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I have to laugh, because I was just beginning to wonder if this was a misspelling (obviously, I have never been a good speller) as it just was not working, no matter what I tried.

Thanks for the help.
 
The main reason I thought of that is because I've done exactly the same thing (and I'm usually a very good speller).
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top