drieux wrote:

On Thursday, Nov 6, 2003, at 16:42 US/Pacific, Andrew Gaffney wrote:


Jack wrote:

[..]


  When
the user clicks on the Submit button on my form, I'd
like to call a CGI script and
redirect its output to the left frame.  Could anyone
please tell me how I can do this?


In the right frame, put this:

...
<input type=button value='Submit' onClick='top.frames.leftframe.document.location.href = \"yourscriptlocation.pl\"'>


substituting 'leftframe' for the name of the left frame and 'yourscriptlocation.pl' for the URL of your script.


neet solution there, I hadn't thought about arming the 'onClick'.

but why not have the form line simple sort it out for him?

eg:

<form name="myform" method="post" action="myCGI.cgi" target="leftFrame">
....
</form>

I would have suggested this over my previous solution if I had known you could use the TARGET attribute in a FORM tag.


--
Andrew Gaffney


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



Reply via email to