I found out the reason for the problem I had stated.
I had to put it like this :
<script language='javascript'>
function assignEngr(){
if(myWin.name==null){
myWin=window.open("http://(path)/AssignEngr.html","subwindow","HEIGHT=100,width=350")
}else{
myWin.focus()
}
</script>
Thanx for ur help
Chainlu Sharma wrote:
Hi all___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
I have a small problem . I am having a HTML form where on clicking a button, I open a subwindow which contains a combo box. The value selected in combobox is returned to the form element.
On submitting the form details, I printout the HTML thru servlet. Now, when I click the same button again to open the subwindow, the error message "Error file was not found.(servlet name=AssignEngr.html)appears.
How can I open the subwindow?IS there any way of returning the formelement values without actually reprinting the HTML form thru the servlet(ie, only reading the values and then returning the values to a static HTML page).Thanx in advance.
CODE PIECES ARE AS FOLLOWS
In html page :
a]
<script language='javascript'>
function assignEngr(){
if(myWin.name==null){
myWin=window.open("AssignEngr.html","subwindow","HEIGHT=100,width=350")
}else{
myWin.focus()
}
</script>
b] <td bgcolor=999999><input type=text name="Application" value=""><input type=button value=" ? " onClick=application()></tr></table>
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
