Hi all. Tried to do a search on this one, but didnt know exactly how to word it so I wasn't able to find much info on what I wanted to do.
Overview of what I'm trying to do.
Version: asp.net 1.1
I have a crystal report that takes a long time to run and impatient users click the submit button over and over mucking up the system.
I've been trying to create a "processing your request" type progress bar that will pretty much inform the user to chill out and let the report run its course. (I'm also going to disable the buttons when I get that far).
I've gotten the bar to run, but for the life of me cannot call the ProcessReport() from the javascript and its driving me nuts.
html_ShowElement('AjaxLoading'); // There's another function to show the element, thats not an issue, so I didnt include it //
window.setTimeout('$x("AjaxLoading").innerHTML = $x("AjaxLoading").innerHTML', 100); }
???? Here's where I'm hitting the ceiling. What do I call here to run the ProcessReport() c# function in the code behind?
I've tried __doPostBack and <% ProcessReport(); %> (which unfortunately runs the process as soon as it's encountered so thats not good) and neither have seemed to run it for some reason.
my Form info:
<form id="wwv_flow" action="wwv_flow.accept" method="post" name="wwv_flow" runat="server">
Frank Phillp...
Member
125 Points
30 Posts
Javascript calling c# function
Sep 18, 2007 02:16 PM|LINK
Hi all. Tried to do a search on this one, but didnt know exactly how to word it so I wasn't able to find much info on what I wanted to do.
Overview of what I'm trying to do.
Version: asp.net 1.1
I have a crystal report that takes a long time to run and impatient users click the submit button over and over mucking up the system.
I've been trying to create a "processing your request" type progress bar that will pretty much inform the user to chill out and let the report run its course. (I'm also going to disable the buttons when I get that far).
I've gotten the bar to run, but for the life of me cannot call the ProcessReport() from the javascript and its driving me nuts.
Javascript:
function html_Submit_Progress(pThis)
{ if(pThis.nodeName=='INPUT') {
pThis.value='...Loading...' }
else {
pThis.innerHTML='...Loading...' };
html_ShowElement('AjaxLoading'); // There's another function to show the element, thats not an issue, so I didnt include it //
window.setTimeout('$x("AjaxLoading").innerHTML = $x("AjaxLoading").innerHTML', 100); }
???? Here's where I'm hitting the ceiling. What do I call here to run the ProcessReport() c# function in the code behind?
I've tried __doPostBack and <% ProcessReport(); %> (which unfortunately runs the process as soon as it's encountered so thats not good) and neither have seemed to run it for some reason.
my Form info:
<form id="wwv_flow" action="wwv_flow.accept" method="post" name="wwv_flow" runat="server">
Any help would be greatly appreciated.
Thanks
Frank