Although there's a way to supress that sound:

http://www.julienlecomte.net/blog/2007/11/30/

you can't have both: "By using this trick, you will break the back /
forward navigation buttons. Therefore, this trick should only be used
for a non-navigational purpose only."


--Klaus



On Sep 7, 12:25 pm, Rob Anderson <[EMAIL PROTECTED]> wrote:
> I am hoping someone might be able to help with this problem.
>
> I am using the jQuery history plugin and it is working fine, except
> that in IE 6, I hear the 'start navigation' click sound twice when
> navigating backwards and forwards between pages.
>
> I have got as far as identifying the parts of the plugin code where
> this is occurring, but do not know enough to stop prevent the annoying
> double-click sound (it seems to fire once when the age is loaded and
> again when the hidden iframe is populated).
>
> Here is the relevant code segment and I have added two comments
> indicating where the clicks occur:
>
> -----------------------------------------------------
>
> load: function(hash) {
>                 var newhash;
>
>                 if ($.browser.safari) {
>                         newhash = hash;
>                 } else {
>                         newhash = '#' + hash;
> // First click heard in IE 6
>                         location.hash = newhash;
>                 }
>                 this._curHash = newhash;
>
>                 if ($.browser.msie) {
>                         var ihistory = $("#jQuery_history")[0]; // TODO: need
> contentDocument?
>                         var iframe = ihistory.contentWindow.document;
>                         iframe.open();
>             iframe.close();
> // Second click heard in IE 6
>             iframe.location.hash = newhash;
>
>                         this._callback(hash);
>                 }
>
> -----------------------------------------------------
>
> I note that the multiple click sounds occur in the jQuery History demo
> as well, so don't think it is just my implementation.
>
> Is there perhaps another way to load the new hsh location into the
> iframe?
>
> Any help much appreciated :)
>
> Thanks, Rob

Reply via email to