header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
gourav
Points:450
Posts:0

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



1
Umesh
Points: 0
Posts:0
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.

2
gourav
Points: 450
Posts:0
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>


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions