473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

displaying a loading message

hi,
iam including a php page containing db insertion and xml creation in another page.but until the included page fully processed,page diaplaying contens is fully blank.any idea of giving a loading message till included page fully processed? page is included at top of page
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['userid']))
  4. {?>
  5. <script type="text/javascript">window.location='index.php'</script>
  6. <?php
  7. ?>
  8. <?php
  9. include("prq_calculation.php"); 
  10. ?>
thanks in sdvance
Feb 9 '09 #1
1 3272
stepterr
157 100+
You have a couple options.
1.) meta refresh
2.) using javascript with onload (here's an example of that)
3.) or submit the page to an intermediate page first that has your message on it.

there are other options but those are the three I've done depending on the situation.
Feb 9 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: yawnmoth | last post by:
i'm trying to display text while a page is loading using a method similar to the following: <? ob_end_flush(); echo 'AAA<br>'; flush(); sleep(10); echo 'BBB'; ?>
1
by: oneglenport-programming | last post by:
Is there a javascript code for loading the contents of a document first, before displaying it? Thank you.
2
by: Aaron Queenan | last post by:
Is there any way to know whether the OnItemCheck is being called in response to a user action (mouse or keyboard) as opposed to the form loading? I have a class which derives from...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
2
by: Bernie Yaeger | last post by:
This is a simple question without, I'm afraid, a simple answer: I am loading a datatable with a fill method in a load event of a window. I know how to hook up to the rowchanged event so that I can...
4
by: John Suru | last post by:
I am loading up a combobox with data from an access database. The field I am loading is a date/time datatype. The data in the field is a short date(ex. 01/22/2004). When I load the combobox with the...
4
by: ambros.gleixner | last post by:
Hello everyone, I was wondering if (in pure command line, "non-visual" C++) there is a simple way of regularly calling an output function in the background while a process, e.g. loading of a...
6
by: Nelluru | last post by:
Hi, The problem is that I want to display a Loading Please Wait Message page when a page is trying to load. This all needs to be done when I click on a submit button.
4
by: merlin_at | last post by:
Okay, I'm still really new to javascript, so I'm looking for a little help. I want to grab a name with I'm trying to display a hyperlink in my body, but one of my functions overwrites it. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.