Index ¦ Archives  ¦ Atom  ¦ RSS > Tag: enyo ¦ RSS

Enyo - Service Components

Thu 20 October 2011

A feature I totally missed before and only saw after reading the db8 tutorial. If you have a service that you call different methods of, you probably do what I used to do:

enyo.kind({
    ...
    components:[
        {name:"downloader",kind:"PalmService",service:"palm://com.palm.downloadmanager/"}
        ...
    ]
    ...
    startDownload:function(){
        this.$.download.call …

Continue reading →


Enyo - JustType-ish Functionality

Thu 20 October 2011

Yet again, here's another bit of Enyo goodness. Inspired by Preware, I really love it when an app accepts keyboard input straight off the bat. I don't have to click anything, I can just start typing and it knows what I want to do. That's what JustType is on the OS level, but apps should have that too. If you're an app catalog like Preware, why is someone typing other than to search globally. If you're an app with any sort of content, they're probably searching.

This is another mixin, which means it requires the latest patch to enyo's mixin functionality. Once you have that, just copy-paste the code below and attach it to your main kind (the one referenced in index.html) by adding in the mixins: attribute and setting justtype: to the name of the search field to use. Once you do that, all keypresses that aren't already focused will go to that justtype: field if it's showing.

Continue reading →


WebOS's Weekly App Hack 10-05-11

Sat 08 October 2011

Welcome from the Palm Developer blog! Looking for binaries?

Having trouble posting your app or an update to your app using the provided sdltts? Either you're missing features or you want/need a callback from the method when it's done, or maybe you want only a few text strings in your app and don't want to keep generating them? If you use the provided sdltts, there isn't much you can do about most of your problems.

So I worked a little on re-creating the binary myself, I like doing these sort of exploratory projects. I'll put the diff and necessary scripts below, but first, here's the status:

On Touchpad:

  • Runs just like the given binary when used in their provided app in place of the sdltts binary.
  • Update 10/12/11: Runs in separate thread, thanks to unwiredben.

On Emulator:

  • WORKS inside the application. (As of 10/9/11 11:48AM)

Continue reading →


Enyo - VirtualLists and Other Transforms in Toasters

Fri 30 September 2011

Recently, Chrome went to 14 and many people got background updates to it. Turns out that in Chrome 13, rendering of -webkit-transforms changed handling of z-index's. Well, that means a Toaster that isn't webkit-transform'd and has a background suddenly pops up on top of anything that is webkit-transformed, such as …

Continue reading →


Enyo - Device-based Assets

Fri 30 September 2011

With multiple screen sizes available for Enyo apps, it's likely that you want a single Enyo app to work on both phones, tablets, and anything else that may come out (HP or otherwise). The code below is a simple way of separating tablets from phones, but can easily be upgraded …

Continue reading →


Enyo - Improved Mixins [Updated]

Thu 29 September 2011

I've sent in a patch for slightly enhanced mixin support for Enyo, but since I have another post depending on that support I'll post the patch here until it gets included.

This patch mainly provides the ability to have mixins that handle events and allows them to join with kinds …

Continue reading →


Enyo - Enterable Inputs

Sun 25 September 2011

I've noticed that there's no "submit" button feature in WebOS Inputs like there are in normal web forms. If you have a input type="submit" in your form, pressing Enter in any form input will automatically press that button because that makes sense.

However, in WebOS there is no such …

Continue reading →


Enyo - Common Panes Toolbar

Sun 25 September 2011

Turns out, most SlidingPanes have a Toolbar with a GrabButton on the bottom so it seems like SlidingPane should have an option to automatically include one such Toolbar. Since it doesn't, I've written a quick kind that creates a toolbar with the little GrabButton for adding to the components of …

Continue reading →


Enyo - Service With Consistent Parameters

Sun 25 September 2011

In WebOS, services live as long as you have an outstanding call with them plus 30 seconds. Once that ends, the service is closed and any data it was storing temporarily is gone. Therefore, since I have an app that needs the username/password of my user for all requests …

Continue reading →


Enyo - Auto-retry service timeouts

Wed 21 September 2011

Recently I've been working with service methods that either work or timeout, and timeout usually means just retry. This is mainly because the ajax call inside of them goes to a hit-or-miss web service. So to deal with that I started having my failure handler function call the method again …

Continue reading →

© Fahrzin Hemmati. Built using Pelican. Theme by Giulio Fidente on github.