Comunidad de diseño web y desarrollo en internet online

Chat

Citar            
MensajeEscrito el 25 May 2009 04:52 pm
Hola he estado revisando esto

http://www.anieto2k.com/2009/05/15/crea-un-chat-como-el-de-gmailfacebook-con-jquery/ shakka


pero al querer implementarlo ya con mis usuarios no se como pasarles la variable del usuario

<a href="javascript:void(0)" onclick="javascript:chatWith('babydoe')">Chat With Baby Doe</a>

como cambio babydoe por una variable q tengo en php????

$variable = "pruebavariable";
<a href="javascript:void(0)" onclick="javascript:chatWith(<?= $variable; ?>)">Chat Prueba</a>

Me marca error al realizarlo de esta manera, Gracias por su ayuda

Por gabyedu

8 de clabLevel



 

msie8
Citar            
MensajeEscrito el 25 May 2009 05:01 pm
Hola disculpen ya encontre mi problema

$variable = "pruebavariable";
<a href="javascript:void(0)" onclick="javascript:chatWith('<?= $variable; ?>')">Chat Prueba</a>

Me faltaban las comillas Gracias de todas maneras

Por gabyedu

8 de clabLevel



 

msie8

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.