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.

jQuery error Uncaught ReferenceError: FALSE is not defined

October 16, 2011 4:44pm

Subscribe [2]
  • #1 / Oct 16, 2011 4:44pm

    ryanvosburg

    50 posts

    Built this page locally in HTML and am having problems bringing it into the EE templating system. Everything works perfect in the .html version but when I bring it into EE the image gallery is missing the main img container. I haven’t made any changes to the working code besides change paths for the style sheets, js & images to be relative to EE template. The error thrown is…

    Uncaught ReferenceError: FALSE is not defined

    Reference URL
    Static URL

    Again all I did here was cut and paste the source code from working static to EE template and change the paths to the style sheets, js & images. No other changes.

    Scratching my head on this one…

  • #2 / Oct 17, 2011 10:30am

    ryanvosburg

    50 posts

    Heres to hoping for a reply before EECI!

  • #3 / Oct 17, 2011 10:47am

    Mark Bowen

    12637 posts

    Hi firstarsbrnwhite,

    Sorry you’ve had a little wait here but we do work a queue system so that everyone is seen in order so that no-one is left for too long.

    Regarding the error you are getting there, where are you seeing this?

    I just visited the pages you posted and neither of them show me any errors.

    As you are using what is I am guessing a JavaScript image gallery on the page I am guessing this is in reference to that perhaps?

    It certainly doesn’t sound like an actual problem with ExpressionEngine to me though.

    I can see from looking at the source code for each of those links that there is some code in there which looks like it doesn’t belong. Items such as :

    {{if FALSE > 1}}
     <div class="rg-image-nav">
      <a href="#" class="rg-image-nav-prev">Previous Image</a>
      <a href="#" class="rg-image-nav-next">Next Image</a>
     </div>
    {{/if}}

    There are IF’s and other code in the source which definitely shouldn’t be there. They are present in both the non-working and the working page so I’d say that you will probably need to go back and take another look at everything to ensure nothing has been missed here.

    That, or build up the page piece by piece making sure that everything is working as you go and find out where things go wrong in that way instead.

    Thanks,

    Mark

     

  • #4 / Oct 17, 2011 10:52am

    ryanvosburg

    50 posts

    Mark, thanks for the reply. I have solved this. Looks like the image gallery was programmed to use the same {} tag wrap as EE uses for it’s if statements.

    This was what was stopping the script in the middle of loading. Took these out and all is working now, I will never use the gallery with less than 5 images so the conditionals aren’t needed anyway. Thankyou!

  • #5 / Oct 17, 2011 11:02am

    Mark Bowen

    12637 posts

    Hi firstarsbrnwhite,

    Excellent. Glad you got this sorted.

    If anything else crops up then please don’t hesitate to post again as needed.

    Cheers,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases