We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20911
    • 84 Posts
    Hey, im just wondering if its possible to get the results in a slide down just like the 1.8.x ?

    Thanks.
      Mysql 5.1.52
      Apache 2.2.17
      PHP 5.2.12
      Linux
      • 5811
      • 1,717 Posts

      Hey, im just wondering if its possible to get the results in a slide down just like the 1.8.x ?
      Yes. The 1.9.x offers the basic effect, but you could modified it by added some fadeIn/fadeOut or slideIn/slideOut effects, you want.
      For instance for jquery version (unpack the code by using http://jsbeautifier.org/ ), the code looks like this:
              $.post('index-ajax.php', pars, function (text) {
      ...
                  as['sr'].hide();
                  as['sr'].html(out.res).show().css('opacity', as['opc']);
      ...
              });
          }
      
          function closeSearch(as) {
              as['sr'].hide();
      ...
          }


      To get a funny effect you could use:
        $.post("index-ajax.php", pars, function(data) { 
      ...
              as['sr'].hide('slow').slideUp().fadeOut();               // Hide the searchResults box
              as['sr'].html(data);                                     // Fill the searchResults box
              as['sr'].show('slow').slideDown().fadeIn();              // Show the searchResults box
      ...
              });
          }
      
      function closeSearch(as) {
        as['sr'].hide('slow').slideUp().fadeOut();                 // Hide the searchResults box
      ...
      }