![]() |
Re: Palm WebOS on N900
https://developer.palm.com/content/a.../emulator.html
Using Emulator Host Mode Quote:
|
Re: Palm WebOS on N900
Thanks for your help. I'll try the Emulator Host Mode and a WebKit browser tomorrow.
About the findapps undefined: I noticed that there are declared Code:
findapps.* Code:
findApps.Apps I'm no js specialist, but as from my C++ experience this'd be logical. What do you think about it? |
Re: Palm WebOS on N900
Found what was the problem: somehow the depends weren't loaded. Even though I copied depends.js to package.js it just didn't want to load.
loading build.js from app catalog did the trick... but... :) still there are errors. I managed to solve some of them but now there's something I currently cannot solve the index.html file: http://pastebin.com/pCzJTu4p fix.js Code:
enyo.application = "whatever" Code:
[18:44:37.814] Use of attributes' nodeValue attribute is deprecated. Use value instead. @ file:///usr/palm/applications/com.palm.app.enyo-findapps/index.html |
Re: Palm WebOS on N900
Have you seen the news about the Isis QtWebkit browser recently opened?
It might be useful for you in this investigation. |
Re: Palm WebOS on N900
1 Attachment(s)
Finally first success! index.html is working! The problem was that the scripts were not launched in good order. (this came to my mind in the morning)
But, to deaden your enthusiasm :) this ain't everything to be done, unfortunately. The main/main.html is not working. I'm uploading the files and patches to make this work, and a step-by-step instruction for a working index.html 1. Download webos doctor v3.0.5 2. unpack the webos image 3. in usr/palm/ipkgs you'll have Code:
com.palm.app.enyo-findapps_5.0.2900_all.ipk Code:
ar x com.palm.app.enyo-findapps_5.0.2900_all.ipk Code:
usr/palm/applications/com.palm.app.enyo-findapps don't delete the unpacked image yet 4. download enyo 2.0 framework from http://enyojs.com copy it to the app's directory, for example if app is in /home/appcat, copy enyo to /home/appcat/enyo 5. enter the directory with unpacked image. go to Code:
usr/palm/frameworks/enyo/0.10/framework/source enter Code:
usr/palm/frameworks/enyo/0.10/framework/source/dom add "palm" to enyo.depends() in package.js. Follow the syntax!! When I release new version of files, these ones will be attached too. 6. copy fix.js and index.html from attachments to the app's directory. overwrite if needed 7. now you can run index.html in a browser. this will generate a blank popup. Now the popup (main/main.html) is not yet working. Note, you need to disable popup blocking to make it work. Exception doesn't work in firefox but in chromium you can add an exception. ################################################## ####################################### Work in progress documentation below ################################################## ######################################## 8. copy source/g11n from the touchpad enyo, similarly as the source/palm directory 9. edit the main/main.html and add scripts similarly as in index.html. the data to be added: (pasted soon - testing one thing) |
Re: Palm WebOS on N900
1 Attachment(s)
Ok, this is my current progress on this:
I'm in the g11n stuff. it doesn't seem to read is12HourDefault. So I read on some palm.com forums that it needs window.PalmSystem. I copied builtin-preamble.js & dependency-loader.js and load them. unfortunately I'm getting this one: (Chrome/Chromium is needed - Firefox is throwing errors because of local files) Code:
Uncaught SyntaxError: Unexpected token % /usr/palm/applications/com.palm.app.enyo-findapps/enyo/builtin-preamble.js:92 Code:
enyo.setPrototype = function(ctor, proto) { The whole file: http://code.google.com/codesearch#S1...in-preamble.js Does the percent sign mean something in javascript? How can this be fixed? Current main.html attached |
Re: Palm WebOS on N900
AFAIK the percent sign is modulo, just like anywhere else, but I can be mistaken. Anyway, this is good work up to now. Keep it up, it's bound to get you somewhere.
|
Re: Palm WebOS on N900
In other situation it'd modulo, but here it isn't... In cpp it's modulo too
Modulo takes 2 arguments and this takes 1. Maybe it works more or less like star (pointer sign) in c++? (loose idea) What's interesting, I can't find this "function or something" defined anywhere else on the code.google projects' page |
Re: Palm WebOS on N900
Yeah, i'm already saving hordes of spares of thin clients, for acting as (even more) hosts* for that half-baked OS ;)
So it's an intriguing story :D * after my TouchPad |
Re: Palm WebOS on N900
Quote:
didn't understand what you mean... :P |
All times are GMT. The time now is 12:16. |
vBulletin® Version 3.8.8