In this code...
.resizable({
disabled: disablePoignee,
handles: poignees,
resize: function (e, ui) {
var blabla = "pioup";
},
stop: function(e,ui) {
//try to get blabla
}});
... variable blabla is only available inside the function passed (as resize property of options object) into resizable plugin function. This value is encapsulate - essentially hidden - from the rest of the world.
To 'unhide' it, you have two options. First, make this variable external to scope of both resize and stop functions:
var blabla; // or const, or let
// ...
.resizable({
resize: function (e, ui) {
blabla = "pioup"; // note that `var` shouldn't be used here, as existing variable is reused
},
stop: function(e, ui) {
doSomethingWith(blabla);
}});
That, however, won't work if there's more than one instance of resizable created in your code, and each of those should use its own value of blabla. In this case it might be useful to go with the second option - and assign some custom property to the jQuery object hosting the plugin:
.resizable({
resize: function (e, ui) {
ui.originalElement.data('blabla', 'someValue');
},
stop: function(e, ui) {
doSomethingWith(ui.originalElement.data('blabla'));
}});
Benefit of this approach is that data stays attached to this object even when the plugin is destroyed.