We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Rendering javascript in templates

Development and Programming

fireball70's avatar
fireball70
2 posts
14 years ago
fireball70's avatar fireball70

Hi, I’m still new in EE2 and have one question that have maybe simple answer, but I can’t find in docs.

I have template with javascript (mootools framework used):

[script type="text/javascript"] //Used <> instead of [] in real code
window.addEvent('domready', function(){            
    ........
    ........
    $(sub).set('styles', {display:"none"})
    ........
    ........
});
[/script] //Used <> instead of [] in real code

This script is render in template in this way:

[script type="text/javascript"] //Used <> instead of [] in real code
window.addEvent('domready', function(){            
    ........
    ........
    $(sub).set('styles', )
    ........
    ........
});
[/script] //Used <> instead of [] in real code

{display:"none"} is rendering like expresionengine tag…How to prevent this?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.