PDA

View Full Version : Calling CGI from a frame and Displaying results in another


kwokhao
01-10-2003, 02:10 AM
Need some help here.

I have a page with 2 frame, let's call them MenuFrame which holds Menu.htm and ContentFrame which holds Content.htm.
Next i have a 2 buttons on the MenuFrame, when clicked, will pass a value to a cgi script that will determine which picture to be display on the ContentFrame.

I'm calling the CGI script from the Menu.htm in the MenuFrame when any of the buttons is clicked. Something like this:
<form action="cgi-bin/searchPicture.cgi" method="post">
<input type=image name=Button1 src="images/Button.jpg" width="20" height="20" border="0">
<input type="hidden" name="Picture" value="Pic-001">
</form>

What happen is that the picture is displayed on the MenuFrame instead of the ContentFrame.

Is there a way to correct this? Perhaps a way to target the ContentFrame from the CGI script?