PHP Quick Search Using JQuery Ajax

Here you will find a  free php scripts, php resources, php tutorials, web resources , jquery


<?php print "welcome to source world-php script"; ?>

What is AJAX?

Ajax (shorthand for asynchronous JavaScript and XML ) is a group of interrelated web development techniques used on the client-side to create interactive web applications. With Ajax, web applications can retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing page. 

What is JQuery?

JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. 

Download JQuery: http://jquery.com/ 

How to Integrating JQuery into PHP?

You can integrate JQuery simply by adding jquery.js into your PHP script. 

Example: PHP Quick Search Using JQuery Ajax:
Javascript function that is used to Get Quick Search Result.
function quickSearch()
{
    var texvalues = $("#txtValue").val() 
    if(texvalues!="")
    {
        {
            var datastring='searchString='+texvalues; 
            $.ajax({

                
                         type:"POST",
                         url:"ajax.php",
                         datatype:"html",
                         data:datastring,
                         success:function(data){
                             $("#display").html(data);
                             $("#display").show();       
                             return false;  
                         }
                      });

          }
      }
      else
       {
          $("#display").hide(); 
       }
    
    
}



download Full source code

Buy Me a Beer-If you are like this post

 If you does not have paypal account create free account create account

1 comment:

SEO Company Delhi said...

Yes, you right. The information in this blog is really a appreciable. I would really like to say that the knowledge you have about this is quit impressing. But the main thing here is the way to present the information, and you have done it very nicely. Great work and love to visit on your blog again and again. Keep posting nice information.

Post a Comment