Kay1021 Posted June 25, 2009 Share Posted June 25, 2009 I'm wondering if someone might be able to help me out...i was trying to use squeezebox http://digitarald.de/project/squeezebox/1-1/showcase/iframed/and it works for some of the other types of elements but when i went to use the code for the iFrame content....if I copy it exactly i get an error: Parse error: parse error, expecting `','' or `';'' in D:\Wamp\www\conseil\view_category.php on line 141 Usually i'd know how to fix that but with this bit of code i'm not sure how... echo'<a href="http://mootools.net" class="boxed" rel="{handler:'iframe',size:{x:840,y:550}}"> MooTools.net in a box! </a>'; any suggestions on how i might fix this? Thanks Link to comment https://forums.phpfreaks.com/topic/163674-solved-javscript-error-in-my-php/ Share on other sites More sharing options...
WolfRage Posted June 25, 2009 Share Posted June 25, 2009 Is this line 141 and can you post a few more lines above and below it? Link to comment https://forums.phpfreaks.com/topic/163674-solved-javscript-error-in-my-php/#findComment-863592 Share on other sites More sharing options...
phant0m Posted June 25, 2009 Share Posted June 25, 2009 Try this: echo'<a href="http://mootools.net" class="boxed" rel="{handler:\'iframe\',size:{x:840,y:550}}"> MooTools.net in a box! </a>'; If you enclose your string in single quotes, you need to escape all single quotes inside your string with \ Link to comment https://forums.phpfreaks.com/topic/163674-solved-javscript-error-in-my-php/#findComment-863597 Share on other sites More sharing options...
Kay1021 Posted June 25, 2009 Author Share Posted June 25, 2009 thanks phant0m...that fixed it....i knew it was something simple but i couldn't fix it. Thanks again! Link to comment https://forums.phpfreaks.com/topic/163674-solved-javscript-error-in-my-php/#findComment-863658 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.