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.

"d.widget is not a function" jquery UI/core/tabs

May 27, 2011 3:57pm

Subscribe [1]
  • #1 / May 27, 2011 3:57pm

    imaginesurf

    19 posts

    Another day another question.

    This is in the HEAD of the doc (removed domain references):

    ...script type="text/javascript" charset="utf-8" src="/index.php?ACT=jquery"...
      
    ...script type="text/javascript" charset="utf-8" src="/index.php?ACT=jquery&ui=core"...
    
    ...script type="text/javascript" charset="utf-8" src="/index.php?ACT=jquery&ui=tabs"...

    But I’m getting a javascript error: “d.widget is not a function”

    Which means the EE tag to call the core and/or tabs widget is not working:

    {exp:jquery:script_tag ui='core'}
      {exp:jquery:script_tag ui='tabs'}

    I’m calling the jquery function from an external doc:

    $(document).ready(function() {
        $("#tabs").tabs();
      });


    This is really BASIC jquery UI functionality so I’m fairly surprised this isn’t working out of the box. I don’t think any of my syntax is incorrect.

  • #2 / May 29, 2011 9:25am

    Greg Salt

    3988 posts

    Hi imaginesurf,

    I’m able to replicate this issue and so I have created a bug report. Please follow that for updates.

    Cheers

    Greg

  • #3 / May 31, 2011 5:50pm

    imaginesurf

    19 posts

    I learned from someone at the jquery site that the jquery ui widget module also needs to be called.

    So that means just to get something like tabs working, you have to call jquery, jquery core, jquery ui, and jquery widget. Kinda ridiculous. No point.

  • #4 / Jun 01, 2011 2:15pm

    Kevin Smith

    4784 posts

    Because of the rapidly changing nature of jQuery UI (a separate package from jQuery itself), you may find it more advantageous to maintain these assets separately and load them in your site based on the recommendations in the jQuery documentation. Using EE’s jQuery Tags is one of the available options, but we can’t guarantee that it will always be the most up-to-date versions of jQuery core and jQuery UI.

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

ExpressionEngine News!

#eecms, #events, #releases