Jquery Ajax Authentication Allow Code

by Francis 2014-12-10 19:32:33

Jquery Ajax Authentication Allow Code
 
                                                                var ajurl = "https://example.com/filename.php"; 
                                                                var datas = "name="+name;
                                                                                                                                
                                                                $.ajax({
                                                                    type: "post",
                                                                    url: ajurl,
                                                                    dataType: "jsonp",
                                                                    username : "userNames",
                                                                    password : "encript-pwd", //myPassword crypted with <?php echo crypt('myPassword'); ?>
                                                                    data: datas,
                                                                    success: function(data, textStatus, xhr) {
                                                                        alert("ok");
                                                                    }});




 
314
like
0
dislike
0
mail
flag

You must LOGIN to add comments