By mysocom on
Maybe simple question but I can't find answer.
How can I sent params to my javascript function ?
1 problem with quotes
I have :$output .= "<a href='javascript:void(0);' onClick='javascript: google_window_control(" . $parent_node->nid . ", " . $parent_node->title . "); return false;'>google</a>";
in google_window_control second data is a string and must be in '' or "" but if I insert quotes html become broken
<a false;="" return="" );="" гора="" onclick="javascript: google_window_control(85, " href="javascript:void(0);">google</a>
2 problem, I can't create the same link with l() :(
Thanks in advance