Advertisement
Guest User

Untitled

a guest
Apr 24th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.94 KB | None | 0 0
  1. <?php
  2.  
  3. include("Includes/FusionCharts.php");
  4. ?>
  5.  
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7.  
  8. <head>
  9. <META Http-Equiv="Cache-Control" Content="no-store">
  10. <META Http-Equiv="Pragma" Content="no-cache">
  11. <META Http-Equiv="Expires" Content="-1">
  12. <link rel="shortcut icon" href="../usr/favicon.ico" />
  13.  
  14. <title>INFO_CLIENTES</title>
  15.  
  16. <link rel="stylesheet" type="text/css" href="css/tableStyle.css">
  17.  
  18. <script LANGUAGE="Javascript" SRC="js/FusionCharts.js"></script>
  19. <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
  20.  
  21. <script>
  22. function realizaProceso(valorDocumento){
  23.         var parametros = {
  24.                 "valorDocumento" : valorDocumento
  25.         };
  26.         if ($.browser.msie  && parseInt($.browser.version, 10) === 7) {
  27.  
  28.             } else {
  29.  
  30.             }
  31.        
  32.         $.ajax({
  33.                 data:  parametros + "&r=" + Math.random(),
  34.                 cache: false,
  35.                 url:   'proceso.php',
  36.                 type:  'post',
  37.                 dataType : 'text',
  38.                 beforeSend: function () {
  39.                    
  40.                         $("#resultado").html("Procesando, espere por favor...");
  41.                 },
  42.                 success:  function (response) {
  43.  
  44.                         $("#resultado").html(response);
  45.                 }
  46.         });
  47. }
  48.  
  49. function mostrardiv(divName){
  50.  
  51.         div = document.getElementById(divName);
  52.         div.style.display = '';
  53.  
  54.         }
  55.  
  56. function cerrar(divName) {
  57.  
  58.         div = document.getElementById(divName);
  59.         div.style.display='none';
  60.  
  61.         }
  62.  
  63.  
  64. </script>
  65.  
  66.  
  67.  
  68.     <style type="text/css">
  69.     <!--
  70.     body {
  71.         font-family: Arial, Helvetica, sans-serif;
  72.         font-size: 12px;
  73.     }
  74.     -->
  75.     </style>
  76.  
  77. </head>
  78.  
  79. <body>
  80.  
  81.  
  82. Introduce Documento
  83.  
  84. <input type="text" name="documento" id="documento" value="0"/>
  85.  
  86. Consultar
  87.  
  88. <input type="button" href="javascript:;" onclick="realizaProceso($('#documento').val());return false;" value="Consultar"/>
  89.  
  90. <br/>
  91.  
  92. Resultado: <span id="resultado">0</span>
  93.  
  94.  
  95.  
  96.  
  97.  
  98. </body>
  99.  
  100. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement