Guest User

Untitled

a guest
Jul 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. foto = $.ajax({
  2. type: "POST",
  3. url: foto_page,
  4. dataType: "json",
  5. data: "value="+id+"",
  6. beforeSend: function(xhr) {
  7. xhr.setRequestHeader("Accept", "text/javascript");
  8. xhr.setRequestHeader("X_USERAGENT", key);
  9. },
  10. success: function(data){
  11. var foto2 = data.foto;
  12. alert(data.foto);
  13. return foto2;
  14. }
  15. }).responseText;
Add Comment
Please, Sign In to add comment