Help with using Java in CMS

2 posts by 2 authors in: Forums > CMS Builder
Last Post: May 2, 2011   (RSS)

By nmsinc - April 30, 2011

I’m coding a menu page that utilizes a java script, the wysiwyg html editor will not save the complete code line below:[/#000000]

[/#000000]

<script type="text/javascript" src="./menu_m1_scr.js"></script>[/#000000]

Saving the above line of code, CMS removes the "src" code - see as follows:[/#000000]

<script type="text/javascript"></script>[/#000000]

[/#000000]

Any suggestions?[/#000000]

[/#000000]

Thanks[/#000000]

RBH[/#000000]
nmsinc

Re: [nmsinc] Help with using Java in CMS

By Jason - May 2, 2011

Hi,

My default, the wysiwyg editor strips out javascript for security reasons. It's usually considered more secure to put javascript directly on your php page instead of in your wysiwyg editor.

However, if you want to turn off the feature that strips out javascript, see this post:


http://www.interactivetools.com/forum/gforum.cgi?post=77059#77059

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/