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>


my assumption is that the 'frames' were set up with something like:

 <html>
        <frameset cols="100,*">
           <frame name="leftFrame" src="defaultLeftFrame.html">
          <frame name="rightFrame" src="myCoolRightFrameCode.cgi">
        </frameset>
 </html>

ciao
drieux

---


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



Reply via email to