[Javascript] window location hash

Guillaume javascript at webdesignofficina.com
Fri Mar 23 11:17:39 CDT 2007


Matt,

Thanks for your reply...

It's ok I've managed to make it work... But unfortunately the original 
bug remains in Safari...

Regards.

Guillaume.
> On 3/23/07, Guillaume <javascript at webdesignofficina.com> wrote:
>>  Here's what I end with:
>>
>>   var hashValue = "bottomPage";
>>   if (hashValue == window.location.hash)
>>  {
>>  window.location.hash = new String((new Date().getMilliseconds()));
>>  }
>>  window.location.hash = hashValue;
>>  }
>
> My only remaining idea is to try adding a delay.
>
> var hashValue = "bottomPage";
> if (hashValue == window.location.hash)
> {
> window.location.hash = new String((new Date()).getMilliseconds());
> }
>
> window.setTimeout('window.location.hash = hashValue;', 250);
>
> If this does work, you may wish to sniff out Safari and only insert
> the delay for Safari, as it will make your application seem less
> responsive.
>




More information about the Javascript mailing list