How do you all a URL to pass thru json?
http:// is breaking it... im guessing its the // because if I remove one it works...
http:// is breaking it... im guessing its the // because if I remove one it works...
Code:
$('#save_social').click(function() {
$('.wait').show();
$('.wait').fadeIn(400).html('<img src="images/loading.gif" />');
var user_fb=$('#fb_name').val();
var user_tw=$('#tw_name').val();
var user_id=$('#usrid').val();
$.ajax({
type: "POST",
url: "functions/soc.php",
data: { fb: user_fb, tw: user_tw, uid: user_id },
dataType: "json",
cache: false,
success: function(result){
if(result.stat=='fail'){
$('.wait').addClass("red");
$('.wait').fadeIn(400).html(result.query);
}else{
$('.wait').removeClass("red");
$('.wait').fadeIn(400).html("");
$('#edit_user').hide();
}
}
});
});