www.webOShelp.net

Get the latest on:webOS RSS FeedwebOS Facebook page webOS Twitter Feed

Home Forums

The www.webOShelp.net WebOS / Mojo Developers' Forum

WebOS Mojo Development => Requests => Topic started by: HeenaNisar123 on August 07, 2009, 03:15:21 AM



Title: Where to start to a make simple application like form
Post by: HeenaNisar123 on August 07, 2009, 03:15:21 AM
Hi All,

I made a simple calculator using buttons and textfield.
I want to create a better application using more widgets.

Cant find any proper tutorial or document. Can you guys help with some tuturial.

Attaching a simple calculator which i made.




Title: Re: Where to start to a make simple application like form
Post by: raelos on August 09, 2009, 06:53:37 PM
Good evening! Overall your program looks pretty nice. Not too much that can be done at this point. The only recommendation I have is to change the function for the button 1 handler to

CalcAssistant.prototype.handleNumberOne = function(event) {
   this.text = this.controller.get("txt").mojo.getValue();
   this.controller.get("txt").mojo.setText(this.text+"1");
}

If you leave the function as it is, you will not be able to input any ones if it is not at the very start of the equation.

In regards to help regarding widgets, Other than this site and the main Palm site there are very few good resources out there. Once the books are realized they will really help but it's really too early for any starter-friendly tutorials.


Title: Re: Where to start to a make simple application like form
Post by: HeenaNisar123 on August 09, 2009, 08:22:35 PM
Hey Thanks for your inputs.

I was looking for help into how to use widgets should I use the x-mojo-element or use palm classes. Also how to use style sheets.

TextField widget behaves really weird on a tap anywhere on the scene the focus and the textfield disappears ? How it can be resolved ?

Thanks in advance.