473,789 Members | 2,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4076
Chints,

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

Response.Redire ct 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********@yah oo.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.Redir ect 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********@yah oo.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
2557
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 into a database, sends them a confirmation e-mail, etc. Once the form processing is done, the user is redirected to a Thank You Page. The thank you page has the following code in it:
4
2497
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
2860
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 'Processing....' once the query has finished running the message disappears. I was thinking of showing then hiding a layer, but I don't know how to say, show this message at a set point eg below the select box on the screen
0
1487
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... My program structure (language VB) <script runat="server">
6
1945
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: myNextButton.Attributes.Add("onclick", "return confirm('Are you sure you want finish this test?');") to attach a popup box to a button. The problem is that the buttons only say OK and Cancel. OK will take me to the event tied to the button and Cancel,
16
3842
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
2848
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 message box to be conditional upon what was used to bring up the particular message box. (I have been handling something like this so far by having inline messages and reposting the page.)
6
2960
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 on the job's status while not stopping the process that is running. It does not need to be pretty. I'd be quite happy with a quick Response.Write("Job has finished consuming 300 of 9356 bananas"); or similar. I don't care if the message is...
2
1413
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 what methods and some code. Thanks,
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10139
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.