I have an .asp page named typeCode.asp with one form filed named myCode
In this page I have an iframe to load another page within
<iframe src="randomSelection.asp" width="560" height="100"></iframe>
The randomSelection.asp selects a random field value from a large access database and places this value on a button
<input onclick="UpdateMain('<%=ko
dRandom%>'
);" type="button" style="font-family: courier" value="<%=kodRandom%>" name="T26"> <a href="javascript:location.
reload()">
<img border="0" src="images/refresh.bmp"><
/a>
If the user clicks on the refresh icon, the randomSelection.asp selects another random field value. (I do not want the typeCode.asp to refresh- that's why I thought of an iframe)
Can some one provide me with the javascript function
UpdateMain(thisCode) that will update the typeCode.asp page-form filed myCode=thisCode ?
-or- suggest a better way to achive this...
Thank you
Start Free Trial