Ok, so... I installed this, and attempted to make an accordion, and nothing has happened... I added the js domready code
drupal_add_js('
$(document).ready(function(){
$("#example").accordion();
});
', 'inline');and it shows up in the source, but nothing happens. How exactly should I be getting it to work?? Do I have to specifically add in a js file or something?
Comments
Comment #1
Renee S commentedAh, nevermind. Need to jquery_ui_add. Hey, reading the README is a great idea!
Comment #2
alippai commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
Flying Drupalist commentedHi, where did you put the jquery_ui_add? Is it possible to put it in template.php?
Thanks.
Comment #5
Renee S commentedYeah, sure! But unless you're sticking them on most pages, or you have users who are going to be adding their own accordions, it's probably better to add it yourself when needed.
Comment #6
bensnyder commentedHey guys, this may be a little irrelevant but...
After rolling a custom theme (http://ui.jquery.com/themeroller), how I get that theme to apply to a widget... such as an accordion?? Do we drop the theme in the /sites/all/modules/jquery_ui/jquery.ui/themes directory and use an API function to apply it?? OR should I just add the JQuery UI theme to my custom theme's directory, update the [custom-theme].info file with something like stylesheets[all][] = jquery-ui-theme.css, and call it a day?
But then, wouldn't I have to worry about overriding the default theme? ....And I'm a sucker for code standards so.... If there is a right way then its the only way in my eyes. Less jimmy-rigging is ideal ;P
Any help in this matter would be greatly appreciated :))
Comment #7
Renee S commentedOk, this may be unrelated, but I'm having an accordion problem :) I have an accordion in a nodeasblock. The accordion works in the node view, but NOT in the block view - in fact, if I put the source code in the node, it worked intermittently; I then moved the code into the template, and now it only works in the node view. I've tried everything. Help? :)
With the code in the node view:
Node view: http://careers.queensu.ca/content/work-study-dates
Block view: http://careers.queensu.ca/students/jobs-internships/part-time-jobs/work-...
It's so weird.
Comment #8
sunYou need to use the proper version of jQuery UI.
Marking as duplicate of #362509: New jQuery UI release system. Please search for existing issues before submitting a new one. You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.
However, thanks for taking the time to report this issue.