DISQUS

Caffeinated Simpleton: Meetup.com webOS Client Part 1: Services

  • davezor · 5 months ago
    This looks pretty cool. I haven't had a chance to look at the SDK yet, but I'm really thinking that some SigSoft/ACM folks are going to be interested in doing projects in the fall. I can't wait.

    Now all we need is a harmonize client for the pre :-)
  • justin · 5 months ago
    Believe me, as soon as I find some time, I'll be writing one.
  • jobless9 · 5 months ago
    Thanks for the post. I was wondering is there an API to turn wi-fi off from an application in the current release. I didn't find it anywhere in the docs. Is it not supported or is it planned for a future release?
  • justin · 5 months ago
    There probably is not a public API for turning off wifi, but you should ask on the forums.

    What are you trying to do with it?
  • jobless9 · 5 months ago
    I asked in the forums and I was told that it is slated for a future release.

    I am trying to write an application that manages some profiles (settings for Wi-Fi, Bluetooth, 3G, Ring Settings, Airplane Mode) based on location and time variables. The iphone doesn't allow you to do this yet. So was hoping to see it in the Palm SDK at least :)

    Thanks for the quick reply and sorry if you felt I was just trolling your post!
  • incidentist · 5 months ago
    This is really useful. One of the hardest things to get used to about WebOS is the fact that everything is an async operation. Your examples are great because they demonstrate how to deal with this gracefully. I dig those idioms, man.
  • Avner · 4 months ago
    thanks for the example.

    i'm having some problems with it.

    onSuccess: function(list) {
    Mojo.Log.info("Got account list: %j", list);
    if (list.list && list.list.length > 0) {
    self.account = list.list[0];
    k();
    }

    the self.account in the calling scope is not updated, only the self.account of the onSuccess is being updated thus i cannot get back the params.

    any ideas? i've noticed the .bind(this) command but i was unable to utilize it.

    Thanks,

    Avner.
  • justin · 4 months ago
    When you're using cobra (http://bitbucket.org/jmtulloss/cobra/overview/),
    you don't need to bind. Without it, "self" has no meaning and you should
    just use "this" with bind.