ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE stripping out JQuery brackets and breaking the code

June 30, 2011 3:59pm

Subscribe [1]
  • #1 / Jun 30, 2011 3:59pm

    Martagnan

    10 posts

    Hello,
    I’ve never experienced this before, very odd.

    This little bit of script is being changed by EE

    jQuery(function($){
                $(".peKenBurns").peKenburnsSlider()
            })

    I know it’s EE changing things because I tried it as a standalone HTML page in the root and it’s fine.  It’s ONLY when it’s ‘served’ within an EE template that it chokes and becomes…

    jQuery(function($))

    It seems it hits the first curly bracket and then everything after is stripped out.

    I tried replacing the { } with [ ] and Firefox is happy but Chrome and Safari don’t like it :(

    Any ideas?

    Thanks

    Martin

  • #2 / Jun 30, 2011 4:12pm

    Martagnan

    10 posts

    Found this post with very similar issue
    http://ellislab.com/forums/viewthread/192809/

    This “fix” also worked for me but can’t be permanent!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases