S
Steve
I have the following function in my .net page
<script language=javascript>
function selectFile(fileUrl)
{
if(navigator.appName.indexOf('Microsoft')!=-1)
window.returnValue=fileUrl;
else
window.opener.setAssetValue(fileUrl);
self.close();
}
</script>
and the following code in the page
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input id="Button1" type="button" value="button"
onclick="selectFile('textbox1value')"/>
I want the user entry in TextBox1 to be sent as the parameter of the
selectFile function for the onclick event of the button.
i.e. for the user to enter something into TextBox1, and then to click
on the button. The text he enters into TextBox1 will be used for the
Parameter of the selectFile function.
<script language=javascript>
function selectFile(fileUrl)
{
if(navigator.appName.indexOf('Microsoft')!=-1)
window.returnValue=fileUrl;
else
window.opener.setAssetValue(fileUrl);
self.close();
}
</script>
and the following code in the page
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input id="Button1" type="button" value="button"
onclick="selectFile('textbox1value')"/>
I want the user entry in TextBox1 to be sent as the parameter of the
selectFile function for the onclick event of the button.
i.e. for the user to enter something into TextBox1, and then to click
on the button. The text he enters into TextBox1 will be used for the
Parameter of the selectFile function.