Hmm. I suppose it would be easier to just do the validation in JavaScript... but I **really** dont want to. It just seems inconsistent. So there's no way to change what browser the validate() returns to once I've submitted the form and I'm in the validate() method? Some attribute on the request perhaps? I mean the request has to know where it's forwarding to, right? On 7/11/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > > When I've had to do something like this in the past, I didn't > actually change the target, but rather caused the response page to > use the new target as part of its page loading. That is, the > response page would have an onload handler which would load the > necessary content in a new target. > > If your new target is a new window, pop-up blockers may foil this, > and of course, you'll have to make sure to preserve any relevant > state, since the onload handler will initiate a separate request. > > Can you make that work? > > Joe > > > At 1:49 PM -0400 7/11/05, David Johnson wrote: > >Hi all > > I have the following problem: > > I have a button on my form that uses javascript to change to form target > >before submitting because I'm exporting an RTF generated in my action to > the > >new browser, as follows > > > ><html:submit property="exportFlag" > >onclick="set('export');setFormTarget('_export')" > >disabled="false">Create Graph (Popup)</html:submit> > > > >function setFormTarget(newTarget){ > >document.forms[0].target=newTarget; > >} > > > >The thing is I want to be able to use the validate() method in my Form > >object and return to the ORIGINAL browser if an error is encountered... > > > >so is there anything I can do within the action to affect that? > > > >Thanks > > > >-- > >-Dave > >[EMAIL PROTECTED] > > > -- > Joe Germuska > [EMAIL PROTECTED] > http://blog.germuska.com > "Narrow minds are weapons made for mass destruction" -The Ex > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- -Dave [EMAIL PROTECTED]