Passing var to javascript
Posted: Tue Apr 08, 2008 3:46 pm
I am trying to use a javascript tooltip program (wz_tooltip.js) to show data held in a php var $summary. The javascript is called on the onmouseover event in the line of code below:
The tooltip show with the word $summary in it not it. I need to convert the php var to a js var which the program supposedly will read & display.
Any help would be greatly appreciated. Thanking you in advance for your assistance...
Code: Select all
echo '<td class="title"><a href=' . $url . ' onmouseover="return escape( ' . $summary . ')">'.$title.'</td>';Any help would be greatly appreciated. Thanking you in advance for your assistance...