Gearbest Banner

Author Topic: ajax/json question  (Read 1042 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?


code snippet
Code: [Select]
var user_fb=$('#fb_name').val();
                  var user_tw=$('#tw_name').val();
                  var user_id=$('#usrid').val();
                            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