palm pre 中的网络服务

发布于 2024-09-07 04:08:26 字数 60 浏览 2 评论 0原文

如何从 Facebook 检索照片图像。以及如何在palm pre中调用.net webservices?

How to retrieve photo images from facebook. and how to call .net webservices in palm pre?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哭泣的笑容 2024-09-14 04:09:04

要将图像或其他内容加载到设备上,您需要查找 下载管理器

为了调用 Web 服务,您可以使用 XMLHTTPRequest 对象的典型 Javascript AJAX 方法。您当前还可以选择使用 WebOS 当前包含的 Prototype 框架的包装函数。不能保证 Prototype 将始终存在,但是如果需要,您可以将库与您的应用程序一起分发。

对于 Prototype,您使用的是 Ajax 对象。

   var request = new Ajax.Request("http://myweb.com/servicename", {
       method: 'get',
       evalJSON: 'false',
       onSuccess: this.requestSuccess.bind(this),
       onFailure: this.requestFailure.bind(this)
   });

Ajax.Response 将使您能够访问数据。有关详细信息,请参阅原型框架文档。

For getting images or other content onto the device, you are looking for the Download Manager

For calling a web service, you use the typical Javascript AJAX methodology of the XMLHTTPRequest object. You also currently have the option of using the wrapper functions of the Prototype framework currently included with WebOS. There is no promise that Prototype will always be there, however you can distribute the library with your app if needed.

For Prototype, you are using the Ajax object.

   var request = new Ajax.Request("http://myweb.com/servicename", {
       method: 'get',
       evalJSON: 'false',
       onSuccess: this.requestSuccess.bind(this),
       onFailure: this.requestFailure.bind(this)
   });

Ajax.Response will give you access to the data. Look at the Prototype Framework docs for more info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文