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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -