Click to See Complete Forum and Search --> : opera won't process response.redirect code. Help!


ojosparausted
02-19-2004, 03:30 PM
I have a drop down menu on my site that I'm using for navigation. Basically I take the form selection and use a response.redirect to take the user to a new page. It works perfectly in recent versions of IE, Mozilla, and Netscape. Opera 7.23 won't processs the script correctly: I get an OBJECT MOVED error everytime. I have tried using a response.buffer=true statement, response.clear, response.end in different combinations but nothing works. I even tried server.redirect(or something to this effect that I found on the MS site).
My code is as follows:
<%
dim GoToURL
If Request.ServerVariables("CONTENT_LENGTH") > 0 then
GoToURL = Request.Form("filename")
Response.Redirect(GoToURL)
End If
%>
I've tried simpler code but I get the same results with Opera. I tested with response.write and I get the correct variable but Opera still drops the ball. I was also wondering if perhaps I have my Opera settings restricted , but I don't think that's the case.
Again, works everywhere but Opera. Any ideas?
:confused:

buntine
02-19-2004, 11:13 PM
ASP is sprocessed on the server. Opera simply cannot effect the way your script executes..

The first line of your script must be as follows:

response.buffer = true


There must be some error in your copy of Opera. Try reinstalling it.

ojosparausted
02-20-2004, 12:10 AM
The response.buffer is in the script and I still get the same error. I've also reinstalled but to no avail. The page is [URL=http://www.torontorelocation.net] if someone can try it with their version of Opera...

ojosparausted
02-20-2004, 12:20 AM
Okay problem solved. Being the genius that I'm not, I had "automatic redirect" disabled in Opera. Sorry for wasting these bytes....

buntine
02-20-2004, 01:18 AM
Thats ok, just remeber your browser cannot alter the way an ASP script works..

Its the beauty of ASP and saimilar technologies.