Redirect Hangs with Linked Files

D

Don Miller

I have an ASP script that is called from a PDF form to process form data. On
the last line of the script I have a Response.Redirect "webpage.asp" that
leads to another target page with actual HTML. However when I start this
process (by submitting form data) even when I comment out the processing
code, the address bar shows the desired page, but the page never appears and
the flag keeps spinning indefinitely (and doesn't stop even after 15
minutes). When I finally press Escape to stop it and then I press Refresh
the page appears immediately.

I've found that if I remove all the HTML code that has links to other files
(images, javascript, stylesheets) that the target page loads promptly from
the same Redirect method.

Does anyone know what could be causing this? It seems IE (or IIS) gets lost
looking those other files.

Thanks for any tips.
 
D

Don Miller

I do have Norton but with Script Blocking OFF, no FSO code. The same thing
(hanging) happens when I redirect to a simple HTML file like:

<html>
<body>
Here's the page
<img border="0" src="images/picture.gif">
</body>
</html>

When I take out the <IMG> section it works fine.

Something to do with the header, or buffer, or ??????
 
D

Don Miller

The snippet below was named test.htm and the ASP code redirected to that
file..
 
R

Ray at

So, if you have these two files:

test.asp:

<% Response.Redirect "test.htm" %>


test.htm:

<html>
<body>
Here's the page
<img border="0" src="images/picture.gif">
</body>
</html>


and load test.asp, IE hangs on the redirect?

Ray at work
 
D

Don Miller

Yes. When the PDF form is submitted to test.asp (exactly as below), it tries
unsuccesfully to completely load test.htm. When I hit Escape it stops trying
and when I press F5(refresh) the page loads immediately, image and all.

When I remove the <img> element from test.htm, and submit the PDF form to
test.asp, test.htm appears immediately. Go figure.
 
R

Ray at

You're right. That makes no sense. You actually see the .htm URL in your
browser? What is it that made you think to remove the <IMG> tag to debug
this as opposed to trying other things? That seems like an odd first step
or even twentieth step. If you do a view-source while the .htm page is
supposedly loading in IE, do you get a source?

Ray at work
 
D

Don Miller

You actually see the .htm URL in your

Yes, in the address window. And I see "Opening page
http://website/test.htm... in the lower left window.
If you do a view-source while the .htm page is
supposedly loading in IE, do you get a source?

Yes. It's the exactly the same as the .htm code.
What is it that made you think to remove the <IMG> tag to debug
this as opposed to trying other things? That seems like an odd first step
or even twentieth step.

I'm on my 1000th step : (

Early on I created simple test target pages that worked (without graphics or
stylesheets or javascript files), then when I put real pages in, it hanged
(or hung?) Then, I just deleted chunks of HTML code (in a binary fashion)
till I got a page that worked.

I think that the Adobe submit form data code is doing something as I have
other ASP applications that don't have this redirection problem at all.

I thought someone might understand the nuts and bolts of web pages,
downloading images, etc. might know a way to fix whatever Adobe screwed
up????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top