by Jan Verhoeven, 16 November 2001
Using a hidden IFRAME or LAYER tag you can do remote scripting. It is my preferred way of handling user input in an ASP application.
There are many advantages in using remote scripting:
Using IE you can add your own custom attributes to an html tag. If for instance you have a select list with option elements you can do things like:
<option value='<%=id_question%>' ref_user='<%=id_user%>' ref_survey='<%=id_survey%>'><%=strQuestion%></option>
In your script you then get a reference to the selected option and can retrieve the values of the required attributes, including the custom ones.
id_question=opt.value
ref_user=opt.ref_user
ref_survey=opt.ref_survey
strQuestion=opt.text
There is really no limit with what you can do using remote scripting.