**** BEGIN LOGGING AT Tue Oct 02 02:59:58 2012 Oct 02 15:25:16 "http://urtak.is/Sqb7QW Oct 02 15:25:16 Have you used EnyoJS at all in the last year? Oct 02 15:25:47 a javascript poll by PPK (quirksmode.org) Oct 02 15:27:01 have i used it? Oct 02 15:27:08 hmm, that's a tough question.... Oct 02 15:27:25 i'll have to think about that for a while Oct 02 15:35:04 hi all Oct 02 15:35:27 I'm looking for a way to do a background sync of data when a connection comes available Oct 02 15:35:56 e.g. I want to create some notes, and want to store them locally, and then store them when a connection to the server comes available, any hints ? Oct 02 15:39:13 So this would be an app for WebOS? Oct 02 15:39:59 enyo, needs to be able to run on other platforms as well Oct 02 15:40:11 maybe even plain browser based Oct 02 15:40:21 but first mobile in e.g. phonegap Oct 02 15:41:12 k, well, you probably need some sort of event handler or poller to check for a connection Oct 02 15:41:45 some reading on that would be appreciated Oct 02 15:41:52 After that, you could use enyo.WebService to send it as either a GET or POST request Oct 02 15:42:54 Yea, I'm not sure about how to check for a connection, myself. I'm new to Enyo as well Oct 02 15:43:26 tood bad ;) Oct 02 15:51:05 SimpsonTP: http://developers.whatwg.org/offline.html Oct 02 15:52:08 you should use power timeout Oct 02 15:52:10 window.navigator.onLine should tell you if you have connection, offline and online events can be captured to perform actions Oct 02 15:52:52 use an enyo service w/ a headless app, do a power time out every x hrs, load what you need, check for connection, if no connection exists try again later Oct 02 15:53:37 katratxo, that works in e.g. phonegap as well ? Oct 02 15:54:48 SimpsonTP: i have little experience with phonegap, so i can't tell, i have built offline capable webapp with similar requirements Oct 02 16:01:46 okay I got enough information now ! Oct 02 20:55:03 is it ok to paste code here, or is there a paste bin ? Oct 02 21:00:10 pastebin is better Oct 02 21:06:46 actually I have it down to a one liner Oct 02 21:07:08 cool Oct 02 21:07:08 why can't I do enyo.kind({name: 'foo', kind: enyo.List}) Oct 02 21:07:29 "enyo.kind: Attempt to subclass an undefined kind. Check dependencies for [foo]." Oct 02 21:07:36 wtf ? Oct 02 21:07:54 check dependencies -- that means something in your foo kind does not exist Oct 02 21:07:58 put enyo.List in quites Oct 02 21:08:04 quotes*, or just use 'List' Oct 02 21:08:25 'List' does not work either Oct 02 21:08:46 then you must not be including the list library Oct 02 21:09:18 it's not part of the 'core enyo package' Oct 02 21:09:25 well that might explain it Oct 02 21:09:27 list is part of onyx, you have to include it separately Oct 02 21:09:48 however if I include it as a component of another component it works fine Oct 02 21:10:25 it would Oct 02 21:13:41 dcramer: enyo.kind({name: "foo", kind: "enyo.List"}); Oct 02 21:13:50 you need the quotes around the kind name Oct 02 21:13:59 s/name/type/ Oct 02 21:14:04 summatusmentis: I have tried that, doesn't work Oct 02 21:14:09 ah, ok Oct 02 21:14:26 sorry, I didn't fully read the log Oct 02 21:15:25 in your depends, add "$lib", Oct 02 21:15:59 then if you have the lib folder in that package.js it should include /layout and /onyx Oct 02 21:17:37 fxspec06: ok, thanks Oct 02 21:18:17 fxspec06: is there a way you can get it from the enyojs.com site instead of locally ? Oct 02 21:18:31 that's probably not what you want to do Oct 02 21:18:44 it's included in the enyo source download, i believe Oct 02 21:18:50 it's just not in the 'enyo' folder Oct 02 21:18:54 fxspec06: ok, thx Oct 02 21:19:18 as soon as you include that, list should work fine Oct 02 21:20:05 meanwhile, i'm trying to battle blackberry.. Oct 02 21:20:15 fxspec06: sorry to hear that Oct 02 21:20:43 it's ok, i just need my tin foil hat. i've done this a few times Oct 02 21:25:50 this channel is really active Oct 02 21:25:54 +1 for that **** ENDING LOGGING AT Wed Oct 03 02:59:59 2012