Because a non-application sandbox is effectively the HTML
browser sandbox, Ajax developers should find porting of existing
applications and patterns to AIR relatively straightforward. For
example, you could take an existing crossword game from the web
and insert it entirely into a non-application sandbox frame.
While Ajax frameworks running in non-application sandboxes should
run just as they do in a web browser, some framework versions may
not completely work in the application sandbox if they rely on
eval()
and
cross-domain code loading. It largely depends on how much a given
framework depends on
eval()
and similar behaviors,
as well as which parts of the framework the developer uses.
These restrictions do not prevent using
eval()
with
JSON object literals. This allows your application content to work
with the JSON JavaScript library. However, application sandbox content
is restricted from using overloaded JSON code (with event handlers).
For other Ajax frameworks and JavaScript code libraries, check to
see if the code in the framework or library works within these restrictions
on dynamically generated code. If they do not, you will need to include
any content that uses the framework or library in a non-application security
sandbox.