As far as I'm aware, fadeIn and fadeOut don't have easing arguments so
you should probably start by removing those.
This would at least ensure that the fadeIn is only getting a speed
argument, with no callback, or nothing that might be being interpreted
as a callback.

On Nov 3, 8:14 pm, Vik_R <[EMAIL PROTECTED]> wrote:
> This code works perfectly in Firefox, but in Safari, after the element fades
> in, it fades out again! The alert call only fires once, so it doesn't even
> seem like my call to fadeOut is even called a second time.
>
> Here's the code.
>
> function ScrollToDiv(theDivID)
>  {
>          $("html,body").animate({ scrollTop: $("#"+theDivID).offset().top });
>  }
>
> function ReplaceFormHelpButtonsWithImageOnlyHelpButtons ()
> {
>         var theHTMLString = ' /images/Help_Button.gif  ';
>         $("#help_button").html(theHTMLString);
>
> }
>
> $(document).ready(function()
> {
>  ReplaceFormHelpButtonsWithImageOnlyHelpButtons();
>
>  $("#HelpInfo").click(function(){
>         var htmlStr = $(this).html();
>         $(this).fadeOut('slow', function()
>                 {
>         alert(htmlStr);
>                         $("#HelpInfo").load("/GetHelp", {contents: htmlStr},
>                                 function()
>                                         {
>                                                 $(this).fadeIn('slow', 
> 'easeInCirc');
>                                                 ScrollToDiv("HelpInfo");
>                                         });
>                 }, 'easeOutCirc');
>         });
>
> });
>
> How can I fix this?
>
> --
> View this message in 
> context:http://www.nabble.com/Fade-Function-Works-in-Firefox-but-Not-in-Safar...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to