开发者

display content of a .js file called asynchronously in AIR

开发者 https://www.devze.com 2023-03-22 14:35 出处:网络
I am new to AIR programming and find there is a lack of useful debug tools. For instance, a JSONP request works fine in HTTP but not in the AIR app generated.

I am new to AIR programming and find there is a lack of useful debug tools. For instance, a JSONP request works fine in HTTP but not in the AIR app generated.

Basically, I am creating a "script" element, giving him an URL as "src" and appending it to "head". But I don't have expected results and w开发者_运维技巧ould like to know what is the content of the "src" returned through this call.

How would you do it ?


User a URLRequest to load the js without executing it - see http://help.adobe.com/en_US/air/reference/html/flash/net/URLRequest.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号