dinosf
Technical User
- Dec 27, 2002
- 11
Hey guys -
I confess I don't know javascript well, I am writing an ASP.NET application and I need help with a snippet of code to accomplish something that .NET makes very difficult. Here's what I'm doing.
I have a page with a table of rates and deductibles, in this table is a series of dynamic controls that when clicked load information for another part of the page. I'm having trouble getting it to post correctly, so I came up wtih the idea of appending a querystring variable and retrieving it when the page posts back. What I need is a way to append a querystring variable and submit the form, at first I tried a hyperlink to the same page, but that reloaded the page from scratch. Any suggestions? Again I don't know js well at all what I'm looking for is something like what I use to open a new window, but to submit the form instead.
Here's how I do that
in the HTML page
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
Here's how I create it in code rb_Select is a radiobutton that is created on the fly, though if it's a radiobutton, other button or link does not matter I can use any.
strResult = "MM_openBrWindow('../Clerical/ReconcileScannedItems.aspx?intDeposit=" & arrD(i, 0) & "','Deposits','navigation=yes,location=yes,status=yes,scrollbars=yes,resizable=yes,width=600,height=600');return true;"
rb_Select.Attributes("onclick") = strResult
Thanks for reading this, I've been struggling with this for 2 very long days.
I confess I don't know javascript well, I am writing an ASP.NET application and I need help with a snippet of code to accomplish something that .NET makes very difficult. Here's what I'm doing.
I have a page with a table of rates and deductibles, in this table is a series of dynamic controls that when clicked load information for another part of the page. I'm having trouble getting it to post correctly, so I came up wtih the idea of appending a querystring variable and retrieving it when the page posts back. What I need is a way to append a querystring variable and submit the form, at first I tried a hyperlink to the same page, but that reloaded the page from scratch. Any suggestions? Again I don't know js well at all what I'm looking for is something like what I use to open a new window, but to submit the form instead.
Here's how I do that
in the HTML page
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
Here's how I create it in code rb_Select is a radiobutton that is created on the fly, though if it's a radiobutton, other button or link does not matter I can use any.
strResult = "MM_openBrWindow('../Clerical/ReconcileScannedItems.aspx?intDeposit=" & arrD(i, 0) & "','Deposits','navigation=yes,location=yes,status=yes,scrollbars=yes,resizable=yes,width=600,height=600');return true;"
rb_Select.Attributes("onclick") = strResult
Thanks for reading this, I've been struggling with this for 2 very long days.