Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how can i write javascript code in asp  for showing a progress circle during page upload on click event of submission button

Posted on 2008-10-17
4
543 Views
Last Modified: 2010-04-21
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.style.display="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
0
Comment
Question by:psaini172000
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
mirzas earned 500 total points
ID: 22740934
you will need to trigger a client side java script to show the circle as the user click the go button.
0
 

Author Closing Comment

by:psaini172000
ID: 31507127
pls give the code in javascript to show the circle as the user click the go button.
0
 

Author Comment

by:psaini172000
ID: 22747415
this is not sufficient.
pls give complete solution
Thanks
0
 

Author Comment

by:psaini172000
ID: 22747418
pls give complete solution
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
html Uncheck Checkbox 2 25
CREATE DATABASE 3 28
Ajax and PHP 9 29
insert ID of database value into database instead of text value from text field 23 25
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question