简体   繁体   中英

Append a .js file in AIR

I have an application that, in a browser, gets a .js file from the server with some functions declared, appends this file to its head section, and then calls the functions at some points in the app.

I want to reproduce this behaviour in AIR, but the append stuff is not working (it seems like I get the file, but I cant access/append its content). How would you work around that ? (I cannot code the js directly because it s dynamically changing depending on server stuff).

http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0e.html#WS5b3ccc516d4fbf351e63e3d118666ade46-7ef9

turns out it is not possible.

As stated by jimbojw, "sandboxes" turnarounds are possible (cf. link above)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM