Need urgent help....Help me please

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
pralay

Need urgent help....Help me please

Post 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.
cyberman

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

Post by cyberman »

Welcome on CMS made simple ...
pralay wrote:
You have to mask it like

{literal}{/literal}
pralay

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

Post 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.
Locked

Return to “CMSMS Core”