ad a javascriptcode to a field end run it.

7 posts by 4 authors in: Forums > CMS Builder
Last Post: June 9, 2012   (RSS)

By Maurice - April 9, 2011

Hi all,

a created e textbox and I want to be able to place a javascript code in it but it dus not run when i publish can it be done ???

code like

<script type="text/javascript" code in here</script>

Greetz M
-------------------------------------------

Dropmonkey.nl

Re: [Maurice] ad a javascriptcode to a field end run it.

By gkornbluth - April 9, 2011

hi Maurice,

What does the javascript code look like in the source code of the resulting web page?

How does that compare with a working version of the javascript on the page?

Did you leave out the a > after the <script type="text/javascript" or was that just in the post?

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [Maurice] ad a javascriptcode to a field end run it.

By Maurice - April 13, 2011

Hi all,

I found the problem cmsb ads the <br> html code inside the textbox.

how can i prevent this

thnx
-------------------------------------------

Dropmonkey.nl

Re: [Maurice] ad a javascriptcode to a field end run it.

By Dave - April 13, 2011

Hi Maurice,

In the field editor under Advanced Options check this:
[X] Disable auto-formatting (don't add break tags to content)

Note that you'll need to go back and update any fields that have already been saved with break tags.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] ad a javascriptcode to a field end run it.

By Maurice - April 13, 2011

thnx Dave.

cool
-------------------------------------------

Dropmonkey.nl

Re: [Dave] ad a javascriptcode to a field end run it.

By Mikey - June 9, 2012

Just what I was looking for! Thanks Dave!