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.

Javascript causes my page to not display

January 08, 2012 3:49pm

Subscribe [1]
  • #1 / Jan 08, 2012 3:49pm

    fxidesigns

    131 posts

    I am trying to implement a photo gallery using Galleria and Matrix on my site. 

    In the process I am having issues with JQUERY and getting it to run on my page. 

    I updated an existing template and added to links to my JS, but when I put a simple test script in the body, EE no longer renders any of the info in the BODY tags.

    So basically it seems that anytime I add a SCRIPT tag into template EE stop generating my channel tags.

    Please help.

    Code Below

    <head>
    script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js" /script
    script src="galleria/galleria-1.2.6.min.js" /script
    </head>
    
    <body>
    
    {exp:channel:entries channel="Content" limit="1"}
    
    
    <h1>{formatted_title}</h1>
    {body}
    
    
    {/exp:channel:entries}
    
            script
                $("body").text("jQuery works");
           /script
    
    </body>

    FYI I had to remove the <> around the script tags otherwise the forum removes them…..


    Joe

     

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

ExpressionEngine News!

#eecms, #events, #releases