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

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
dean
Forum Newbie
Posts: 2
Joined: Wed Jun 12, 2002 11:35 am

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

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

do you send a complete html-page or just <applet..... ?
dean
Forum Newbie
Posts: 2
Joined: Wed Jun 12, 2002 11:35 am

Post 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>
Post Reply