cfwindow
have an auction site and when a user clicks to place a bid on view_lots.cfm, a cfform will appear within a cfwindow. when the bid is submitted, the cfwindow disappears and the next page (place_bid_2.cfm) appears. this works fine in firefox but in IE an error message is displayed stating: window.mainWin is null or not an object.
is there a better way of going about this using cfwindow?
the relevant code is:
view_lots.cfm
<script language="JavaScript1.2" type="text/javascript">
window.name = "mainWin";
</script>
<CFWINDOW
source="cfwindow_place_bid.cfm?LotID=#LotID#"
closable="false"
draggable="true"
height="195"
initShow="false"
name="#Lot_No# - #Lot_Title#"
resizable="false"
title=""
modal="true"
width="325"
center="true"
></CFWINDOW>
<a href="javascript:ColdFusion.Window.show('#Lot_No# - #Lot_Title#')"><img src="place_bid.gif" alt="Place Bid" border="0" /></a>
cfwindow_place_bid.cfm
<cfform name="form1" method="post" action="place_bid_2.cfm" target="mainWin" onsubmit="javascript:ColdFusion.Window.hide('#GetLot.Lot_No# - #GetLot.Lot_Title#'); window.mainWin.focus();">
Bid: <cfinput type="text" name="Bid" id="Bid" size="10" required="yes" message="Please Specify Bid" />
<cfinput type="submit" name="Submit" value="Submit!" />
</cfform>
