This is a bug. Please file a ticket here: http://dev.jqueryui.com/newticket (note: requires registration)
Thanks. - Richard On Thu, Mar 5, 2009 at 5:28 PM, maki <[email protected]> wrote: > > I'm also experiencing problems using the option method on any of the > UI widgets (v 1.6rc6). > > Setting an option after initialization using for example > > $(#datepicker).datepicker('option', 'dateFormat' , 'mm/dd/yy'); > > works fine, but trying to retrieve a value using > > alert($(#datepicker).datepicker('option', 'dateFormat')); > > returns [object Object] as described by pokey. > > Any idea? > > Martin > > > On 21 Feb., 03:28, "Richard D. Worth" <[email protected]> wrote: > > The option method didn't exist in 1.5.3. You'll need to use the following > > API to get/set options after init: > > > > //getter > > var width = $("#nested").data("width.dialog"); > > > > //setter > > $("#nested").data("width.dialog", 600); > > > > - Richard > > > > > > > > On Fri, Feb 20, 2009 at 2:23 PM, pokey <[email protected]> wrote: > > > > > I've been working with the Dialog UI (v 1.5.3 - I have to run the most > > > stable) and can not set or get the options once the Dialog has been > > > initialized. It doesn't throw an error; however, none of the options > > > take effect. > > > > > Initialization line: > > > $("#nested").dialog({autoOpen: false, modal: true, overlay: > > > {backgroundColor: '#000', opacity: 0.5}}); > > > > > Setting an option after initialization: > > > $('#nested').dialog("option","width", 600); > > > > > The first line works perfectly and later on when the second line is > > > executed to change the width nothing happens. I have also tried to get > > > the value of an option and instead of returning the value I just get > > > an object. > > > > > Initialization line: > > > $('#nested').dialog({width: 600}); > > > > > Trying to retrieve value: > > > alert($('#nested').dialog('option','width')); > > > > > The retrieve line doesn't return a value, instead returns [object > > > Object]. Any help would be appreciated. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
