jovialjonny
06-09-2003, 11:12 AM
Hey,
I have a form in an HTML page that is being submitted to a servlet like so:
<form id= "form" action="viewerServlet">
I want to target the response of the servlet to an iframe in a child page. Right now I am doing this like so:
/* 'viewer' is a child page that has been opened. Its method 'createTab()' returns the id of the frame that I want the results of the form displayed in*/
var frameId = viewer.createTab();
//'form' is the form I created above.
form.target = frameId;
But this isn't working. The servlet keeps opening a new page instead of loading the new page into the specified iframe like I want it to.
Does anyone know what I am doing wrong or how I can get this to work another way?
I have a form in an HTML page that is being submitted to a servlet like so:
<form id= "form" action="viewerServlet">
I want to target the response of the servlet to an iframe in a child page. Right now I am doing this like so:
/* 'viewer' is a child page that has been opened. Its method 'createTab()' returns the id of the frame that I want the results of the form displayed in*/
var frameId = viewer.createTab();
//'form' is the form I created above.
form.target = frameId;
But this isn't working. The servlet keeps opening a new page instead of loading the new page into the specified iframe like I want it to.
Does anyone know what I am doing wrong or how I can get this to work another way?