Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] window location hash


  • From: javascript at webdesignofficina.com (Guillaume)
  • Subject: [Javascript] window location hash
  • Date: Fri Mar 23 11:18:06 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@xxxxxxxxxxxxxxxxxxxxx> 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.
>