![]() |
Re: Palm WebOS on N900
Quote:
|
Re: Palm WebOS on N900
Quote:
Somehow the /usr/palm/frameworks/mojo/submissions/383/javascripts directory is missing. Do you know why can it be so? EDIT: seems that it is present in webos 1st gen. Anyway, I'll move to the Touchpad's catalog, as it's enyo-based - and Enyo's gotten open source recently |
Re: Palm WebOS on N900
Quote:
|
Re: Palm WebOS on N900
I tried, but still errors.
Look at this: http://pastebin.com/u01ntjEg it's a log from firefox after running index.html from Touchpad The way I see it, the most important error would be: Code:
[10:30:15.812] enyo.appMenu is undefined @ file:///usr/palm/frameworks/enyo/0.10/framework/build/enyo-build.js:6158 What I did on desktop Linux: Code:
ln -s /opt/webos/usr/palm /usr/palm |
Re: Palm WebOS on N900
I think I'm near to success. After using the new enyo, copying source/palm from the original framework and adding this to depends list I don't get the enyo subcomponents errors.
The only thing that's failing is the app itself Short log: Code:
[17:54:08.447] Use of attributes' nodeValue attribute is deprecated. Use value instead. @ file:///usr/palm/applications/com.palm.app.enyo-findapps/index.html Code:
[17:54:08.398] file:///usr/palm/applications/com.palm.app.enyo-findapps/index.html
package.js Code:
enyo.depends( marmistrz |
Re: Palm WebOS on N900
Instead of Firefox, wouldn't it be better to try it in Webkit?
|
Re: Palm WebOS on N900
Is there a Linux & Maemo browser using webkit that would be good for it, that you would recommend?
EDIT: I found for Maemo webkit-eal. But I don't know whether it's a good choice |
Re: Palm WebOS on N900
Why don't you ask @webos-internals? It will be interesting if they could/would help you. (I have a TouchPad personally, but i do not invest time in bringing that half-baked OS to somewhere else too.)
|
Re: Palm WebOS on N900
I did ask. But seems they don't wanna help :)
|
Re: Palm WebOS on N900
Check this thread, some debs for Helium Mobile are floating around.
|
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 |
Re: Palm WebOS on N900
Nevermind, for me (after living with it since October) webOS is mostly worthless, but good luck :D
|
Re: Palm WebOS on N900
Meanwhile on Hacker News goes on a discussion about what is worth stealing from WebOS... I'm not sure many of the features originate from it - we can easily recognize some of them or better in Fremantle/Harmattan and even further back in Diablo :)
http://news.ycombinator.com/item?id=3617059 |
Re: Palm WebOS on N900
Quote:
|
Re: Palm WebOS on N900
Quote:
|
Re: Palm WebOS on N900
I doubt angry birds is JavaScript. I presume it's native just.like Rio (who plays already on our N900)
|
Re: Palm WebOS on N900
That's not what I'm thinking about.
the App €atalog is enyo based. If I manage to run the app catalog I cen the touchpad apps which are free (such as AB HD) |
Re: Palm WebOS on N900
Games are not Enyo based, they use the PDL libraries (SDL based) and are native binaries.
|
Re: Palm WebOS on N900
Quote:
Some games are nice, but... i just need a DAMN desktop-like browser with proper LastPass etc. integration (aka Opera or whatever), and good DLNA support with multiple container and codec formats supported! EDIT: Quote:
|
Re: Palm WebOS on N900
Quote:
This would make all the apps from WebOS available for Maemo. Quote:
|
Re: Palm WebOS on N900
1 Attachment(s)
Porting the app catalog is a real b*tch :)
I tried porting some apps instead. And you know what? No errors thrown. But it ain't that great :) I tried with the chess.com app, v1.0.1. Link's here: http://talk.maemo.org/showpost.php?p...8&postcount=14 My steps: 1. Download webos Doctor for Pre 1 2. unpack it, symlink to /usr/palm, for example Code:
ln -s /opt/webos/usr/palm /usr/palm 4. run index.html in your favorite browser with web console (chromium or firefox tested) And what's the problem? Nothing's the problem! In the windows nothing is shown. What's strange, there are no errors reported. As I've seen, there are lots of htmls in app/views, but I'm not eager to put them all by hand. If it's the only choice: alright ;) Have you got an idea, why nothing's shown & no errors are thrown?? |
Re: Palm WebOS on N900
I know what's the problem !!!! :)
I've just looked into the files out there, and seems that sources.json isn't read & loaded I'm attaching sources.json soon So..... Now it's time to share your knowledge, WebOS experts!!! :) How does the sources.json work? |
Re: Palm WebOS on N900
Hi marmistrz, your effort and enthusiasm is highly appreciated. Please don't give up, I hope you can reach something semi usable soon.
|
Re: Palm WebOS on N900
Hi, I'd like to have it semi usable but I doubt I'll do it on my own.
If I knew what's about that sources.json, how they are loaded maybe I'd be able to do something I'm just an enthusiast :) I've never used Palm, unfortunately, but hope some experimenting can succeed. But I dont know the mojo mechanism and any help would be appreciated |
Re: Palm WebOS on N900
I'm uploading that sources.json:
Code:
[ Anyone's got an idea how to make it work in mozilla/chromium? EDIT: Current goal: How is it loaded on Palm? If I know that I may try to reproduce it |
Re: Palm WebOS on N900
1 Attachment(s)
I managed to find the cause of problem!!!
I added this at the end of <head>. But as with Palm, a solution causes more problems :) Code:
log.js:259 ERROR: native parser didn't like '{"screenWidth": undefined, "screenHeight": undefined, "minimumCardWidth": undefined, "minimumCardHeight": 188, "maximumCardWidth": undefined, "maximumCardHeight": undefined, "keyboardType": "QWERTY"}' Firefox throws the same errors and doesn't like some css Attaching new index.html. Gzipped. How can I fix these parser errors? |
Re: Palm WebOS on N900
Heeeeey!!!
undefined is forbidden in json! Now, how can I set a value of a json-variable? (please send me a link with a good explanation) because I need to correct the variable Code:
PalmSystem.deviceInfo |
Re: Palm WebOS on N900
4 Attachment(s)
It works!!!!!
I needed to change the /usr/palm/frameworks/mojo/submissions/347/javascripts/framework.js line 109 to the json two posts ago, where undefined was replaced by "" Some stylesheets fail to load, but it's a success anyway I'll create a patch file, if this becomes noticed :) Screenshot attached, further testing will be performed. This works only in Chromium, doesn't in Firefox. Not tested in other browsers |
Re: Palm WebOS on N900
A small step for a man... :D
|
Re: Palm WebOS on N900
Quote:
I performed a bit more testing. Unfortunately, I tried to login, and seems that login/register is not working here. - chromium (iron) to be precise is throwing error: Unsafe heder "X-JSON" I dont know the mechanism of this... I tried googling a bit, but no success. Could anyone help me with this one? Why is this eeror thrown when a network activity is performed? |
Re: Palm WebOS on N900
IT WORKS!
I run chromium-browser --disable-web-security and it works!\ http://desmond.imageshack.us/Himg221...png&res=medium http://img846.imageshack.us/img846/35/86088756.png it doesnt work on firefox yet. Chrome/Chromium/Iron only. |
All times are GMT. The time now is 06:13. |
vBulletin® Version 3.8.8