I regretted this almost as soon as I posted it.
For anyone else you happens upon this and really doesn't know, you can
access the plugin attributes as direct attributes of the selection
set.

For example...
alert(document.getElementById('widget').resizeOptions.minWidth);
... should result in '350'.

J

On Jun 22, 8:17 am, Jeremy Stanton <[EMAIL PROTECTED]> wrote:
> I feel like this should be an easy question to answer so my A.D.D. is
> making it hard to trace back through the jQuery source for the
> answer.  I need to be able to access (and edit) plugin settings for
> interface elements after the plugin has been instantiated.
>
> Here is my specific example...
>
> Say I have the following code:
> jQuery('#widget').Resizable(
>         {
>                 minWidth: 350,
>                 minHeight: 500,
>                 minTop: 0,
>                 minLeft: 0,
>                 maxRight: jQuery('body').width(),
>                 maxBottom: jQuery('body').height(),
>                 dragHandle: '#handle',
>                 handlers: {
>                         se: '#btmright',
>                 }
>         }
> );
>
> I want to be able to tie the maxRight and maxBottom values to the
> window resize event:
> jQuery(window).resize( function() {
> // touch the resizable settings
>
> } );
>
> This feels like such a dumb question... How do I get at those values?
> In other cases I've simply destroyed the plugin and reinstantiated it,
> but that won't work properly here.

Reply via email to