Form onXYZ events being removed in Global Content Blocks?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
asayama
New Member
New Member
Posts: 6
Joined: Fri Dec 26, 2008 6:07 pm

Form onXYZ events being removed in Global Content Blocks?

Post by asayama »

Hey peeps,

I have a global content block setup with a form item:

Code: Select all

<div id="info_item">
            
<input class="textbox" name="email" type="text" value="ENTER EMAIL ADDRESS FOR UPDATES" onFocus="clearText(this)" onBlur="clearText(this)" />
<input class="submit" name="email_submit" type="image" src="images/main/email_submit.gif" />
</div>
However, when I paste that into a global content block, it strips out the onFocus and onBlur events.  I tried changing them to "javascript:clearText(this);" in the HTML edit source area of the content block edit page, but as soon as I hit Update and get back to the WYSIWIG, the edits are gone.  I verify this by entering the events, hitting Update, then hitting the HTML source button and seeing the code is not there anymore. 

The events just clear the textbox value to ''. 

Any idea what's going on with this?  Kind of a pain :)


- Josh
Post Reply

Return to “Developers Discussion”