I'm currently running a set of pages structured something like this:
1. QUERY FORM: user enters data and clicks 'Go'
2. DATA from FORM is stored in DB, then redirects to INTERSTITIAL page
3. INTERSTITIAL PAGE is loaded and calls VB function
VB function spits out data at intervals onto INTERSTITIAL page (progress bar)
4. When VB function is finished, it redirects to RESULTS page
5. RESULTS page appears
My problem currently is at step 3 where the INTERSTITIAL page never appears in the browser. It waits at the FORM page until the function is finished, then shows INTERSTITIAL page for a split second and finally goes straight to RESULTS.
I used fiddler and noticed that INTERSTITIAL page is called but no data is sent from the server (size=-1).
The INTERSTITIAL page is designed so that the call to the VB function is at the very end so the browser should load the page. The function has Response.Buffer set as False. This all used to work fine until recently. I rolled back to a previous which worked and now it fails as well.
INTERSTITIAL code:
If anyone has any clues as to why this may be I would be greatly indebted.
1. QUERY FORM: user enters data and clicks 'Go'
2. DATA from FORM is stored in DB, then redirects to INTERSTITIAL page
3. INTERSTITIAL PAGE is loaded and calls VB function
VB function spits out data at intervals onto INTERSTITIAL page (progress bar)
4. When VB function is finished, it redirects to RESULTS page
5. RESULTS page appears
My problem currently is at step 3 where the INTERSTITIAL page never appears in the browser. It waits at the FORM page until the function is finished, then shows INTERSTITIAL page for a split second and finally goes straight to RESULTS.
I used fiddler and noticed that INTERSTITIAL page is called but no data is sent from the server (size=-1).
The INTERSTITIAL page is designed so that the call to the VB function is at the very end so the browser should load the page. The function has Response.Buffer set as False. This all used to work fine until recently. I rolled back to a previous which worked and now it fails as well.
INTERSTITIAL code:
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% response.Buffer = False function myFunction() Dim PauseTime, Start PauseTime = 3 'Set Duration Start = Timer 'Set start time Do While Timer < Start + PauseTime 'nothing happening Loop response.Write("<script>$('p').html('1')</script>") End function %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> </head> <body> <p>0</p> <% call myFunction %> </body> </html>
Comment