View Single Post
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#95
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
Unpack it using
Code:
ar x com.palm.app.enyo-findapps_5.0.2900_all.ipk
tar xzvf data.tar.gz
in subdir
Code:
usr/palm/applications/com.palm.app.enyo-findapps
there's the app. copy it anywhere you want it, make sure that in directory are only these files (it'll make your life easier)
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
copy the whole directory `palm` to the new framework's source directory (for instance /home/appcat/enyo/source)
enter
Code:
usr/palm/frameworks/enyo/0.10/framework/source/dom
copy all the files that are not in the new framework yet.
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)
Attached Files
File Type: gz appcat.tar.gz (480 Bytes, 81 views)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2012-02-18 at 15:41. Reason: wip doc update 1
 

The Following 3 Users Say Thank You to marmistrz For This Useful Post: