Ah, good, I was going to yell at you if it was the other :)

myLeft = (screen.width) ? (screen.width - 1180) / 2 : 0;
myTop = (screen.height) ? (screen.height - 924) / 2 : 0;
myOpts = "resizable,scrollbars,width=1180,height=924,top=" + myTop +
",left=" + myLeft + ",";
window.open('startup.toa', 'TOA', myOpts);

That's what I have in one of my apps... startup.toa is a mapping to an
Action (a ForwardAction in this case, but I doubt that would make any
difference).

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Tue, April 5, 2005 1:41 pm, Dakota Jack said:
> No, have the popup url from the page be a struts action -- popup.do.
>
> Jack
>
> On Apr 5, 2005 10:37 AM, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> Not sure what you mean... You mean open the popup from WITHIN an Action?
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>>
>> On Tue, April 5, 2005 1:27 pm, Dakota Jack said:
>> > Anyone have some code on using JavaScript to open and close popup
>> > windows with a Struts Action?  Thanks.
>> >
>> > Jack
>> >
>> > --
>> > "You can lead a horse to water but you cannot make it float on its
>> back."
>> > ~Dakota Jack~
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>
>
> --
> "You can lead a horse to water but you cannot make it float on its back."
> ~Dakota Jack~
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to