.get not working with Webkit browser
Total newbie problem, but 4 hours of googling, messing around and getting vampire eyes hasn't led me to a solution... This works on FF, but not on Chrome/Safari.
-
(function($) {
$.fn.followUser = function(userId) {
$('#' + userId).fadeOut(250,
function(){
$.get("profile.php", { do: "addfriend", id: userId });
jQuery('#' + userId).html('<p>Follower added</p>').fadeIn(250);
});
}
})(jQuery);
-
<div id="2">
<a onclick="$().followUser('2')">test1</a>
</div>
All work perfect, if I remove the line $.get("profile.php.....
All suggestions welcome.