Cmsms not saving
Posted: Thu May 12, 2011 9:02 am
I'm trying to use onfocus to remove text in a text field:
<textarea name="Question" onFocus="this.value=''; return false;">blah blah</textarea>
This works as static html but in CMSMS it accepts it on "apply" but once I've submitted and recalled it for further editing it only has this:
<textarea name="Question" > i.e not saving the JS.
In the head I have:
{literal}<__script__ type="text/javascript">
var clickedIt = false;
function cleartextarea(id){
if (clickedIt == false){
id.value="";
clickedIt=true;
}
}
</__script>
{/literal}
Any thoughts?
Similarly it won't save <div class="clear"></div>
I would be very grateful for any insight.
<textarea name="Question" onFocus="this.value=''; return false;">blah blah</textarea>
This works as static html but in CMSMS it accepts it on "apply" but once I've submitted and recalled it for further editing it only has this:
<textarea name="Question" > i.e not saving the JS.
In the head I have:
{literal}<__script__ type="text/javascript">
var clickedIt = false;
function cleartextarea(id){
if (clickedIt == false){
id.value="";
clickedIt=true;
}
}
</__script>
{/literal}
Any thoughts?
Similarly it won't save <div class="clear"></div>
I would be very grateful for any insight.