This information was collected before and I hope it will help you.
1, page1.htm
<body>
<form id=scr_data>
Name: <input type=text id=s_fname value= "None"
<br
Last Name: <input type=text id=s_lname value= "None"
<br><br>
<input Type=hidden Id=s_hidden value= "No value assigned yet!"
1 <input Type=button id=btn_callremotescripting0 value= "Display HIDDEN TEXT Box value" ><BR>
2. <input Type=button id=btn_callremotescripting1 value= "Change A-name, last name & Hidden Textbox values (calls a N ASP Page "><br>
3 <input type=button id=btn_callremotescripting2 value=" Display HIDDEN TEXT BOX value ( After Remote scripting) "><br>
4. <input Type=button id=btn_callremotescripting3 value=" clear A & Last Name values but Keep Hidden Text value (calls a HTML page) "><BR>
</form>
</body>
<script language=javascript>
CAN either use JAVASCRIPT OR VBSCRIPT ...
CAN ALSO Call an ASP OR HTML PAGE ...
var t = ' dialogleft:1024;dialogtop:768;dialogheight:0;dialogwidth:0;center:no;edge:raised; ' +
' Help:no;show=no;resizable:no;status:no;scroll:no;unadorned:yes '
function CallRemoteScript1 ()
{
var s = "remotescript1.asp"
/*
t = Window Properties
s = Page to call (ASP or HTML)
Scr_data = Your FORM id/name (*be sure to pass this parameter*)
*/
Self.showmodaldialog (S, Scr_data, T);
}
function CallRemoteScript2 ()
{
var s = "Remotescript2.htm"
/*
t = Window Properties
s = Page to call (ASP or HTML)
Scr_data = Your FORM id/name (*be sure to pass this parameter*)
*/
Self.showmodaldialog (S, Scr_data, T);
Alert (' Neat eh? ');
}
</script>
2, remotescript1.asp
<%@ Language=vbscript%>
<%
Dim Asp_var_fname
Dim Asp_var_s_lname
Asp_var_fname = "John"
Asp_var_lname = "Doe"
%>
<body>
</body>
<script language=vbscript>
Set f_reference = window.dialogarguments
F_Reference.s_FName.value = "<%=asp_var_FName%>"
F_Reference.s_LName.value = "<%=asp_var_LName%>"
F_Reference.s_Hidden.value = "This are now the new value of the Hidden TEXTBOX"
Self.close ()
</script>
3, remotescript2.htm
<body>
</body>
<script language=vbscript>
Set f_reference = window.dialogarguments
F_Reference.s_FName.value = ""
F_Reference.s_LName.value = ""
Self.close ()
</script>