Page 1 of 1

Need urgent help....Help me please

Posted: Tue Sep 26, 2006 5:41 am
by pralay
I am new user of cmsmadesimple.
I am just trying to make a new html page.
I am also trying to add simple javascript alert in the onclick event of a button.
Now I have two question.
(1) Where to add the javascript? I have created a new javascript file. Then after adding the new html page I have added the following line in the 'head tags' under the 'option' tag.

In the test.js I have written a simple function to make an alert.

(2) Now in the editor when ever I add the line 'onclick="javascript:makealert()" ' in the button tag and submit it the editor itself is deleting it.
So when after saving i am again opening the page in the editor and viewing the html view I found that the string I have added is diaappeared.
Naturally when viewing the page in the browser, clicking on the button nothing is happening.

Please help me.
I need urgent help.

Re: Need urgent help....Help me please

Posted: Tue Sep 26, 2006 8:11 am
by cyberman
Welcome on CMS made simple ...
pralay wrote:
You have to mask it like

{literal}{/literal}

Re: Need urgent help....Help me please

Posted: Tue Sep 26, 2006 11:51 am
by pralay
Thanks a lot!!
But please also help me about the second point..that is when I am adding "onclick='makealert()'" on the button tag in the html view in the
editor and save it..it does not get seved. When I again opened that, I saw it disappeared.

Please help me about this.