Hey there,

You're using it partially in the wrong way.

1st:

function showUser(str)
{
 $('#content1').load("select.php?q="+str);
}

No syntax mistake in the code above!

But the bad part is this:

$().ajaxSend(function(r,s){
       $("#content1").load("Loading data, please wait...");
  });

Which will work if you change it into this:

$('#content1').ajaxSend(function(e,r,s)
{
   $(this).html('Loading data, please wait...');
}

This will insert the "Loading data, please wait..." inside the tag
withid='content1' before
an AJAX request is sent.

-- 
Isaak Malik
Web Developer

Reply via email to