This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > August 2004 > Multiple Sized Frames Opened from a Multiple Buttons





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Multiple Sized Frames Opened from a Multiple Buttons
T

2004-08-30, 4:15 am

I neglected to give sample code calling for a different
siaze window.
Here is the revised code:

<HEAD>
<HTML>
<HEAD>
<TITLE>Open Dialogue</TITLE>
<SCRIPT LANGUAGE="JScript">
function search() {
window.open("n001s1search.htm",null,
"height=290,width=420,status=yes,toolbar=no,menubar=no
,location=no");}
</SCRIPT>
</HEAD>
</HTML>
<BODY>
<INPUT TYPE="button"
VALUE="More" onclick="search();" style="font-style:
italic; font-family: Arial; font-size: 8pt";)
</BODY>
</HTML>
<SCRIPT LANGUAGE="JScript">
function resource() {
window.open("n001s2resource.htm",null,
"height=420,width=290,status=yes,toolbar=no,menubar=no
,location=no");}
</SCRIPT>
</HEAD>
<BODY>
&nbsp;<table cellpadding="0" cellspacing="0" width="75">
<!-- MSCellFormattingTableID="1" -->
<tr>
<td height="75" width="75">
<!-- MSCellFormattingType="content" -->
<INPUT TYPE="button"
VALUE="More" onclick="resource();" style="font-style:
italic; font-family: Arial; font-size: 8pt";)
</BODY></td>
</tr>
</table>
</HTML>


>-----Original Message-----
>I am using the open command in javascript with a button
>to open a specifically sized window. The page has
>multiple buttons. Each window that opens needs to be a
>different size...works fine...unless the previously
>opened window from another button is not closed. The 2nd
>button simply replaces the content that the first
>button's new window displayed without resizing the
>window. That is problem one. The second problem is if I
>open a window with a button and leave it open and it is
>hidden by more web browsing, and then I click the 2nd
>button, the window is updated but still covered up - the
>user might think the site unresponsive. What I would

like
>to do is have a new window open each time a button is
>depressed which inherently will appear on top of other
>open windows - this would solve both of my issues.
>
>Here is some sample code (I put part of it in table as a
>test of the conditions it is actually used in...
><I can be emailed back at TWhittall(remove this)@aol.com>
>
>MANY THANKS!
>
>Here is the code:
>
>
><HEAD>
><HTML>
><HEAD>
><TITLE>Open Dialogue</TITLE>
><SCRIPT LANGUAGE="JScript">
>function search() {
> window.open("n001s1search.htm",null,
> "height=290,width=420,status=yes,toolbar=no,menubar=n

o
>,location=no");}
></SCRIPT>
></HEAD>
></HTML>
><BODY>
><INPUT TYPE="button"
>VALUE="More" onclick="search();" style="font-style:
>italic; font-family: Arial; font-size: 8pt";)
></BODY>
></HTML>
><SCRIPT LANGUAGE="JScript">
>function resource() {
> window.open("n001s2resource.htm",null,
> "height=290,width=420,status=yes,toolbar=no,menubar=n

o
>,location=no");}
></SCRIPT>
></HEAD>
><BODY>
> <table cellpadding="0" cellspacing="0" width="75">
> <!-- MSCellFormattingTableID="1" -->
> <tr>
> <td height="75" width="75">
> <!-- MSCellFormattingType="content" -->
> <INPUT TYPE="button"
>VALUE="More" onclick="resource();" style="font-style:
>italic; font-family: Arial; font-size: 8pt";)
></BODY></td>
> </tr>
></table>
></HTML>
>
>
>.
>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews