Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:54 AM
Don Miller
Guest
 
Posts: n/a
Default Redirect Hangs with Linked Files

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.


  #2  
Old July 19th, 2005, 09:54 AM
Ray at
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

My guesses are that you're redirecting a page to itself, have an endless
loop in a page, or are using the FSO and suffering from
http://www.aspfaq.com/search.asp?q=n...cript+blocking

Ray at work

"Don Miller" <nospam@nospam.com> wrote in message
news:uRnsVmRuDHA.2444@TK2MSFTNGP12.phx.gbl...[color=blue]
> I have an ASP script that is called from a PDF form to process form data.[/color]
On[color=blue]
> 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[/color]
and[color=blue]
> 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[/color]
files[color=blue]
> (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[/color]
lost[color=blue]
> looking those other files.
>
> Thanks for any tips.
>
>[/color]


  #3  
Old July 19th, 2005, 09:54 AM
Don Miller
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

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 ??????


"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%23lquwqRuDHA.3744@TK2MSFTNGP11.phx.gbl...[color=blue]
> My guesses are that you're redirecting a page to itself, have an endless
> loop in a page, or are using the FSO and suffering from
> http://www.aspfaq.com/search.asp?q=n...cript+blocking
>
> Ray at work
>
> "Don Miller" <nospam@nospam.com> wrote in message
> news:uRnsVmRuDHA.2444@TK2MSFTNGP12.phx.gbl...[color=green]
> > I have an ASP script that is called from a PDF form to process form[/color][/color]
data.[color=blue]
> On[color=green]
> > the last line of the script I have a Response.Redirect "webpage.asp"[/color][/color]
that[color=blue][color=green]
> > 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[/color]
> and[color=green]
> > 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[/color][/color]
Refresh[color=blue][color=green]
> > the page appears immediately.
> >
> > I've found that if I remove all the HTML code that has links to other[/color]
> files[color=green]
> > (images, javascript, stylesheets) that the target page loads promptly[/color][/color]
from[color=blue][color=green]
> > the same Redirect method.
> >
> > Does anyone know what could be causing this? It seems IE (or IIS) gets[/color]
> lost[color=green]
> > looking those other files.
> >
> > Thanks for any tips.
> >
> >[/color]
>
>[/color]


  #4  
Old July 19th, 2005, 09:54 AM
Ray at
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

What happens if you rename the file to a .htm file?

Ray at work

"Don Miller" <nospam@nospam.com> wrote in message
news:eaxFy4RuDHA.556@TK2MSFTNGP11.phx.gbl...[color=blue]
> 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 ??????
>
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:%23lquwqRuDHA.3744@TK2MSFTNGP11.phx.gbl...[color=green]
> > My guesses are that you're redirecting a page to itself, have an endless
> > loop in a page, or are using the FSO and suffering from
> > http://www.aspfaq.com/search.asp?q=n...cript+blocking
> >
> > Ray at work
> >
> > "Don Miller" <nospam@nospam.com> wrote in message
> > news:uRnsVmRuDHA.2444@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > I have an ASP script that is called from a PDF form to process form[/color][/color]
> data.[color=green]
> > On[color=darkred]
> > > the last line of the script I have a Response.Redirect "webpage.asp"[/color][/color]
> that[color=green][color=darkred]
> > > leads to another target page with actual HTML. However when I start[/color][/color][/color]
this[color=blue][color=green][color=darkred]
> > > process (by submitting form data) even when I comment out the[/color][/color][/color]
processing[color=blue][color=green][color=darkred]
> > > code, the address bar shows the desired page, but the page never[/color][/color][/color]
appears[color=blue][color=green]
> > and[color=darkred]
> > > 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[/color][/color]
> Refresh[color=green][color=darkred]
> > > the page appears immediately.
> > >
> > > I've found that if I remove all the HTML code that has links to other[/color]
> > files[color=darkred]
> > > (images, javascript, stylesheets) that the target page loads promptly[/color][/color]
> from[color=green][color=darkred]
> > > the same Redirect method.
> > >
> > > Does anyone know what could be causing this? It seems IE (or IIS) gets[/color]
> > lost[color=darkred]
> > > looking those other files.
> > >
> > > Thanks for any tips.
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #5  
Old July 19th, 2005, 09:54 AM
Don Miller
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

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

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Orazz8RuDHA.2308@TK2MSFTNGP11.phx.gbl...[color=blue]
> What happens if you rename the file to a .htm file?
>
> Ray at work
>
> "Don Miller" <nospam@nospam.com> wrote in message
> news:eaxFy4RuDHA.556@TK2MSFTNGP11.phx.gbl...[color=green]
> > I do have Norton but with Script Blocking OFF, no FSO code. The same[/color][/color]
thing[color=blue][color=green]
> > (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 ??????
> >
> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:%23lquwqRuDHA.3744@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > My guesses are that you're redirecting a page to itself, have an[/color][/color][/color]
endless[color=blue][color=green][color=darkred]
> > > loop in a page, or are using the FSO and suffering from
> > > http://www.aspfaq.com/search.asp?q=n...cript+blocking
> > >
> > > Ray at work
> > >
> > > "Don Miller" <nospam@nospam.com> wrote in message
> > > news:uRnsVmRuDHA.2444@TK2MSFTNGP12.phx.gbl...
> > > > I have an ASP script that is called from a PDF form to process form[/color]
> > data.[color=darkred]
> > > On
> > > > the last line of the script I have a Response.Redirect "webpage.asp"[/color]
> > that[color=darkred]
> > > > leads to another target page with actual HTML. However when I start[/color][/color]
> this[color=green][color=darkred]
> > > > process (by submitting form data) even when I comment out the[/color][/color]
> processing[color=green][color=darkred]
> > > > code, the address bar shows the desired page, but the page never[/color][/color]
> appears[color=green][color=darkred]
> > > 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[/color]
> > Refresh[color=darkred]
> > > > the page appears immediately.
> > > >
> > > > I've found that if I remove all the HTML code that has links to[/color][/color][/color]
other[color=blue][color=green][color=darkred]
> > > files
> > > > (images, javascript, stylesheets) that the target page loads[/color][/color][/color]
promptly[color=blue][color=green]
> > from[color=darkred]
> > > > the same Redirect method.
> > > >
> > > > Does anyone know what could be causing this? It seems IE (or IIS)[/color][/color][/color]
gets[color=blue][color=green][color=darkred]
> > > lost
> > > > looking those other files.
> > > >
> > > > Thanks for any tips.
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #6  
Old July 19th, 2005, 09:54 AM
Ray at
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

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

"Don Miller" <nospam@nospam.com> wrote in message
news:OJEcX%23RuDHA.2352@TK2MSFTNGP09.phx.gbl...[color=blue]
> The snippet below was named test.htm and the ASP code redirected to that
> file..
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:Orazz8RuDHA.2308@TK2MSFTNGP11.phx.gbl...[color=green]
> > What happens if you rename the file to a .htm file?
> >
> > Ray at work
> >
> > "Don Miller" <nospam@nospam.com> wrote in message
> > news:eaxFy4RuDHA.556@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > I do have Norton but with Script Blocking OFF, no FSO code. The same[/color][/color]
> thing[color=green][color=darkred]
> > > (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 ??????
> > >
> > >
> > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
> > > news:%23lquwqRuDHA.3744@TK2MSFTNGP11.phx.gbl...
> > > > My guesses are that you're redirecting a page to itself, have an[/color][/color]
> endless[color=green][color=darkred]
> > > > loop in a page, or are using the FSO and suffering from
> > > > http://www.aspfaq.com/search.asp?q=n...cript+blocking
> > > >
> > > > Ray at work
> > > >
> > > > "Don Miller" <nospam@nospam.com> wrote in message
> > > > news:uRnsVmRuDHA.2444@TK2MSFTNGP12.phx.gbl...
> > > > > I have an ASP script that is called from a PDF form to process[/color][/color][/color]
form[color=blue][color=green][color=darkred]
> > > data.
> > > > On
> > > > > the last line of the script I have a Response.Redirect[/color][/color][/color]
"webpage.asp"[color=blue][color=green][color=darkred]
> > > that
> > > > > leads to another target page with actual HTML. However when I[/color][/color][/color]
start[color=blue][color=green]
> > this[color=darkred]
> > > > > process (by submitting form data) even when I comment out the[/color]
> > processing[color=darkred]
> > > > > code, the address bar shows the desired page, but the page never[/color]
> > appears[color=darkred]
> > > > and
> > > > > the flag keeps spinning indefinitely (and doesn't stop even after[/color][/color][/color]
15[color=blue][color=green][color=darkred]
> > > > > 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[/color][/color]
> other[color=green][color=darkred]
> > > > files
> > > > > (images, javascript, stylesheets) that the target page loads[/color][/color]
> promptly[color=green][color=darkred]
> > > from
> > > > > the same Redirect method.
> > > > >
> > > > > Does anyone know what could be causing this? It seems IE (or IIS)[/color][/color]
> gets[color=green][color=darkred]
> > > > lost
> > > > > looking those other files.
> > > > >
> > > > > Thanks for any tips.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #7  
Old July 19th, 2005, 09:54 AM
Don Miller
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

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.

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uHxxqASuDHA.3196@TK2MSFTNGP11.phx.gbl...[color=blue]
> 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
>
> "Don Miller" <nospam@nospam.com> wrote in message
> news:OJEcX%23RuDHA.2352@TK2MSFTNGP09.phx.gbl...[color=green]
> > The snippet below was named test.htm and the ASP code redirected to that
> > file..
> >
> > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> > news:Orazz8RuDHA.2308@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > What happens if you rename the file to a .htm file?
> > >
> > > Ray at work
> > >
> > > "Don Miller" <nospam@nospam.com> wrote in message
> > > news:eaxFy4RuDHA.556@TK2MSFTNGP11.phx.gbl...
> > > > I do have Norton but with Script Blocking OFF, no FSO code. The same[/color]
> > thing[color=darkred]
> > > > (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 ??????
> > > >
> > > >
> > > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in[/color][/color]
> message[color=green][color=darkred]
> > > > news:%23lquwqRuDHA.3744@TK2MSFTNGP11.phx.gbl...
> > > > > My guesses are that you're redirecting a page to itself, have an[/color]
> > endless[color=darkred]
> > > > > loop in a page, or are using the FSO and suffering from
> > > > > http://www.aspfaq.com/search.asp?q=n...cript+blocking
> > > > >
> > > > > Ray at work
> > > > >
> > > > > "Don Miller" <nospam@nospam.com> wrote in message
> > > > > news:uRnsVmRuDHA.2444@TK2MSFTNGP12.phx.gbl...
> > > > > > I have an ASP script that is called from a PDF form to process[/color][/color]
> form[color=green][color=darkred]
> > > > data.
> > > > > On
> > > > > > the last line of the script I have a Response.Redirect[/color][/color]
> "webpage.asp"[color=green][color=darkred]
> > > > that
> > > > > > leads to another target page with actual HTML. However when I[/color][/color]
> start[color=green][color=darkred]
> > > 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[/color][/color][/color]
after[color=blue]
> 15[color=green][color=darkred]
> > > > > > minutes). When I finally press Escape to stop it and then I[/color][/color][/color]
press[color=blue][color=green][color=darkred]
> > > > Refresh
> > > > > > the page appears immediately.
> > > > > >
> > > > > > I've found that if I remove all the HTML code that has links to[/color]
> > other[color=darkred]
> > > > > files
> > > > > > (images, javascript, stylesheets) that the target page loads[/color]
> > promptly[color=darkred]
> > > > from
> > > > > > the same Redirect method.
> > > > > >
> > > > > > Does anyone know what could be causing this? It seems IE (or[/color][/color][/color]
IIS)[color=blue][color=green]
> > gets[color=darkred]
> > > > > lost
> > > > > > looking those other files.
> > > > > >
> > > > > > Thanks for any tips.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #8  
Old July 19th, 2005, 09:54 AM
Ray at
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

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

"Don Miller" <nospam@nospam.com> wrote in message
news:OQzMwESuDHA.1596@TK2MSFTNGP10.phx.gbl...[color=blue]
> Yes. When the PDF form is submitted to test.asp (exactly as below), it[/color]
tries[color=blue]
> unsuccesfully to completely load test.htm. When I hit Escape it stops[/color]
trying[color=blue]
> 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.
>[/color]


  #9  
Old July 19th, 2005, 09:54 AM
Don Miller
Guest
 
Posts: n/a
Default Re: Redirect Hangs with Linked Files

> You actually see the .htm URL in your[color=blue]
> browser?[/color]

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

Yes. It's the exactly the same as the .htm code.
[color=blue]
>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.[/color]

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????




"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:efZJOISuDHA.1744@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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
>
> "Don Miller" <nospam@nospam.com> wrote in message
> news:OQzMwESuDHA.1596@TK2MSFTNGP10.phx.gbl...[color=green]
> > Yes. When the PDF form is submitted to test.asp (exactly as below), it[/color]
> tries[color=green]
> > unsuccesfully to completely load test.htm. When I hit Escape it stops[/color]
> trying[color=green]
> > 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[/color][/color]
to[color=blue][color=green]
> > test.asp, test.htm appears immediately. Go figure.
> >[/color]
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles