rbastien Posted March 19, 2007 Share Posted March 19, 2007 Hey I was wondering how I can fix the coding in this instance. The quotations in 'highlight' and 'normal' will conflict with the PHP quotations. print ' <tr onMouseOver="this.className='highlight' onMouseOut="this.className='normal'"> ' Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/43309-solved-javascript-conflict-with-php/ Share on other sites More sharing options...
najibk Posted March 19, 2007 Share Posted March 19, 2007 Modfiy your code to this: print " <tr onMouseOver=\"this.className='highlight'\" onMouseOut=\"this.className='normal'\"> "; I thinkkk that should work... also you missed a double quotation " to end your onMouseOver, which may have in fact caused the problem. Link to comment https://forums.phpfreaks.com/topic/43309-solved-javascript-conflict-with-php/#findComment-210276 Share on other sites More sharing options...
rbastien Posted March 19, 2007 Author Share Posted March 19, 2007 oh, thanks very much! Link to comment https://forums.phpfreaks.com/topic/43309-solved-javascript-conflict-with-php/#findComment-210277 Share on other sites More sharing options...
Yesideez Posted March 19, 2007 Share Posted March 19, 2007 Might be worth reading this: http://blog.libssh2.org/index.php?/archives/28-How-long-is-a-piece-of-string.html It explains the differences between the quotes. When to use them and when not to use them and also how strings are treated when using them. Here's some more interesting reading: http://spindrop.us/2007/03/03/php-double-versus-single-quotes/ Link to comment https://forums.phpfreaks.com/topic/43309-solved-javascript-conflict-with-php/#findComment-210280 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.