Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/08/2010, 07:59
Avatar de intiweb
intiweb
 
Fecha de Ingreso: mayo-2009
Ubicación: Capital Federal
Mensajes: 363
Antigüedad: 14 años, 11 meses
Puntos: 5
Respuesta: formatear en html datos de ajax

miren si pongo esto funciona:

Código:
document.getElementById('foto').innerHTML = 'hola';
pero si pongo esto deja de funcionar:

Código:
document.getElementById('foto').innerHTML = '<table width="380" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="70" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="70" height="70"><img src="fotos\usuarios/'+newuser+'.jpg\" width="70" height="70"></img></td>
        </tr>
    </table></td>
    <td width="310" height="36" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="310" height="36">nombre</td>
      </tr>
    </table>    </td>
  </tr>
  <tr>
    <td height="34" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="310" height="34">comentario</td>
        </tr>
    </table></td>
  </tr>
</table>';
en teoria es lo mismo pero no se donde es que deja de funcionar.
ya intente escapando las comillas con barras invertidas y nada