Ver Mensaje Individual
  #15 (permalink)  
Antiguo 25/12/2011, 20:48
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 14 años, 2 meses
Puntos: 177
Respuesta: ingresar datos en la URL

y que tal algo así?
Disculpa si no entendí bien...

Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.   <title>PushState</title>
  5.     <script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script><!-- Actualizar -->
  6.     <script>
  7.     $(document).ready(function() {
  8.      
  9.                  $(".btn").click(function(){
  10.                     var ruta = "#"+$(this).attr("value");
  11.                     alert(ruta);
  12.                     window.location=ruta;
  13.                    
  14.                  })
  15.     });
  16.     </script>  
  17.   </head>
  18.   <body>
  19.     <button type="button" id="btn" class="btn" value="page-help.html">Boton</button>
  20.         <button type="button" id="btn2" class="btn" value="other.html">Boton2</button>
  21.    
  22.   </body>
  23. </html>
__________________
la la la