View Full Version : Ext TreePanel in AIR application [Solved]
RobSmith
3 Mar 2008, 5:07 AM
I want to use a TreePanel in my first AIR application and get an error regarding security reasons of using eval() in AIR application sandbox. So I took a look at the sample application written by Jack himself (simple task). When I looked up the code I realized that he rather extended the TreePanel class instead of just instancing.
Does anybody can explain why? Is it because of the security issue of AIR I mentioned before?
Thanks in advance
Rob
RobSmith
3 Mar 2008, 5:29 AM
Addition:
The error occurs when I am hovering the TreePanel. This is, what the log says:
Error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (eval)
at app:/lib/ext2_0_2/ext-all.js : 11
at app:/lib/ext2_0_2/ext-all.js : 11
at app:/lib/ext2_0_2/ext-all.js : 11
at app:/lib/ext2_0_2/ext-all.js : 11
at app:/lib/ext2_0_2/ext-all.js : 11
at app:/lib/ext2_0_2/ext-all.js : 11
at app:/lib/ext2_0_2/ext-all.js : 14
at app:/lib/ext2_0_2/ext-all.js : 13
at app:/lib/ext2_0_2/ext-all.js : 13
at app:/lib/ext2_0_2/ext-all.js : 100
at app:/lib/ext2_0_2/ext-all.js : 13
at app:/lib/ext2_0_2/adapter/ext/ext-base.js : 10
at app:/lib/ext2_0_2/adapter/ext/ext-base.js : 10
RobSmith
3 Mar 2008, 6:42 AM
Seems as I left my brain at home today. I hate mondays. The solution is quite simple, I forgot to implement the Ext/air javascript.
Sorry guys to bothered you.
ahchuan
6 Apr 2008, 7:41 PM
Hi Rob smith, I encountered the same problem, it seems that the eval() is not allowed in AIR. What do you mean by implementing Ext/Air? Did you import other libraries or change certain lines in ext-all.js? Thanks
RobSmith
10 Apr 2008, 7:14 AM
Sorry for the late answer. What I mean was to include the tag
<script type="text/javascript" src="..../ext-air.js"></script>
to your html file. That was what I forgot to do. Hope this helps in your case too.
Greetings
bemzinside
17 Apr 2008, 9:49 PM
hi rob..
i have a problem with tree to..
i want to know how to build the tree synchronously ???,
because as far as i know the tree is build asynchronously..
could you share some code here
thanks before
bemzinside
17 Apr 2008, 9:52 PM
ups..
maybe this thread explain what i mean..
http://extjs.com/forum/archive/index.php/t-4595.html
yeah problem solved to..
thanks so much for all..
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.