Put this for the "open window" function. The names are arbitrary, but I like
medievel names.
put the focus in a setTimeOut cause microsoft will not work otherwise
assuming the popup is
more than just text (graphics) etc....at least I have found.buggy
function launchstatement() {
swordWindow = window.open('statementindex.html', 'state',
"toolbar=no,directories=no,location=no,status=no,menubar=no,scrollbars=no,re
sizeable=no,width=400,height=500, screenx=200, screeny=100,top=100
,left=400")
perseus=swordWindow
setTimeout('perseus.focus()',1000);
}
***********
Now, if that doesn't manage itself across all resolutions, do a resolution
test and then sub in values for the "screen x, screeny, top, and left"
attributes.. this means your gonna have to document.write this out in
javascript...
**********
For example..
TEST for resolution..
if(screen.width == "1024"){
scrnx=100;
scrny=100;
top=100;
left=100;
}
if(screen.width == "800"){
scrnx=200;
scrny=200;
top=200;
left=200;
}
if(screen.width == "640"){
scrnx=300;
scrny=300;
tp=300;
lft=300;
}
THEN when you 'document.write" out the popup window code... just sub in the
variables above into the code ala......
document.write("ALLTHECODEHERE" +'screenx='+scrnx+',
screeny='+scrny+',top='+tp+' ,left='+lft+");
is that explained clearly???.
test this yourself in the different resolutions, you might not even have to
test for resolutions....but if you do, just test then applies to the
variables and document.write then into the open window function. Remember,
your gonna have to put the approriate coordinates into the (screenx=,
screeny=,top= ,left=).
Thanks,
~~~~~~~~~~~~~~~~~~~~~~~
Dean Sacramone
[EMAIL PROTECTED]
Lead Programmer-->310-815-5091
~~~~~~~~~~~~~~~~~~~~~~~
"If there was any logic in this world, it would be men who ride side-saddle,
not women."
--
----- Original Message -----
From: Lorena Carlo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 2:49 PM
Subject: (Off Topic)Javascript: enter event in Javascript
> Hi all,
>
> Sorry for writting this off topic mail, How can I know when a user has
> pressed the enter key, which is the name of the event in javascript?.
>
> Also, is there a way with javascript, to generate a child window from
> another, and that this child window appears centered on the monitor, for
> wichever monitor resolution, especially 800*600.
>
> Thanks in advance, please help me
>
> Lorena
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets