Hello, can someone help me out a bit
I am getting confused with the comma's here
I need to have the right string format in a jquerystring in order to add this to a list like this
userslist.html($users).fadeIn(2000);
and this is what I have sofar, but it has errors
$resultaat +='<li class="geel_klein"><a class="openchat" href="javascript:void(0)" onClick="return chatWith(''+ $bijnaam + ')'">' + $bijnaam + '</a><span class="date"> ' + $detijd + '</span></li>';
before I had this with php, but for some reason the ajaxcall diddn't put the javascriptfunction in the string when I returned this string
$openchat="<a href='javascript:void(0)' onClick='return chatWith(\"" . $livenaam ."\")'>" . $livenaam . "</a>";
thanks, Richard
$
as well for JavaScript variables to avoid confusion. Those are just needed for PHP. – Gumbo 2 days ago