Hello, I have a problem using the function FreiChat.create_chat_window_msg,
Si i have a button and when you clik on it it have to open a private chat window with a user so here is my problem :
When i click i get this error :
ReferenceError: simon is not defined
[Stopper sur une erreur]
FreiChat.create_chat_window_msg(simon,5);
Then i verified if simon was in the table frei_session and if the session id was correct...
So i don't know what to do.
Thanks in advance.
EDIT :
here is my code : <?phpecho '<div id="hello"><input class="btn_chat" type="button" value="Discuter avec '.$prenomAnnonceur.'" href="#" title="Contacter '.$prenomAnnonceur.'" onclick=" var nom=" freichat.create_chat_window_msg>';?>
I get a SyntaxError: syntax error on firefox console and a Uncaught SyntaxError: Unexpected token } on chrome console.
EDIT AGAIN:
OK I just resolved my problem, i was confused between php/js/html, sorry for the post ^^'.
Hello, I have a problem using the function FreiChat.create_chat_window_msg,
Si i have a button and when you clik on it it have to open a private chat window with a user so here is my problem :
When i click i get this error :
ReferenceError: simon is not defined
[Stopper sur une erreur]
FreiChat.create_chat_window_msg(simon,5);
Then i verified if simon was in the table frei_session and if the session id was correct...
So i don't know what to do.
Thanks in advance.
EDIT :
here is my code : &lt;?phpecho '&lt;div id="hello"&gt;&lt;input class="btn_chat" type="button" value="Discuter avec '.$prenomAnnonceur.'" href="#" title="Contacter '.$prenomAnnonceur.'" onClick=" var nom="'.$prenomAnnonceur.'"; FreiChat.create_chat_window_msg(nom,'.$idAnnonceur.');"/&gt;&lt;/div&gt;';?&gt;
I get a SyntaxError: syntax error on firefox console and a Uncaught SyntaxError: Unexpected token } on chrome console.
EDIT AGAIN:
OK I just resolved my problem, i was confused between php/js/html, sorry for the post ^^'.