Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. $arreglo = array(
  2. 'color' => $skin['Color'],
  3. 'textu' => $skin['ImagenTextura'],
  4. 'header' => $skin['Imagen'],
  5. 'sombra' => $skin['ImagenSombra'],
  6. 'tooltip' => $skin['TooltipColor']
  7. );
  8.  
  9. echo json_encode($arreglo);
  10.  
  11. $.ajax({
  12. url: 'ajax.php',
  13. type:'POST',
  14. dataType : 'json',
  15. data: { 'dataString': result },
  16. beforeSend: function(){
  17. $("#loader").show();
  18. },
  19. success: function(output_string){
  20. alert(output_string['color']);
  21. }
  22. });
  23.  
  24. $.ajax({
  25. url: 'ajax.php',
  26. type: 'POST',
  27. dataType: 'json',
  28. data: {},
  29. beforeSend: function(){
  30. $("#loader").show();
  31. },
  32. success: function(output_string) {
  33. $.each(output_string, function (i, item) {
  34. alert(i + " " +item);
  35. });
  36. }
  37. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement