Quote:
Originally Posted by linek98
Does $words_unedited contains correct string to put into ' '?
In google chrome open tools -> developer tools. New windows will appear, go to resources and find file that contains this JS code. It should say if there was an error. If there was no error then click that button of yours so it executes your JS function and then see if an error occurs.
An easier way to check if this is a syntax error is to change
PHP Code:
$words_unedited = $info['cz'];
to
PHP Code:
$words_unedited = "If you can see this then there is a syntax error.";
|
I can see the text:
Quote:
|
"If you can see this then there is a syntax error.";
|
I check that before, the problem I have is that the variable $words_unedited is an array (I think) and javascript is not able to print it as a string (at least I don`t know how to do it).