Hi,
I want to add a block of JavaScript code using a plugin that I have created. It works fine when I'm using Firefox, but in IE when I click "ok" and the code is inserted it clean my JS code.
How can I disable fck to don't clean it.
Thanks.
I want to add a block of JavaScript code using a plugin that I have created. It works fine when I'm using Firefox, but in IE when I click "ok" and the code is inserted it clean my JS code.
How can I disable fck to don't clean it.
Thanks.

RE: insert JS code
thank you.
Y.Chaouche
RE: insert JS code
http://url_to_a_js_file.js
RE: insert JS code
Thanks again.
RE: insert JS code
1)You appendchild directly on the editordocument. I tried something similar and it works fine on ie and firefox. The code looks like this :
<code>
//create a place where to display information
var box = document.createElement('div');
box.setAttribute('style',"width:100%");
box.setAttribute('id','uppertextbox');
document.getElementsByTagName('body')[0].insertBefore(box,document.getElementsByTagName('table')[0]);
</code>
2)You have some curious code there :
str+="<scr" +"ipt type..."...
Why blow "script" into two parts ?
Y.Chaouche
RE: insert JS code
still not working :\
RE: insert JS code
RE: insert JS code
... ...
var js1 = td.appendChild(oDoc.createElement('SCRIPT'));
js1.setAttribute('type', 'text/javascript');
js1.text = 'function hello(){alert(\'Hello World\')} document.onload=hello;';
...