Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/10/2012, 09:51
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 9 meses
Puntos: 1567
Respuesta: Al cambiar el innerText de un control, no se refresca en el navegador...

Tendría que funcionarte, dónde y como estás llamando la función

Ej:
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  7. <script type="text/javascript">
  8. //<![CDATA[
  9.  
  10. $(document).ready(function(){
  11. $('#btnParking').html('Stop');
  12.  
  13. $('#cambiar').click(function() {  
  14.     $('#btnParking').html('otro_valor');
  15. });
  16.  
  17. });
  18. //]]>
  19. </head>
  20. <p>
  21. <button id='btnParking' name='btnParking'>Start</button>
  22. <br /><br />
  23. </p>
  24. <div id="cambiar" style="cursor: pointer">cambiar texto</div>
  25.  
  26. </body>
  27. </html>

al cargar cambia start + stop y con el click en "cambiar texto" pone otra cosa

SAludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.