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.

Local Minified jQuery and EE is choking. Any Info on that?

July 23, 2011 10:29am

Subscribe [2]
  • #1 / Jul 23, 2011 10:29am

    PixelGrinch

    48 posts

    dealing with https and http and wanting to avoid code clutter by doing https/http evaluation I decided to add the jquery framework to my local installation (template system)

    Version of Expression Engine: 1.7.0

    Integrating the minified version of the latest jquery 1.6.2:

    <script type="text/javascript" src="{path="scripts/google_jquery_1_6_2_min"}"></script>

    using firebug shows that the local jquery is loading alright.
    if I check for jquery being installed : $() I get a NULL object ...
    additionally firebug gives me an error in the console:

    Syntax Error:
    [Break On This Error] les”]=u;o=l=g=h=m=j=a=i=null;return k}...asData:function(a){a=a.nodeType?f.cach (google_jquery_1_6_2_min on line 16)

    It didn't matter if I use a simple copy/paste of the jquery code to the template or actually using the original downloaded jquery file from the cdn.


    The fun thing is the local UNCOMPRESSED (non minified) jQuery Version works!!!

    Is there any funkyness going on in regards of parsing, it seems EE does something in the background. If I call the minified version through the google live link it works without issues:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>

    thanks !

  • #2 / Jul 25, 2011 2:50am

    John Henry Donovan

    12339 posts

    PixelGrinch,

    To confirm,. You are saying the following does not work for you either?

    < script type="text/javascript" src="/js/jquery.min.js">< /script>

    Do you have a physical folder called scripts in your root?

    In your Output and Debugging settings can you confirm that you have the debug preference set to 1

  • #3 / Sep 24, 2011 5:52pm

    PixelGrinch

    48 posts

    Hi John,

    thanks for the reply, I just found out by accident somebody has responded to this thread. Sorry about the delay ...

    Outside the template system the jquery always works! The the way you call it works. But saving the jquery as a javascript template file does not work ...
    This really makes no sense ... I also tried this on ExpressionEngine 2 as well. Outside the template system it works fine once you save it as a template and try to call it, it is screwed up.

    PixelGrinch,

    To confirm,. You are saying the following does not work for you either?

    < script type="text/javascript" src="/js/jquery.min.js">< /script>

    Do you have a physical folder called scripts in your root?

    In your Output and Debugging settings can you confirm that you have the debug preference set to 1

  • #4 / Sep 27, 2011 1:59am

    John Henry Donovan

    12339 posts

    Hi PixelGrinch,

    A similar thread came up for EE2.x recently. It looks like it may be running into this issue

    Our advice would be to go the way of a static file or CDN for now while the devs work on a fix for the EE.2x release.

  • #5 / Sep 28, 2011 8:32pm

    PixelGrinch

    48 posts

    Hey John,

    thanks for the quick reply ... I ended up referring to a static file on the server ... the company doesn’t want to pull it from a cdn ...

    looking forward to the fix 😊 ...

    thanks !

  • #6 / Sep 29, 2011 4:29am

    John Henry Donovan

    12339 posts

    No problems. I’m going to close this one out for now but feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases