Code issue - FireFox vs. IE
DJGray | Posted 1:15pm 29. February 2008 Server Time |
I am calling this code (little photo rotator) in an IFRAME. It works beautifully in FireFox, but not in IE. My Session Variable never gets beyond a zero length in IE. Why?
(Sorry for all the debug response.write statements.)
<%
Address = request.querystring("current")
Pics = CInt(request.querystring("pics"))
if Len(Session("shownum")) = 0 then
response.write("In shownum Length = 0<br>")
Session("shownum") = 1
elseif Session("shownum") = "" then
response.write("In shownum = empty string")
Session("shownum") = 1
elseif Session("shownum") = (Pics + 1) then
response.write("In shownum = Pics total.")
Session("shownum") = 1
elseif Session("shownum") > Pics then
response.write("In shownum > Pics.")
Session("shownum") = 1
else
response.write("ShowNum is now "&Session("shownum")&".<br>")
end if
sub showpics
response.write("Pictures = "&Pics)
response.write("<br>")
response.write("Address = "&Address)
response.write("<br>")
Response.write("Session ShowNum = "&Session("shownum"))
response.write("<br>")
%>
<head>
<meta http-equiv="REFRESH" content="5">
<title></title>
</head>
<body topmargin="0" leftmargin="0">
<img src="../listedhomes/<%=Address%>/<%=Session("shownum")%>.jpg">
</body>
<%
Session("shownum") = (Session("shownum") + 1)
end sub
showpics
%> |
katy8439 | Posted 6:31am 7. March 2008 Server Time |
Which version of IE is it, and is the page within the IFRAME on the same server?
katy8439 | Posted 6:33am 7. March 2008 Server Time |
Oh, and have a look at:
http://classicasp.aspfaq.com/general/why-won-t-my-session-variables-stick.html
It could be that the refresh is resetting your session ID.
Have you thought about using javascript instead to rotate the images?
Reply to Post Code issue - FireFox vs. IE
|
|
|