SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    Non-Member
    Join Date
    Nov 2010
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    why not worked fadeIn to load?

    Please give me an effect fadeIn to load The work.

    my code: to load not work fadeIn?
    Code JavaScript:
    $('#icon a').click(function(event){
            event.preventDefault();
            var id = '#'+this.id;
            var url = $(id).attr('href');
            $('.table_show, #add_icon, #num_count, #select_box, #input_search').fadeOut('slow', function(){
                $('.results').load(url).fadeIn("slow")
            });
        });

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    The second argument of the load method is where you specify a function that is invoked once the content has been successfully loaded.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •