This piece of code runs fine:
<a href="#" onClick="MyWindow=window.open('partslabor.asp','MyWindow','toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=300'); return false;">Labor and Materials</a>
<i><font color="#CC0000" size="1">(popups must be allowed for this site)</font></i>
This little piece of code does not:
<a href="#" onClick="MyWindow=window.open('partslabor.asp?CALLNBR=<%=FP_FieldURL(fp_rs,"CALLNBR")%>','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=450,height=300'); return false;">Labor and Materials</a>
<i><font color="#CC0000" size="1">(popups must be allowed for this site)</font></i>
That gets
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'rs'
/mycplus/_fpclass/fpdblib.inc, line 48
Or is there a way to change the default way this will open:
<a target="_blank" href="partslabor.asp?CALLNBR=<%=FP_FieldURL(fp_rs,"CALLNBR")%>">
Thanks in advance.