psaini172000
asked on
how can i write javascript code in asp for showing a progress circle during page upload on click event of submission button
Hi
pls go to the url http://www.kitchenstuff.com/ks_test/ for a nice understanding of problems
when i click on go button on search box page is redirect to search_result.asp but it take several times.
i want that when page upload then there should be a progress circle that shows the upload process of the page.
for this puppose i used the following code.
<!-- if using Classic ASP: -->
<%
Response.Buffer = true
%>
<!-- if using PHP: -->
<?
ob_start();
?>
<!-- this bit goes at the very top of the page: -->
<div id='interstitial'>
<img src="LoadingAnimation.gif" width="50" height="50" alt="Loading ... Please wait... " />
</div>
<!-- This is for those times where you have to [asp: response.end] [php: exit(); ] for some reason-->
<script language="javascript">
setTimeout('interstitial.s tyle.displ ay="none"; ',10000);
</script>
<!-- if using Classic ASP: -->
<%
response.flush
%>
<!-- if using PHP: -->
<?
ob_end_flush();
?>
<!--
Insert your entire page contents here, including calls to the database
-->
<!-- this bit goes at the very bottom of the page: -->
<script language="javascript">
interstitial.style.display ="none";
</script>
but prob is that circle starts on load event of search_result page. not on click event of GO button _click.
how can i use upper code on click event of button.
any other suggestion besides it.
any help will be appriciated.
Thanks
pls go to the url http://www.kitchenstuff.com/ks_test/ for a nice understanding of problems
when i click on go button on search box page is redirect to search_result.asp but it take several times.
i want that when page upload then there should be a progress circle that shows the upload process of the page.
for this puppose i used the following code.
<!-- if using Classic ASP: -->
<%
Response.Buffer = true
%>
<!-- if using PHP: -->
<?
ob_start();
?>
<!-- this bit goes at the very top of the page: -->
<div id='interstitial'>
<img src="LoadingAnimation.gif"
</div>
<!-- This is for those times where you have to [asp: response.end] [php: exit(); ] for some reason-->
<script language="javascript">
setTimeout('interstitial.s
</script>
<!-- if using Classic ASP: -->
<%
response.flush
%>
<!-- if using PHP: -->
<?
ob_end_flush();
?>
<!--
Insert your entire page contents here, including calls to the database
-->
<!-- this bit goes at the very bottom of the page: -->
<script language="javascript">
interstitial.style.display
</script>
but prob is that circle starts on load event of search_result page. not on click event of GO button _click.
how can i use upper code on click event of button.
any other suggestion besides it.
any help will be appriciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this is not sufficient.
pls give complete solution
Thanks
pls give complete solution
Thanks
ASKER
pls give complete solution
ASKER