7/6/2010 6:38:10 AM
Title:
i want to access remote script in my air app
hii all
i m working in air app and accessing html page i want to access remote java script.
how can i ? plz help
is their any concept of application sendbox ,remote ,local or some thing else plz reple me if u know
thanks
7/6/2010 10:33:08 PM
if u are trying to access the javascript of the html page loaded into html component then it wont be accessible due security reason. If allowed you can access the javascript of any webpage from any domain loaded and make it behave as you want.
7/6/2010 11:21:58 PM
thanks but i want to access it how can i access in air do u have any idea?
my html page is and remote script this is working at server but i want to run this in air app without use of server so i have to access remote script:
<html>
<HEAD>
<TITLE>my test</TITLE>
</HEAD>
<style>
#videoBox { width: 720px }
</style>
<script type="text/javascript" src="AIRAliases.js"></script>
<script>
var tinychat = { room: 'gourav' };
function appLoad(){
air.trace("Hello gourav ");
}
</script>
<iframe
src="http://tinychat.com/js/embed.js"
sandboxRoot="http://www.example.com/local/"
documentRoot="app:/sandbox/">
</iframe>
<BODY BGCOLOR="WHITE">
<CENTER>
<h3 FONTCOLOR="GREEN" >Gourav Chat Room</h3>
<div id='videoBox' CLASS="centeralign">
<div id='client'></div>
</div> <center>
</CENTER>
</body>
</html>