Rusi Filipov schrieb:
> Hello Andreas,
> thanks for your tip, it helped me a lot to call methods from the qooxdoo
> app to the IFrame. But I couldn't do the reverse call.
>
> Andreas Ecker schrieb:
>> window.parent.yourFunctionInTheParentDocument();
>>
>> In such a function you could access any global references to qooxdoo
>> objects.
>
> How do I define such a global reference?
I found it - it has to be done in the constructor or in any other qx.
Function.
qx.OO.defineClass("custom.Application", qx.component.AbstractApplication,
function () {
qx.component.AbstractApplication.call(this);
/** A global map */
globMap = {};
});
getVal = function(name) {
return globMap[name];
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel