By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,143 Members | 1,919 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,143 IT Pros & Developers. It's quick & easy.

"window.open" doesn't work with "form action post"

P: 2
Hi,

I am working with VBScript and I put a "window.open" inside a "form action post" due that I am handing a "checkbox" on it, but the "window.open" doesn't work:


<FORM ACTION="baz_add_action.asp" METHOD="post">

...here go the Window.open script

<INPUT NAME="add<%=p_prod_id%>" TYPE="checkbox" value="ON">
<INPUT TYPE="submit" NAME="button" VALUE="Go to Order">
</FORM>

when I do a click on the picture that contain the sub rutine to expand it (window.open) the script bring me wrongly to form action "baz_add_action.asp"...How could I solve this?

Thanks in advance.
May 1 '06 #1
Share this Question
Share on Google+
1 Reply


P: 2
additional information:

below is the script that it doesn´t work with form action post, but I need to work with form action becasue it displays a list of products with check boxes on it.

Thanks


<TD height="62"><%p_image=prodset("imagen_prod")%>
<%p_prod=prodset("id_prod")%>
<script language="vbscript">
Sub ventana<%=p_prod%>_onClick
Window.open "/images.asp?p_image=<%=p_image%>", "navwindow", "top=0, left=0, height=340, width=420,*status=yes, toolbar=no, menubar=no, location=no, scrollbars=no, resizable=no"
End Sub
</script>
<input type="image" name="ventana<%=p_prod%>" src="/images/<%=p_image%>" height="60" width="80"></TD>
May 1 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.