Gearbest Banner

Author Topic: ajax/json question  (Read 788 times)

Offline StaticFX

  • Full Member
  • ***
  • Posts: 120
  • Karma: 1
    • View Profile
ajax/json question
« on: December 03, 2014, 09:45:05 PM »
on gurus...

If I try to pass a URL through JSON to a php file, it gets stuck. I think because of the // (http://)
how do I get around this?

thanks!

code snippet
Code: [Select]
var user_fb=$('#fb_name').val();
                  var user_tw=$('#tw_name').val();
                  var user_id=$('#usrid').val();
                  $.ajax({
                            type: "POST",
                            url: "functions/editsoc.php",
                            data: { fb: user_fb, tw: user_tw, uid: user_id },
                            dataType: "json",
                            cache: false,
                            success: function(result){

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal