webos com.palm.pdf 服务问题
我正在尝试重现标准 PDF 查看器。 我已经复制了源代码,但将它们部署到模拟器后,日志中出现以下错误 当用户点击其中的“下一页”/“上一页”页面时: 错误:服务请求:palm://com.palm.pdf 未运行
这是在以下代码中发生的:
executeJump: function ( numPages ) {
Mojo.Log.info("JUMPING TO THE PAGE: " + numPages);
//this.controller.serviceRequest('palm://com.palm.pdf/events', {
this.controller.serviceRequest('palm://com.palm.pdf/events', {
method: 'jumpToPage',
parameters: {
docid: this.document_id,
numPages: numPages
},
onSuccess: function(payload) {
if ((payload.errorCode !== undefined) || (payload.curPage === undefined)) {
Mojo.Log.error("executeJump failed: " + Object.toJSON( payload ) );
return;
}
this.currentpage = payload.curPage;
}.bind(this)
});
},
我已经通过 google 搜索了所有服务,但找不到该服务的任何文档(com.palm.pdf ) 为什么它不在我的应用程序中启动,而是在标准应用程序中启动? 标准应用程序称为 com.palm.pdfviewer。
非常感谢任何帮助。
I'm trying to reproduce standard PDF viewer. I've copied sources but after they are deployed to the emulator the following error appears in log
when user hits 'next'/'prev' page in it:
Error: service request: palm://com.palm.pdf is not running
This is happened in the following code:
executeJump: function ( numPages ) {
Mojo.Log.info("JUMPING TO THE PAGE: " + numPages);
//this.controller.serviceRequest('palm://com.palm.pdf/events', {
this.controller.serviceRequest('palm://com.palm.pdf/events', {
method: 'jumpToPage',
parameters: {
docid: this.document_id,
numPages: numPages
},
onSuccess: function(payload) {
if ((payload.errorCode !== undefined) || (payload.curPage === undefined)) {
Mojo.Log.error("executeJump failed: " + Object.toJSON( payload ) );
return;
}
this.currentpage = payload.curPage;
}.bind(this)
});
},
I've googled though the all services but I can't find any documentation of this one (com.palm.pdf)
Why it is not started in my app but starts in the standard one? The standard app is called com.palm.pdfviewer.
Any help is very appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个可能的解决方案: http://blog .shevchuk.org/2009/08/18/webos-palm-pdf-service-error/
Here is a possible solution: http://blog.shevchuk.org/2009/08/18/webos-palm-pdf-service-error/