Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="<?=base_url();?>js/jquery-1.2.6.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- function bajar(){
- $.ajax({
- type: "POST",
- url: "/buscar/busqueda",
- data: "elemento=Maria",
- success: function(datos){
- $("#contenedor").html(datos);
- }
- });
- };
- $(document).ready(function(){$("#boton").bind("click", bajar);});
- </script>
- <title><?=$title;?></title>
- </head>
- <body>
- <!--Comentario en HTML -->
- <h1><?=$cabecera;?></h1>
- <?=form_open('');?>
- <br>
- <input type="text" name="elemento" value="<?php echo set_value('elemento'); ?>" size="50" />
- <input type="button" id="boton" value="Bajar numeros"/>
- <div id="contenedor">
- <?
- if( is_array($users)):
- foreach ($users as $row){
- echo $row['id'];
- }
- else:
- echo "No results";
- endif;
- ?>
- </br></div></BR>
- Esta pagina cargo en {elapsed_time} segundos.
- </body>
- </html>
Add Comment
Please, Sign In to add comment