javascript - Adobe Air - window.nativeWindow undefined -


i have adobe air application opening window menu tray. html content have javascript code doing alert(window.nativewindow) on load.

  • it works fine embeded html static file
  • it not works jsp called file

i have correctly included airaliases.js. there restriction nativewindow ?

my goal to:

  • open jsp file form
  • submitting form itself
  • if ok, hiding nativewindow

but seems nativewindow undefined. , window.close() did nothing

well in fact sandbox security restrcition.

  • an html code other domain can't execute air script (eg closing window)
  • all turn around disable (eval(), onclick=, ...)

the way to:

  • put iframe bridge parameters
  • put xml file granting more security right adobe application

there full explanation in security chapter of adobeair api


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -