$.post() in jQuery not working as expected

Posted by Bunny Rabbit on Stack Overflow See other posts from Stack Overflow or by Bunny Rabbit
Published on 2010-03-30T17:48:58Z Indexed on 2010/03/30 17:53 UTC
Read the original article Hit count: 135

Filed under:
|
$('a').click(function(event){
            $('body').html('loading...');
            $.post('www.sitename.com/hello',{site:"http//:www.google.com"},function(data) {
                    alert(data);
             });
             event.preventDefault();


     });

I am using the above script to override the default behaviour of the links .The site reffred here returns the html of the 'site' paraeter.but the page just stops after printing loading...

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ajax