Hello Isaak,

Thank you for your kind reply.

I tried this code:

function showUser(str)
{
  $('#content1').load("select.php?q="+str);
  $('#content1').ajaxSend(function(e,r,s)
  {
   $(this).html('Loading data, please wait...');
  }
}

but it caused the AJAX request to stop working. When I remove the $
('#content1').ajaxSend(function(e,r,s) function it works again.
Neither way shows the "Loading Data" message.

Again, thank you for your time and help.

On Nov 10, 11:39 am, "Isaak Malik" <[EMAIL PROTECTED]> wrote:
> 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