Quantcast
Channel: VBForums - jQuery
Viewing all articles
Browse latest Browse all 69

[RESOLVED] JSON Not letting me post a URL?

$
0
0
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...

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();
                                    }
                            }
                          });
                       
                });


Viewing all articles
Browse latest Browse all 69

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>