You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Neu <pe...@gmx.net> on 2007/10/19 16:09:42 UTC

[OT] Window.location.hash & Struts & Firefox

Hello,

 

does somebody know how to get the window.location.hash to work in Firefox. 

 

I need to dynamically route the user to the right spot in my app with a
session variable and this little 

Bit of JS. Works in IE but not in Fire Fox

 

<script type="text/javascript">

                window.location.hash = "#<bean:write name="anchor"/>";

            </script>

 

Using Fire Fox  2.0.0..

Cheers,

Pete 

 


Re: [OT] Window.location.hash & Struts & Firefox

Posted by Dave Newton <ne...@yahoo.com>.
That is, indeed, pretty off-topic, and should have
been asked elsewhere: not even Java, let alone Struts.

I don't even know what window.location.hash is; I
thought it was location.href.

--- Peter Neu <pe...@gmx.net> wrote:

> Hello,
> 
>  
> 
> does somebody know how to get the
> window.location.hash to work in Firefox. 
> 
>  
> 
> I need to dynamically route the user to the right
> spot in my app with a
> session variable and this little 
> 
> Bit of JS. Works in IE but not in Fire Fox
> 
>  
> 
> <script type="text/javascript">
> 
>                 window.location.hash = "#<bean:write
> name="anchor"/>";
> 
>             </script>
> 
>  
> 
> Using Fire Fox  2.0.0..
> 
> Cheers,
> 
> Pete 
> 
>  
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org