[jQuery] Can it be done? (Modifying plugin parameters at runtime)

[jQuery] Can it be done? (Modifying plugin parameters at runtime)


Hi Everyone,
I asked something along these lines a while back but got no responses,
so I'm assuming it's not possible, but if there's anybody out there
who would be kind enough to give me a definitive answer then I'll be
able to stop worrying that i've missed something blindingly
obvious.... which is quite possible!
What I want to know is if it is possible to dynamically read and
change the parameters you set for a plugin like this? If, using an
Interface plugin for example, I instigate the plugin like this:
$('#resizeMe').Resizable(
{
minWidth: 50,
minHeight: 50,
maxWidth: 400,
maxHeight: 400,
// etc. etc.
onResize : function(size, position) {
// DO STUFF HERE
}
}
)
then can I, from within the onResize function, read and change values
such as maxWidth and maxHeight?
Any help much appreciated!
Simon