473,383 Members | 1,840 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,383 software developers and data experts.

Message while processing page.

Hi,
I have a very unique problem, i am submitting from a pdf
form, when submitted goes to a asp page, which saves the
data and redirects to a different page after saving the
data. I am writing a message called 'Processing Form
please wait' in the page where it is saving the data and
doing a response.flush(and i also di response.buffer
=true) but still it seems like it never hits this page.
When the user submits the form, it just stays on the pdf
file for a good 10-15 seconds and redirects to the last
page(after saving data). Can you please tell me whats
going wrong here. thanks in advance.

~Chints
Jul 19 '05 #1
2 4054
Chints,

What you are doing will not work in the manner that you are attempting to do
it. :)

Response.Redirect won't let you redirect if content has been written out to
the client, since it depends on the header of the page to cause a redirect.

Instead, insert a META tag into the page that causes the page to refresh
every five seconds or so. On each refresh, have it check to see if the
information has finished processing, if it has, then it redirects, if it
hasn't, then it finishes loading and outputs the Please Wait stuff.

You'll need to do your processing somewhere besides in the please wait page.

Another alternative would be to put a please wait message that you displayed
using Javascript on the page where they submit from.

Robert
"chints" <vi********@yahoo.com> wrote in message
news:05****************************@phx.gbl...
Hi,
I have a very unique problem, i am submitting from a pdf
form, when submitted goes to a asp page, which saves the
data and redirects to a different page after saving the
data. I am writing a message called 'Processing Form
please wait' in the page where it is saving the data and
doing a response.flush(and i also di response.buffer
=true) but still it seems like it never hits this page.
When the user submits the form, it just stays on the pdf
file for a good 10-15 seconds and redirects to the last
page(after saving data). Can you please tell me whats
going wrong here. thanks in advance.

~Chints

Jul 19 '05 #2
Thanks Robert for your reply, but how can i send
javascript from a pdf?

-----Original Message-----
Chints,

What you are doing will not work in the manner that you are attempting to doit. :)

Response.Redirect won't let you redirect if content has been written out tothe client, since it depends on the header of the page to cause a redirect.
Instead, insert a META tag into the page that causes the page to refreshevery five seconds or so. On each refresh, have it check to see if theinformation has finished processing, if it has, then it redirects, if ithasn't, then it finishes loading and outputs the Please Wait stuff.
You'll need to do your processing somewhere besides in the please wait page.
Another alternative would be to put a please wait message that you displayedusing Javascript on the page where they submit from.

Robert
"chints" <vi********@yahoo.com> wrote in message
news:05****************************@phx.gbl...
Hi,
I have a very unique problem, i am submitting from a pdf
form, when submitted goes to a asp page, which saves the
data and redirects to a different page after saving the
data. I am writing a message called 'Processing Form
please wait' in the page where it is saving the data and
doing a response.flush(and i also di response.buffer
=true) but still it seems like it never hits this page.
When the user submits the form, it just stays on the pdf
file for a good 10-15 seconds and redirects to the last
page(after saving data). Can you please tell me whats
going wrong here. thanks in advance.

~Chints

.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eric Linders | last post by:
Hello, I have a Web form that is filled out on my company's web site. When the submit button is pressed, the form data is posted to a PHP page that (in the background) inserts their information...
4
by: deepblue | last post by:
Hi, How to display a "Please wait" message in a webform when the webform is doing processing? The processing is initiated by user clicking a button. Thanks, Deepblue
4
by: Brian | last post by:
Hi there I'm not so hot on JavaScript so not sure if this can be done. I have a PHP page that runs a MySQl query, while these queries are running I would like to show a message saying...
0
by: FatboyCanteen | last post by:
I have a page when it starts loading, it will perform a long time process! So, the Page is empty during this time. I want to add a Processing Message, eg Processing. Processing.. Processing... ...
6
by: tshad | last post by:
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: ...
16
by: Neil Stevens | last post by:
Hi, I would like to implements a message queue much like i used to in vb6 as below:- dim myMsg as MSG while (PeekMessage(myMsg, hWnd, 0, 0)) if myMsg.Msg = WM_QUIT Then End end if
3
by: Shelly | last post by:
I want to do something like bringing up a message box in Java where after clicking OK the box disappears and processing continues. How do I do this in PHP? I want the processing after the...
6
by: Mark | last post by:
I'm building a web utility to do some processing that will run for several hours. Assume I have a valid reason for using the web for the utility. During the process I'd like to display an update...
2
by: JoeP | last post by:
Hi All, What kind of code is good to display message while the page is loaded: Something like this: Please wait... and when it is fully loaded then to clear the message. Please let me know of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.