在 Adobe Air 中使用 Janrain Engage (RPX)弹性?
我有一个使用 Janrain 进行登录的网站,我还有一个需要登录该网站的桌面应用程序 (Adobe Air),但我无法让它工作。
我的想法是使用 mx:HTML 容器并导航到 Janrain 登录系统,以便用户可以登录、在会话中设置令牌并检索该令牌以进行进一步的通信。
<mx:HTML x="369" y="189" location="http://www.mysite.com/auth/clientLogin.php"
verticalScrollPolicy="on" horizontalScrollPolicy="on" width="341" height="162"/>
我可以看到 Janrain 提供商选择器和我的提供商,但是当我单击“Facebook”时,它会给出错误:
TypeError: Result of expression 'aF.window' [undefined] is not an object.
at https://s3.amazonaws.com/static.rpxnow.com/js/lib/rpx.js : 1
关于如何在 Adobe Air + Flex 中使用我的 Janrain Engage 登录系统有什么想法吗?
I have a website using Janrain for the Log-In and I also have a desktop application (Adobe Air) that require login with the website, but I can't get it work.
My idea was to use mx:HTML container and navigate to the Janrain login system so the user can log-in, set a Token in the session and retrieve that token for further communications.
<mx:HTML x="369" y="189" location="http://www.mysite.com/auth/clientLogin.php"
verticalScrollPolicy="on" horizontalScrollPolicy="on" width="341" height="162"/>
I can see the Janrain provider selector with my providers but when I click on "Facebook" for example, it give me errors:
TypeError: Result of expression 'aF.window' [undefined] is not an object.
at https://s3.amazonaws.com/static.rpxnow.com/js/lib/rpx.js : 1
Any Idea on how I can use my Janrain Engage log-in system in Adobe Air + Flex?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想通了!!!
HTML容器使用的默认HTMLHost似乎不支持某些javascript功能。解决方案是实现自定义 HTMLHost,或者最快的方法执行以下操作:
其中 html 是在 ActionScript 中绑定的 mx:HTML 对象。我在搜索了几个小时后找到了解决方案,并找到了此页面: http: //help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e74.html
我正在使用 Adobe Air 2.5,但它似乎是一样的!我希望这对其他人有用。
I figured it out!!!
It seems that the default HTMLHost used by the HTML container do not support some javascript functions. The solution is to implement a custom HTMLHost or, the fastest way do the following:
Where html is my mx:HTML object binded in ActionScript. I found the solution after searching for hours and found this page: http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e74.html
I'm using Adobe Air 2.5 but it seems to be the same! I hope this will be useful for someone else.