tparrish
09-03-2003, 02:18 PM
Please help me find a javascript to accept a user value from a textbox and receive the value into a aspx default.aspx web page textbox.
The situation is the remote search textbox on on a HTML page and the value needs to be passed to another url that contains default.aspx in that textbox.
Below is my sample HTML
<html>
<head>
<title>MYFAU - Search FAU Phonebook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
function passName(){
var name = "<html><head><title>My FAU Phone/Email</title></head>" +
"<body><h1> MyFAU Phone/Email</h1><p>" +
document.phonebook.username.value + "</p></body></html>";
pnameWin = window.open("", "phonebook", "width=400,height=250,scrollbars=yes");
pnameWin.document.write(name);
pnameWin.document.close();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table cellpadding=3 cellspacing=0 border=0 bgcolor="#ffffff" height="55" width="201">
<tr>
<td height="36">
<!--<form target="_blank" method="POST" action="http://aura.irm.fau.edu/cgi-bin/edir/edsearch.sh" name="phonebook">-->
<form name="phonebook">
<font face="Arial, Helvetica, sans-serif" size="1">Enter as <i> Last Name,
First Name</i></font><br>
<input name="username" type="txt" size=25>
<br>
<input type="button" value="Lookup Name" onClick="passName();">
<input type="reset" value="Reset" name="reset">
<input name="intv" type="hidden" value="0">
<a href="/searchpage/termsofuse.html" target="_blank"><font face="Arial, Helvetica, sans-serif" size="1">Terms
of Use</font></a>
</form>
</td>
</tr>
</table>
</body>
</html>
The situation is the remote search textbox on on a HTML page and the value needs to be passed to another url that contains default.aspx in that textbox.
Below is my sample HTML
<html>
<head>
<title>MYFAU - Search FAU Phonebook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
function passName(){
var name = "<html><head><title>My FAU Phone/Email</title></head>" +
"<body><h1> MyFAU Phone/Email</h1><p>" +
document.phonebook.username.value + "</p></body></html>";
pnameWin = window.open("", "phonebook", "width=400,height=250,scrollbars=yes");
pnameWin.document.write(name);
pnameWin.document.close();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table cellpadding=3 cellspacing=0 border=0 bgcolor="#ffffff" height="55" width="201">
<tr>
<td height="36">
<!--<form target="_blank" method="POST" action="http://aura.irm.fau.edu/cgi-bin/edir/edsearch.sh" name="phonebook">-->
<form name="phonebook">
<font face="Arial, Helvetica, sans-serif" size="1">Enter as <i> Last Name,
First Name</i></font><br>
<input name="username" type="txt" size=25>
<br>
<input type="button" value="Lookup Name" onClick="passName();">
<input type="reset" value="Reset" name="reset">
<input name="intv" type="hidden" value="0">
<a href="/searchpage/termsofuse.html" target="_blank"><font face="Arial, Helvetica, sans-serif" size="1">Terms
of Use</font></a>
</form>
</td>
</tr>
</table>
</body>
</html>