Jump to content

adding text with own JS


Recommended Posts

Hi, I have some content pages which includes to get work. This pages are for example a BMI calculator, so i need the html code an the specific JS to work in one site together. I tried to include this sites backend via cms, but the included JS does not work because it is not possible to type it into editor.

How can I include simple html-pages with their own JS ?

Link to comment
Share on other sites

I tried to include in CMS, but the CMS changes the code and so it does not wor anymore:

This is my code:

[removed]
<!--
function Berechnung(){
function SucheErsetze(Text,Suche,Ersetze)
{
var Neutext = "";
var i = 0;
while(i < Text.length)
{
if(Text.substring(i,i + Suche.length) == Suche)
{
Neutext = Neutext + Ersetze;
i = i + Suche.length - 1;
}
else

This is what the html-editor wirtes (he changes de script into [CDATA[

 


[removed]// <![CDATA[
function Berechnung(){
function SucheErsetze(Text,Suche,Ersetze)
{
var Neutext = "";
var i = 0;
while(i < Text.length)
{
if(Text.substring(i,i + Suche.length) == Suche)
{
Neutext = Neutext + Ersetze;
i = i + Suche.length - 1;
}
else
// ]]>[removed]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...