Page 1 of 1

form submit returns an applet to a new browser window, why?

Posted: Wed Jun 12, 2002 11:35 am
by dean
I have a non-frames php page. On This page I have a simple form:

Form Method=POST TARGET="_PARENT"
Action="http://1.1.1.1/aaa/bbb/servlet"
INPUT TYPE=SUBMIT NAME="RUN" VALUE="Connect"
INPUT TYPE=HIDDEN NAME="KEY" VALUE="abcxyz"

The post is sent to a remote server where the key is analyzed and the results are returned in the form of an applet.

<applet code="applet1"
<align="baseline" archive="/xyz/abc.jar">
<param name="A" value="1">
<param name="B" value="2">
<param name="C" value="3">
<param name="D" value="4">
</applet>

The problem is: The returned result opens a new
window. (the applet does opens properly) How do I
return the applet to the same window from which I
summitted the form?

Thanks in advance for any insight into this.

Dean

Posted: Wed Jun 12, 2002 1:54 pm
by volka
do you send a complete html-page or just <applet..... ?

Posted: Wed Jun 12, 2002 2:43 pm
by dean
Thanks you for replying.

The user just sends the contents of the submit (KEY) to a server. The server reply though is to send back the html page containing this with custom parameters in the applet tag for the 'key' the user submitted.

<html>
<title vcvvc>
</title>
<body>
<applet code="applet1"
<align="baseline" archive="/xyz/abc.jar">
<param name="A" value="1">
<param name="B" value="2">
<param name="C" value="3">
<param name="D" value="4">
</applet>
</body>
</html>