**** BEGIN LOGGING AT Sun Jun 20 02:59:56 2010 Jun 20 03:00:48 who? Jun 20 03:00:57 BigBiff what's wrong? Jun 20 03:01:17 o, hehe Jun 20 03:01:24 phil mickelson Jun 20 03:01:33 watchin us open Jun 20 03:01:41 :-p Jun 20 03:01:42 yup got it on too Jun 20 03:04:14 I wish I couldve know about prototypes 'each' and 'collect' and 'findAll' about a month ago Jun 20 03:04:32 ? what website were you talking about? Jun 20 03:04:43 * BigBiff is behind the times Jun 20 03:05:00 hehe, it's from 2005 Jun 20 03:05:08 grins... Jun 20 03:05:26 have you taken a look at jQuery? Jun 20 03:05:34 no Jun 20 03:05:42 peak.. Jun 20 03:05:49 I shall Jun 20 03:06:23 * Tibfib 's power is going to go out soon... silly storms Jun 20 03:07:39 I assume jquery is webos ok? Jun 20 03:07:51 sorta kinda Jun 20 03:08:17 it can conflict with prototype Jun 20 03:13:58 so I'm seeing .hide("slow") - Jun 20 03:14:30 huh, someone told me jQuerry was ok to use Jun 20 03:15:38 looks cool, but I'm guessing that conflicts with prototypes .hide Jun 20 03:17:17 JenP: I think for the most part it is... I think some things do conflict, like .hide as BigBiff pointed out Jun 20 03:18:11 ah kk Jun 20 03:18:49 I just can't believe how many for loops I couldve avoided with enumerables... Jun 20 03:21:10 where are memos saved? Jun 20 03:36:23 yep Jun 20 03:36:28 wasted hours heh Jun 20 03:36:35 night all Jun 20 03:37:34 BigBiff: what's wrong with for loops? Jun 20 03:38:19 heh nothing, but couldve saved me lots of typing Jun 20 03:38:52 and nested loops Jun 20 03:39:56 like the one I still haven't fixed that formats the river names Jun 20 03:44:42 * BigBiff still doesn't get the dif in hash vs associative array vs json Jun 20 03:45:13 what is the definition of a hash? Jun 20 03:51:10 heh, on prototypejs.org, a hash = associative array Jun 20 03:51:33 hehe Jun 20 03:51:37 yeah Jun 20 03:51:48 not exactly the definition in other languages Jun 20 03:51:49 but I don't get Jun 20 03:52:09 hash.toJSON Jun 20 03:53:36 json = hash in my mind Jun 20 03:56:41 * BigBiff is out of nicotene gum Jun 20 03:56:58 fail Jun 20 03:57:11 you canNOT run out of gum Jun 20 03:57:16 json is object notation Jun 20 03:57:19 it is verboten Jun 20 03:58:02 haeffb: hash declared as Jun 20 03:58:14 {} Jun 20 03:58:35 object, right? Jun 20 03:59:18 si Jun 20 03:59:51 so it's all semantics... Jun 20 04:01:06 heh, betty white on snl Jun 20 04:01:33 Because of the nature of JavaScript programming language, every object is in fact a hash; Jun 20 04:02:24 hmm Jun 20 04:03:18 so says Prototype docs Jun 20 04:04:28 so hash.toJSON implies object.toJSON Jun 20 04:05:11 not necessarily associativeArray.toJSON Jun 20 04:07:20 * BigBiff looking under car seats for nico gum Jun 20 04:09:25 I was gonna try and make a horizontal list tonight, but got sidetracked with prototype defs Jun 20 05:05:05 If I want to have something absolute positioned with things inside positioned absolutely to that one I need to have an extra div that's relative enclosing the inner stuff? (did that make any sense?) Jun 20 05:09:00 yes Jun 20 05:09:18 if i understand your question right, isn't that basic html Jun 20 05:09:27 one div over rides the other Jun 20 05:14:21 it worked, on the first try, even. Weird! Jun 20 05:14:35 oh, well, not quite. But close. Jun 20 05:15:59 Hmm, maybe I should have used a span. Jun 20 05:16:09 Still not 100% clear on div vs. span. Jun 20 05:18:43 span won't break the line, for one Jun 20 05:19:59 I'm wondering if it matters for my absolutely positioned images and text. Jun 20 05:20:46 My images were offset about 10px from the right on this one div. I wrapped it in two divs and now it had to be aboue 30px from the right to end up in the same place. Jun 20 05:20:58 *about. Jun 20 05:21:02 JenP: howdy! Jun 20 05:21:07 hiya Jun 20 05:27:48 So... hide a div or add change its class to one that's hidden.... thoughts? Jun 20 05:28:08 as in: mydiv.hide() for hide. Jun 20 05:28:13 why are you hiding it Jun 20 05:29:29 Because sometimes it's relevant and sometimes not. Jun 20 05:29:42 .hide() is simpler Jun 20 05:30:06 I think I like hide but I see people doing it the other way and I wonder if they know stuff I don't. :) Jun 20 05:30:41 seems like I've seen on forums where css display:none has had some strange byproducts Jun 20 05:30:53 on certain elements Jun 20 05:31:10 but I've done both with same result Jun 20 05:32:08 both break the slider widget button position if it's hidden on scene push Jun 20 05:32:20 go figure Jun 20 05:33:02 well, I just made some excellent progress so I'm going to call it a night. Jun 20 05:33:18 nite! Jun 20 05:33:34 later roy Jun 20 07:50:23 lets say i have Scene1 with a list... I call scene2 to enter data... can i then update Scene1's list with the new data? Jun 20 07:53:59 just started using it today Jun 20 07:54:13 but in the mvc world, that sounds usual Jun 20 07:54:37 mvc? Jun 20 07:54:44 model, view, controller Jun 20 07:54:49 guess they call the view the scene Jun 20 07:54:54 ahh cool Jun 20 07:55:24 model is the database stuff, view is what you see, and the controller is the code changing the view Jun 20 07:55:42 over simplified of course Jun 20 07:55:46 so the assistant would be the controller Jun 20 07:55:52 exactly Jun 20 07:57:11 after a few days of headaches i'm finally starting to enjoy it a bit Jun 20 07:57:40 i'm going to take my time, i'm sure i will pick it up after a while Jun 20 07:59:29 i wasn't messing with anything, then a friend showed me how to use preware and it led to me getting hooked on coding again Jun 20 07:59:57 what is preware? Jun 20 08:01:34 its like a 3rd party app catalog Jun 20 08:01:46 full of free stuff Jun 20 08:02:05 cool Jun 20 08:02:08 free is good Jun 20 08:02:27 free is the only thing i can afford right now Jun 20 08:03:17 i feel it, i'm out of work myself Jun 20 08:03:27 until my app takes off and i get rich Jun 20 08:03:33 lol Jun 20 08:04:07 my mom lost her leg to diabetes so i had to quit my job to take care of her Jun 20 08:04:39 wow, seriously? Jun 20 08:04:50 yeah Jun 20 08:05:05 well...i hope everything works out Jun 20 08:05:06 then soon after i quit my job the transmission went out in my car Jun 20 08:05:13 so i lost my car Jun 20 08:05:15 jesus Jun 20 08:05:23 does she have a car at least? Jun 20 08:05:28 yeah, a truck Jun 20 08:05:41 so really i'm glad to be rid of the car payment Jun 20 08:06:45 dude, that's rough...how is she doing? Jun 20 08:07:24 she's doing better, she has great insurance.. has a hydro leg Jun 20 08:07:34 learning to walk on it Jun 20 08:08:46 what's that? Jun 20 08:09:30 hydrolic (sp?) Jun 20 08:10:04 she could have got an electric one but she didn't want it Jun 20 08:10:13 i didn't know they made anything like that Jun 20 08:10:24 i figured they were all solid Jun 20 08:10:34 or just bent or whatever Jun 20 08:10:43 yeah.. it's kind of spring loaded Jun 20 08:11:09 i saw this movie the other day about marathons, and this woman ran one with this metal leg Jun 20 08:11:12 hydrolic part absorbes the shock on the calf... then springy type stuff in the foot Jun 20 08:11:31 yeah.. they're pretty advanced Jun 20 08:11:51 biomedical engineering Jun 20 08:11:56 i went to school with those guys Jun 20 08:12:02 shes just not confident with it yet.. still using wheelchair and walker Jun 20 08:12:06 nice Jun 20 08:12:29 yeah, i can't imagine Jun 20 08:12:46 if i have like minor surgery i freak out for weeks and don't do anything Jun 20 08:13:55 at least she has you though, i'm sure some people aren't that lucky Jun 20 08:14:02 it's all very painful Jun 20 08:14:29 and she still refuses to watch what she eats Jun 20 08:14:58 damn Jun 20 08:15:06 why? Jun 20 08:15:22 stubborn Jun 20 08:15:47 i have type 1 diabetes.. it got to the point where i had to change my diet Jun 20 08:16:03 how old are you? Jun 20 08:16:07 34 Jun 20 08:16:47 yeah, i try to eat healthy, but i still eat probably a little bit too much sugar Jun 20 08:16:53 it's hard to quit though Jun 20 08:17:05 i miss sugar rushes but if i have sugar now it puts me to sleep Jun 20 08:19:02 yeah, sugar is no good Jun 20 08:19:25 i miss my mt dew Jun 20 08:22:11 i haven't had anything with caffeine in like 6 years probably Jun 20 08:27:32 i gotta crash, pz out Jun 20 09:20:34 is there a way to find out the number of records in a Depot database? Jun 20 13:47:08 hey guys. i've got a very simple question. Jun 20 13:47:24 is there a variable which contains the version of my app? Jun 20 13:58:05 no one an idea? Jun 20 14:00:53 appinfo.json Jun 20 14:02:29 yeah. how can i call that? to use the version nu ber? Jun 20 14:02:33 appinfo.version ? Jun 20 14:04:45 I don't know how you load the file, but once you have it it's json so appinfo.version will be fine Jun 20 14:06:05 i use ares. thank you. i try that Jun 20 14:11:00 it's not working :-( Jun 20 14:11:19 Mojo.appInfo.version Jun 20 14:12:13 anyone knows how to conect on the pre with putty or such ? Jun 20 14:12:49 cool. thank you! Jun 20 14:32:55 anyone knows how to connect to the re with putty ? Jun 20 14:33:19 *pre Jun 20 14:36:37 Famic_: http://forums.precentral.net/palm-pre-tips-information-resources/250011-ftp-access-your-pre-using-filezilla.html Jun 20 14:38:10 Famic_: alternatively install the Palm PDK and follow the official Palm instructions for installing the dropbear server. Jun 20 14:50:05 hi guys Jun 20 14:51:00 i made my own grid view, how can i achieve x-Mojo-tap-highlight="momentary" like in lists ... for each cell in that grid .. can anyone help? Jun 20 14:52:49 raghuk: create a class for your divs for with the .selected class Jun 20 14:53:47 hi BigBiff ... so .selected is called on tap of each cell ? Jun 20 14:54:32 yup Jun 20 14:54:32 x-mojo-tap does that for u Jun 20 14:54:32 looks for that selected class Jun 20 14:55:13 thanks BigBuff .. let me try Jun 20 14:55:38 of course, ull have to create a new .png for the .selected... Jun 20 14:57:02 BigBuff: for the .selected class background image? Jun 20 14:57:23 ya Jun 20 15:02:51 actually, I'm remembering, Jun 20 15:02:51 .... that all may be unnecessary Jun 20 15:02:51 :) Jun 20 15:03:29 if ur initial divs already have a background image - do they? Jun 20 15:10:17 BigBiff: it worked .. tahnks man Jun 20 15:10:44 cool Jun 20 15:11:36 BigBiff: div.grid-cell.selected { background: #cccccc; } Jun 20 15:12:13 ahh Jun 20 15:12:21 easy enoug Jun 20 15:12:25 h Jun 20 15:13:14 where can I find the infos logged with Mojo.Log in the file system ? Jun 20 15:14:21 I dunno, I never dig that deep Jun 20 15:14:44 haeffb knows :-) Jun 20 15:15:43 you ssh? Jun 20 15:16:12 yeh Jun 20 15:17:04 ya I've only rooted a few times and that was just to experiment Jun 20 15:23:44 var/log/messages Jun 20 15:24:04 but why not just use palm-log? Jun 20 15:31:27 palm-log is not very search friendly Jun 20 16:10:43 can you pay in the app catalog with paypal? Jun 20 16:23:45 not sure... i entered cc info Jun 20 16:23:59 i don't remember paypal as an option Jun 20 16:31:52 paypal is not an option, afaik Jun 20 17:26:43 urg Jun 20 17:26:57 palm frustrates me with how their security works Jun 20 19:21:47 hi all Jun 20 19:23:26 hi Jun 20 19:23:55 * JenP waves Jun 20 19:27:22 * MetaView waves back and falls from the bike Jun 20 19:28:11 hi JenP Jun 20 19:28:20 hi sugardave! Jun 20 20:55:00 is there a way to determine the number of records in a depot database? Jun 20 20:58:27 have a db with info by date then followed by 1 or more records for each date... trying to figure out how to make a unique key... i guess i could do a get on say 2010062001.. 2010062002 etc until i find an empty spot but that seems like a less than optimal way of doing it Jun 20 20:58:56 hi tibfib Jun 20 21:06:29 hi EmmettLollis Jun 20 21:39:34 Answers app is awesome Jun 20 21:41:18 what do they call those things that look like surfboards except they have sails? Jun 20 21:41:28 "they are called shutter stronger shades by kanye west" Jun 20 22:04:15 if I want to make a dialog assistant and I do NOT want to use Class.create....do I just make var dialogAssistant = function(){}; and then dialogAssistant.initialize = function etc. ? Jun 20 22:05:15 oh wait....dialogAssistant.prototype.initialize.... Jun 20 22:05:39 hrm Jun 20 22:42:18 i'm getting an error when i try to get the value of a text field... i've tried textField.getValue() and textField.value but i keep getting : Jun 20 22:42:55 uncaught typeerror: cannot call method GetValue() of object Jun 20 22:43:02 i mean getValue() Jun 20 22:44:37 it's probably something really obvious that i'm overlooking but i'm getting nowhere Jun 20 22:46:22 looks like Ares to me...in straight Mojo it'd be: this.controller.get(widgetId).mojo.getValue(); Jun 20 22:48:07 i'll try that Jun 20 22:49:23 yep... you rock Jun 20 22:50:15 ahh i see... the actual field name is in mojo itself as opposed to an actual javascript structure Jun 20 22:53:52 sweet Jun 20 23:11:04 I have a CSS question Jun 20 23:11:30 I am using showDialog....it automatically makes a scrim with id="scrim" Jun 20 23:11:46 I want to hide it, but I only want to do it in one scene Jun 20 23:12:15 my scene div is mojo-scene-main for the ID Jun 20 23:12:43 will this CSS ONLY affect the scrim in the mojo-scene-main div? #mojo-scene-main #scrim {// my style stuff} Jun 20 23:12:56 or will that apply to both (and all) of those divs? Jun 20 23:13:36 idk...i'd wrap the dialog box you want to scrim with a 'my-custom' class Jun 20 23:13:49 it's out of my control, though Jun 20 23:13:54 .showDialog is maing #scrim Jun 20 23:14:09 why not use js to add class? Jun 20 23:14:26 hmmm, that's a good idea Jun 20 23:14:31 :D Jun 20 23:14:40 (fl) Jun 20 23:52:22 if you submit an app and it doesn't get approved for whatever reason do you have to pay to re-submit it after it's fixed? Jun 20 23:55:20 EmmettLollis: nope Jun 20 23:55:48 though that might increase app release quality a bit :D Jun 20 23:57:21 Anyone know what all gets sent when you listen to a tap on a div? I can't Object.toJson() the event (I think it is too large)... Jun 20 23:57:47 Tibfib: you can intereate through each property and Mojo.Log it, I do it all the time Jun 20 23:57:52 there's a LOT of stuff Jun 20 23:58:02 how about iterate Jun 20 23:58:03 jeez Jun 20 23:58:18 Doh, using for each? Jun 20 23:58:38 * Tibfib wonders what intereating is Jun 20 23:58:40 I think mine are regular for (thing in object) {} loops Jun 20 23:58:55 Err. that's what i meant. For in... not for each Jun 20 23:59:00 yep Jun 20 23:59:18 hang on, I'll show you my debug methods Jun 21 00:00:11 Tibfib: http://webos.pastebin.com/qE5eBxH2 Jun 21 00:00:30 I just include that first in sources.json, even before my app or stage assistant so I can use them in there, too Jun 21 00:00:36 debugObject(object); Jun 21 00:01:16 nice, thanks man Jun 21 00:01:19 np Jun 21 00:12:23 morning Jun 21 00:22:43 morning Jun 21 01:14:12 sugardave: I have now stolen debug.js Jun 21 01:17:41 i'm getting the weirdest dB error Jun 21 01:17:52 Uncaught TypeError: Cannot read property 'parentNode' of null Jun 21 01:24:57 not a db error Jun 21 01:25:19 yeah i've narrowed it down to a list error Jun 21 01:34:11 haeffb: only for good, never for evil Jun 21 01:34:21 smiles Jun 21 01:36:55 obviously. only for good. Jun 21 01:37:28 haeffb: did you write the showDialog stuff on webos101? Jun 21 01:37:47 I think so Jun 21 01:37:48 * sugardave could check, but he's lazy. Jun 21 01:38:11 cool, it's supremely helpful Jun 21 01:48:14 in that case, it was definitely me Jun 21 01:52:32 hmm there is something wrong with my list Jun 21 01:55:37 whats going on with your list Jen? Jun 21 01:56:07 idk...it works in my other app...but not this Jun 21 01:56:28 is it loading at all or doing something funky? Jun 21 01:56:29 i'm getting a TypeError: Cannot read property 'parentNode' of null Jun 21 01:56:44 ooh Jun 21 01:56:46 hmm Jun 21 01:57:36 sounds like it doesn't think its defined Jun 21 01:57:46 nodnod Jun 21 01:58:01 i'm still new at this so i may not give the best advise (disclaimer) Jun 21 01:58:19 smiles..no worries Jun 21 02:02:01 i had something like that earlier today and it turned out i was trying to access an object that wasn't there.. i had to use this.controller.('fieldname').mojo. Jun 21 02:02:36 i made the assumption that the objects i defined in Ares were really objects in javascript Jun 21 02:02:49 * EmmettLollis slaps forehead Jun 21 02:03:17 well, they are, technically...just I don't know how to access them the Ares way :D Jun 21 02:03:48 JenP: sounds like you might be doing something in scene setup when it should be done in activate, maybe? Jun 21 02:03:54 well, as always the documentation explains everything Jun 21 02:04:26 or maybe in the constructor when this.controller isn't set yet....you'd have to paste your stuff to know for sure, though Jun 21 02:07:52 kk one set Jun 21 02:07:53 sec Jun 21 02:09:14 http://pastebin.com/8xChsVdx Jun 21 02:09:27 my constructor Jun 21 02:12:18 okay, that looks alright....what about the scene html? Jun 21 02:12:20 http://pastebin.com/4LFy96sZ Jun 21 02:12:31 that has the html in it Jun 21 02:13:55 hmmm Jun 21 02:14:00 I suppose it' Jun 21 02:14:29 it's alright, but your list template isn't showing any data from your list items...you should just get 'tre' for every entry Jun 21 02:14:42 yeah i know Jun 21 02:14:44 I don't think that's what is causing your issue, though Jun 21 02:14:47 but i don't even get tre Jun 21 02:14:57 are you SURE it's not something else in the code? Jun 21 02:15:00 i put it there to try and gen anything Jun 21 02:15:03 are you doing any DOM stuff? Jun 21 02:15:15 one sec i'll send it to you Jun 21 02:52:35 is there a way to see if a widget has focus? Jun 21 02:53:03 mojo.hasFocus? Jun 21 02:53:04 guessing Jun 21 02:54:51 we shall see :) Jun 21 02:55:22 nope Jun 21 02:56:35 heh: http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013482cd8faa970c-pi Jun 21 02:57:08 heheh, nice **** ENDING LOGGING AT Mon Jun 21 02:59:56 2010