| re: Redirect Problem in IE
Ray wrote:
[color=blue]
> function displayPage(page,id)
> {
> /*
> alert("Page: "+page)
> alert("ID: "+id)
> */
>
> // Set the cookie so the truck page knows which truck to display...
> expireDate = new Date;
> document.cookie="Truck="+id+";expires="+expireDate ;
>
> // Display the page...
> window.location.href=page;
> return false;
> }
>
> I have used various combinations of the location method including;
> window.location=page;
> window.location.href=page;
> window.navigate=page;
> document.location=page;
> document.location.href=page;
> location=page;
> location.href=page;[/color]
Whether that approach is applicable depends on how you call displayPage().
If `page' is a URL reference to another second-level domain, it cannot not
work: you can only read and set cookies for the same second-level domain or
the same host address due to security precautions.
PointedEars |