Hi all,
Is there any chance I can propagate custom events in ScriptUI ? I tried this sample in ESTK and it works fine. However I tried to run it in several CS apps and all my attempts raised errors. My intenttion is to create custom components that would throw events listened by the parent window. Am I asking too much ?
function test(){ var w = new Window('dialog'); var btn = w.add('button'); w.addEventListener ('custom', tata); btn.onClick = function() { w.close() var e = new UIEvent('custom', true, true, w, null); e.data= {test:"hello"}; w.dispatchEvent(e) } function tata(e) { alert(e.data.test); } w.show();}
test();
Thanks for any hint/advice,
Loic