On Dec 6, 2007, at 11:38 AM, Galen Rhodes wrote:

Essentially what you're going to do is trap the "onSubmit" message of the form or the "onClick" message of one of the buttons. Then what you have to do is open a blank window and then make sure the target for the form is the same as the new window. You can do this last part in one of two ways: 1) set the target in the form tag or 2) (if you only want it to happen under certain conditions) set the target in the javascript just before you open the window. Here's a brief example:

The HTML:

        <webobject name="TheForm">...</webobject>

The WOD:

TheForm : WOForm { action = myAction; onsubmit = "return doFormSubmit(this)"; }

The Javascript:

        function doFormSubmit(theForm) {
                theForm.target = "NewWindow";
newWindow = window.open ("","NewWindow","width=650,height=600,resizable=yes");
                newWindow.focus();
                return true;
        }

I think this is going to work. What I was missing was targeting the new window by name and using the onSubmit of the form to set things up before the form actually submits.

Thanks,
Kevin
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to