CodeIgniter Forums
SCRIPT tag in CI Template - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: SCRIPT tag in CI Template (/showthread.php?tid=5342)



SCRIPT tag in CI Template - El Forum - 01-18-2008

[eluser]phpzone[/eluser]
I'm having problems with a template parsed using the CI template parser.

All I'm trying to do is enter: <script type="text/javascript"></script> into the template but when I do it doesn't render my template correctly.

If i remove that one line from above the rest of the template everything is fine again.

I checked my javascript for any missing quotes etc.(I know i don't include the js above, but simply just entering the script tags seems to break the template)

Are there any issues with javascript/script tag in CI templates that anyone knows of?

Thanks.


SCRIPT tag in CI Template - El Forum - 01-18-2008

[eluser]phpzone[/eluser]
Not to worry, as per usual shortly after posting I view the actual source output and realised
I'd got another javascript in the header in which I'd closed it using a short tag instead of
</script> and this was the cause of my problem.


SCRIPT tag in CI Template - El Forum - 01-18-2008

[eluser]Jon Braud[/eluser]
I think we're all guilty of doing that at one time or another! =)