jQuery UI

jQueryUI - Adding-removing buttons dynamically from a jQueryUI dialog

It was a rather interesting situation. I needed to add/remove buttons dynamically from a jQueryUI dialog that had already been rendered. Based on user interaction, I either needed to add new buttons or remove existing ones.

Drupal - Need to include css files manually when using jquery_ui module

Web 2.0: 

After my last blog post on Drupal, expect some more Drupal related blog posts related to my recent work that I have been doing in Drupal.

You might be knowing that the jquery_ui contributed module is the preferred way to use jQuery UI in Drupal. This module provides the jqeury_ui_add method with which you can include any jQuery UI widget on the page. The module ensures that any widget's dependencies are also loaded automatically and that multiple modules wanting to include the same widget do not conflict by including the widget script files twice.