Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/07/2009, 15:38
Avatar de jamesjara
jamesjara
 
Fecha de Ingreso: mayo-2008
Ubicación: san jose
Mensajes: 449
Antigüedad: 16 años
Puntos: 7
Pregunta Javascript errores php

Hola amigos cree
un javascript dinamico apli.js.php
entonces dentro de el meto un include con un php ese php dice "echo algo"

okey yo uso una libreria que obvio no voy a postear aqui.

Yo ya se cual es el problema!?
ocupo ayuda para arreglarlo.

Loque pasa esque al hacer un echo se crea como linea a linea,
EJEMPLO DEL ERROR
Código PHP:
html"<table border="1" width="100"><tbody><tr><td>2aAgent/840Agent/840<img src="Images/offline" height="44" width="42">NULL</td></tr></tbody></table><table border="1" width="100"><tbody><tr><td>
2bAgent/841Agent/841<img src="
Images/offline" height="44" width="42">NULL</td></tr></tbody></table><table border="1" width="100"><tbody><tr><td>
2cAgent/842Agent/842<img src="
Images/offline" height="44" width="42">NULL</td></tr></tbody></table><table border="1" width="100"><tbody><tr><td>
2dAgent/843Agent/843<img src="
Images/online" height="44
width="
42">NULL</td></tr></tbody></table>" 
despues de los "<tbody><tr><td>" deja un "espacio" que da error
como hago para quitarlos, obvio no es quitar cada espacio en blanco jeje

mi php echo
Código PHP:
//No es asi es un ejemplo faltan muchos for
$angente_ico .= "<table width=100 border=1><tr><td>";
$angente_ico .= "<img src=Images/$valor width=42 height=44 />";
$angente_ico .= <tbody><tr><td>
echo 
$angente_ico
nota: " esas comillas las puso el mozilla "
__________________
X7CLOUD El webservice latino!
Compatible
con mysql,sql,sqlitte.
Compatible con extjs , sencha , smargwt, Gwt , Jquery , Charts, Streaming.