Adding jQuery UI to a project
| Project: | jQuery UI |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
I would like to improve my module configuration form. It needs input of colors and ints with min and max values. The Form Api is not enough to deal with this. It is awful to have to input colors with three textfields (R, G, B) or int values with a textfield (with validation to alow only correct values).
For colors I just been able to change my horrible three R, G and B textfields with farbtastic color picker included in core and only a textfield attached to it.
For int I would like an input slider. My idea was to try to achive it with jQuery UI Slider. But though jQuery is part of drupal core jQuery UI is not. The licenses look the same, MIT and GPL, the best that suits your project. I saw there is a module to include jQuery UI but it does not include jQuery UI in it, it have to be downloaded and installed in a subfolder.
I woud like my module not depend on any other if posible so I don't like the idea of making it depend on jQuery UI module and besides when it is not as easy to install than others (though simple it would be more disturbing for new drupal users).
So my question is, is there any problem to include the jQuery UI core and components I could need in my project and provide them with my package?, I mean, upload them to CVS. Or the only way to include that project is with instructions to install it in a subfolder.
If you have any other suggestions for an input slider would be welcome too.
Thanks.

#1
Check out the jQuery UI module. It provides an interface to jQuery UI that you can use.
It would be better to tie in with this module so we can avoid duplication on drupal.org.
#2
I am moving the support request to the right issue queue. Drupal.org webmasters queue is not the right one, when asking questions about how to program.
#3
Actually, the question would suit better a forum post.
#4
Yes, it is not a good idea to include jquery UI for every project that requires it. This is /why/ we have a system of dependencies.
#5
Ok.
I posted in drupal webmasters because was a question about license issues not related to any specific project. I just knew the project and mentioned it on my post.
Thanks for answers. Clarified.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.