Hi I have this code which is working fine
however I would like it to open in a popup window if possible. I do use the following on another page but i am unsure about how to incorporate it in this instance
Would anyone be able to point me in the right direction please
Regards
Paul
Code:
<form action="ExSampleAddress.asp" name="frmAdd" target="_blank" class="input" id="frmAdd">
<% If Not rsAddresses.EOF Or Not rsAddresses.BOF Then %>
<table width="40%" border="0" align="center">
<tr class="TextCentrePlain10px">
<td><select name="lstMain" class="TextCentrePlain10px" id="lstMain" onChange="javascript:document.frmAdd.submit(this.form)">
<option value="Select Customer">Select Customer</option>
<%
While (NOT rsAddresses.EOF)
%>
<option value="<%=(rsAddresses.Fields.Item("CustomerNo").Value)%>"><%=rsAddresses("CustomerNo") & " " & left(rsAddresses("Address1"),20) & " " & rsAddresses("PostCode")%></option>
<%
rsAddresses.MoveNext()
Wend
If (rsAddresses.CursorType > 0) Then
rsAddresses.MoveFirst
Else
rsAddresses.Requery
End If
%>
</select></td>
</tr>
</table>
<% End If ' end Not rsAddresses.EOF Or NOT rsAddresses.BOF %>
</form>
however I would like it to open in a popup window if possible. I do use the following on another page but i am unsure about how to incorporate it in this instance
Code:
<a href='JavaScript:openPopWin("[URL unfurl="true"]http://MyNet/Enquiries/ExDeladdress.asp?<%=[/URL] Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "companynumber=" & rsDetails.Fields.Item("companynumber").Value %>", 700, 600,"scrollbars", 400, 250)' class="TextLeft12px">Search</a>
Regards
Paul