Demo entry 2910674

prueba

   

Submitted by anonymous on Nov 01, 2015 at 19:34
Language: HTML. Code size: 1.1 kB.

<html>
   <head>
      <title>The jQuery Example</title>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
		
      <script type="text/javascript" language="javascript">
         $(document).ready(function() {
            $("#firma").click(function(event){
               $.getJSON('conocesFirma.json', function(jd) {
                  $('#stage').html('<p> Name: ' + jd.idempr + '</p>');
                  $('#stage').append('<p>Age : ' + jd.tipoPers+ '</p>');
                  $('#stage').append('<p> Sex: ' + jd.codPers+ '</p>');
                  $('#stage').append('<p> Sex: ' + jd.usuariCheck+ '</p>');
                  $('#stage').append('<p> Sex: ' + jd.idCheck+ '</p>');
                  $('#stage').append('<p> Sex: ' + jd.idFicha+ '</p>');
               });
            });
         });
      </script>
   </head>
	
   <body>
	
      <p>Click on the button to load result.html file:</p>
		
      <div id="stage" style="background-color:#EC0000;">
         STAGE
      </div>
		
      <input type="button" id="firma" value="Load Data" />
		
   </body>
	
</html>

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).