Forum Moderators: open
Here's the frameset
------------------------------------------------
<frameset rows="200,*" cols="*" framespacing=0 frameborder=no border=1>
<frame src="getcount.php?lots=1" name="upper_frame" id="upper_frame"
marginheight=0
marginwidth=0
noresize>
<frame src="lot/avail_options.php?avail=1&revise_search="
name="lower_frame" id="lower_frame"
marginheight=5
marginwidth=5
scrolling=auto
resize>
</frameset>
------------------------------------------------
Here's the javascript in the upper_frame (getcount.php) that's trying to pass the data to lower_frame. It's failing on the first IF statement.
if(parent.lower_frame && parent.lower_frame.frmCount && parent.lower_frame.frmCount.counter){
parent.lower_frame.frmCount.counter.value = parent.upper_frame.getdata.rec_count.value;
parent.lower_frame.frmParams.where_params.value = "";
}
------------------------------------------------
Here's the form in lower_frame that should be receiving the data (including the DIV in case it's relavant).
<DIV id="Floatme" name="Floatme" STYLE="position:absolute;left:10;top:100;width:100;">
<form action="#" id="frmCount" name="frmCount">
<TABLE bordercolor="#666666" border="0" frame="void" rules="cols" cellspacing="0" WIDTH="50" BGCOLOR="#FFFFCC">
<TR><TD align="center" class="homefont">Search<br>Results</TD></TR>
<TR>
<TD align="center">
<input type="text" name="counter" size="4" readonly style="text-align:center">
</TD>
</TR>
</TABLE>
</form>
</DIV>
I replaced "parent." with "top.", but that made no difference. Any help would be greatly appreciated.
the last one is the best i think, but for it to work, you should alter the form tag accordingly:
<form action="#" id="frmCount" name="frmCount" id="frmCount">