Notices


Reply
Thread Tools
Posts: 6 | Thanked: 1 time | Joined on Jun 2010
#1
Hello ,

I have an application written in completely in Java Script and I want to port it on a Maemo Platform. Its basically an spreadsheet application.

I recently installed Maemo 5 on Ubuntu 10.04.

I am newbie to development on maemo.

Is it possible to port it on Maemo Platform ? How should I start ?

Kindly help .
 
Posts: 131 | Thanked: 62 times | Joined on Feb 2010
#2
javascript will run in the context of the various browsers just fine so unless you are using platform specific calls of some form or other then it ought to run pretty much as is.

Of course as suggested you should not confuse Javascript (aka ecmascript) with Java which is entirely a different animal.

rgds

Last edited by uTMY; 2010-07-13 at 22:26.
 
Posts: 298 | Thanked: 197 times | Joined on Dec 2009 @ Norway
#3
Do you mean Java like in SE or web-Java scripts?
Both are possible, a .js works through MicroB/the webbrowser.
 
Posts: 6 | Thanked: 1 time | Joined on Jun 2010
#4
Originally Posted by uTMY View Post
javascript will run in the context of the various browsers just fine so unless you are using platform specific calls of some form or other then it ought to run pretty much as is.

Of course as suggested you should not confuse Javascript (aka ecmascript) with Java which is entirely a different animal.

rgds
Thanks for the reply.

I already managed to open my application using a browser. I used Qt demo browser for that.

But somehow I want to develop it independent of Browser. How can I do that ?
So that a person, unknown of the fact that it's an Java script application, can open that app by clicking its icon on maemo device.
I want a way out of this . How should I start ? I have the code with me written in Java Script. How can I use this Java script code from now on to build an application ?
Kindly Help .
 
Posts: 122 | Thanked: 73 times | Joined on Jan 2010 @ Turku, Finland
#5
No idea really, but I guess you should develop some kind of interpreter able to read the js and execute it. You would have to do that in another language and it could be rather complex. I'm kinda sure there are open source alternatives (such as Gecko (?) in firefox)
 

The Following User Says Thank You to antoarts For This Useful Post:
Posts: 10 | Thanked: 3 times | Joined on May 2010 @ Helsinki / Finland
#6
Originally Posted by maemo.learner View Post
I already managed to open my application using a browser. I used Qt demo browser for that.

But somehow I want to develop it independent of Browser. How can I do that ?
So that a person, unknown of the fact that it's an Java script application, can open that app by clicking its icon on maemo device.
JavaScript is meant to be run in a browser. If you just want to be able to launch the app from your desktop, the easiest way would be opening the app in a browser, creating a bookmark and placing that bookmark on the desktop.

If that's not enough, there are basically two options:

1. Rewrite the whole application in another programming language
2. Find out if there is a tool around that's able to compile the JavaScript app to native code.

Both options will require work depending on the size of your code. I'd just stick to running it in a browser.
 

The Following User Says Thank You to jmvh For This Useful Post:
Posts: 122 | Thanked: 73 times | Joined on Jan 2010 @ Turku, Finland
#7
Agree with jmvh, I don't think it's worth it
 

The Following User Says Thank You to antoarts For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#8
The ideal solution is Nokia's WebKit based WRT (web runtime), but it has not yet been publicly released for the N900. As an alternative, currently QtWebkit can be used to bootstrap the html/javascript app (either from C++ or from Python).
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
Posts: 131 | Thanked: 62 times | Joined on Feb 2010
#9
for some background info ...

http://en.wikipedia.org/wiki/JavaScript

rgds
 
Posts: 25 | Thanked: 22 times | Joined on Dec 2009
#10
What attila77 has suggested is your best bet, particularly if it's either pure html/javascript/etc. or the back-end is hosted on a public website and your intended users will always have internet access.

If the back-end is not public (or meant to be run on the same computer as the javascript, etc. code), you can get away with just porting it to Python 2.5 and running a simple Python web server (NOTE: for security, make sure it can only be accessed locally and block non-localhost referers!) If that's the way you want to go, look up "simple python web server" in Google. You can also combine that with QtWebkit (not that I have any experience with it).

Last edited by voracity; 2010-07-14 at 13:08.
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:24.