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 not working

January 22, 2011 8:02pm

Subscribe [3]
  • #1 / Jan 22, 2011 8:02pm

    Jules van Schaijik

    210 posts

    Hope this is the appropriate place to ask this question:

    I just discovered that I can customize and download a jQuery UI for my own website.  I did so, and found that everything works great on my own computer.  But when I move everything to EE (sample html, css, and js pages), none of of the scripts working at all.

    Any idea what I am doing wrong, or where to look for an answer?

    In case it helps, here is a link to the faulty page, and here is what I take to be the relevant code in my html header:

    <link rel="stylesheet" type="text/css" href="{stylesheet=TheUniversityConcourseCSS/jquery-ui-1.8.9.custom.css}" />    
           [removed][removed]
           [removed][removed]
            [removed]
                $(function(){
    
                    // Accordion
                    $("#accordion").accordion({ header: "h3" });
        
                    // Tabs
                    $('#tabs').tabs();
        
    
                    // Dialog            
                    $('#dialog').dialog({
                        autoOpen: false,
                        width: 600,
                        buttons: {
                            "Ok": function() { 
                                $(this).dialog("close"); 
                            }, 
                            "Cancel": function() { 
                                $(this).dialog("close"); 
                            } 
                        }
                    });
                    
                    // Dialog Link
                    $('#dialog_link').click(function(){
                        $('#dialog').dialog('open');
                        return false;
                    });
    
                    // Datepicker
                    $('#datepicker').datepicker({
                        inline: true
                    });
                    
                    // Slider
                    $('#slider').slider({
                        range: true,
                        values: [17, 67]
                    });
                    
                    // Progressbar
                    $("#progressbar").progressbar({
                        value: 20 
                    });
                    
                    //hover states on the static widgets
                    $('#dialog_link, ul#icons li').hover(
                        function() { $(this).addClass('ui-state-hover'); }, 
                        function() { $(this).removeClass('ui-state-hover'); }
                    );
                    
                });
            [removed]
    
            <style type="text/css">
                /*demo page css*/
                body{ font: 62.5% "Trebuchet MS", sans-serif; margin: 50px;}
                .demoHeaders { margin-top: 2em; }
                #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
                #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
                ul#icons {margin: 0; padding: 0;}
                ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
                ul#icons span.ui-icon {float: left; margin: 0 4px;}
            </style>
  • #2 / Jan 22, 2011 10:26pm

    Kevin Cupp

    791 posts

    It looks like your version of jQuery is broken, perhaps something happened during the upload of the file.  Try embedding this version from Google:

    [removed][removed]

    Google provides this service to always serve up the latest jQuery version, plus it keeps it cached on people’s computers when a lot of sites use this particular embed, making sites load faster.

  • #3 / Jan 23, 2011 8:13am

    Jules van Schaijik

    210 posts

    Thanks Kevin.  I used the google links, and now it all works.

  • #4 / Jan 24, 2011 3:23am

    John Henry Donovan

    12339 posts

    Glad you are up and running again. Also note we have our own jQuery Module. 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