**** BEGIN LOGGING AT Sun Jun 27 02:59:56 2010 Jun 27 02:59:59 this.controller is shorter. Jun 27 03:00:15 ummm Jun 27 03:00:28 Mojo.Event.listen(this.controller.get("myWidget") ... Jun 27 03:00:33 oh Jun 27 03:00:35 yeah Jun 27 03:00:42 this.controller.listen('myWidget'... Jun 27 03:00:43 * sugardave will try to remember that one. Jun 27 03:01:08 JenP: are there any other error messages? Jun 27 03:01:39 g: Mojo.Event.listen: 'target' parameter must be defined. Jun 27 03:01:58 JenP: nevermind, go back to this.controller.listen Jun 27 03:02:01 Error: requireDefined Failed: Mojo.Event.listen: 'target' parameter must be defined., line undefined, file undefined Jun 27 03:02:01 An exception occurred in the 'ccStorage' scene's activate() method. Jun 27 03:02:08 yes, the "target" parameter is the widget ('ViewSelectorId' Jun 27 03:02:40 ah, there it is. Jun 27 03:02:47 Line 5 has a semi-colon, should be a comma. Jun 27 03:03:28 * haeffb really likes Eclipse validator...completely avoids stuff like that. Jun 27 03:04:31 http://pastebin.com/NSXMLJT9 Jun 27 03:04:39 haeffb line 5 is a comma Jun 27 03:05:23 LOL. Something was on my screen at that exact spot. Made it look like a semi-colon. Jun 27 03:05:24 JenP: obvious question...is there an element with id ViewSelectorId in your html? Jun 27 03:05:42 #{card_name}
Jun 27 03:06:19 ah Jun 27 03:06:24 this is in a list template? Jun 27 03:06:30 or some other template thing? Jun 27 03:06:55 it looks like you might be getting more than one div with the id ViewSelectorId? Jun 27 03:07:00 http://pastebin.com/qHFHPjYq Jun 27 03:07:05 here's the html too Jun 27 03:07:31 line 37 Jun 27 03:07:34 so, this is a list? Jun 27 03:07:38 each has an id Jun 27 03:07:40 yeah it is Jun 27 03:07:40 with another list in it? Jun 27 03:07:43 okay Jun 27 03:07:55 you can't have multiple elements with the same UNIQUE id in it :{ Jun 27 03:07:58 :P Jun 27 03:08:28 change the id attribute to name for the ViewSelectorId element (that is supposed to magically work) Jun 27 03:08:29 ? Jun 27 03:08:36 kk Jun 27 03:09:51 ? ok that didn't work. i'm doing something wrong... Jun 27 03:10:30 alright Jun 27 03:10:34 I Jun 27 03:10:37 i'm ready to go PDK Jun 27 03:10:40 JenP: alexfner is here to help you Jun 27 03:10:42 give me everything I know Jun 27 03:10:45 I am here Jun 27 03:10:48 to help you, JenP Jun 27 03:11:17 um.. ok...are we being serious? Jun 27 03:11:33 no Jun 27 03:11:35 ofcourse Jun 27 03:11:37 no? Jun 27 03:11:41 LOL Jun 27 03:11:45 oh I guess not Jun 27 03:11:47 I was Jun 27 03:12:11 JenP: here's the issue I see Jun 27 03:12:23 that HTML is a lis template, right? Jun 27 03:12:26 list template Jun 27 03:12:29 yes Jun 27 03:12:31 okay Jun 27 03:12:44 so that html is the listEntry Jun 27 03:12:51 so for every list entry, that HTML is being injected in the DOM Jun 27 03:13:06 nodnod Jun 27 03:13:11 that means you are ending up with multiple unique IDs named showDB AND ViewSelectorId Jun 27 03:13:16 this is a big no-no Jun 27 03:13:28 ohhhh ok Jun 27 03:13:30 because tha tmeans your unique IDs are, well...not unique Jun 27 03:13:51 you're SUPPOSED to be able to use the name attribute in place of id for that very case Jun 27 03:13:55 right Jun 27 03:14:02 but I'm not much help beyond that at this point Jun 27 03:14:07 so i did change it to name...and still got that error Jun 27 03:14:11 right Jun 27 03:14:13 so, I'm stumped Jun 27 03:14:53 omg....that show "horders" is on...i've never seen anything like that before.... Jun 27 03:15:12 my wife likes to watch that show Jun 27 03:15:15 motivation to not become one Jun 27 03:16:16 yeah...but it seems like most of it is just "trash" that needs to be taken out Jun 27 03:16:45 yeah, but some of these people are really attached to their stuff Jun 27 03:16:49 really attached Jun 27 03:17:01 food wrappers? Jun 27 03:17:06 I know Jun 27 03:17:12 it's crazy Jun 27 03:17:22 wow Jun 27 03:17:37 JenP: is CcStorageAssistant the right assistant name? Jun 27 03:17:47 yes Jun 27 03:18:03 oh. gosh. Jun 27 03:18:10 You don't have a closing } on your setup() Jun 27 03:18:35 yeah i do I just didn't add it Jun 27 03:18:37 to pastbin Jun 27 03:18:38 OK. Jun 27 03:19:34 what else are you not telling us? Jun 27 03:19:40 heh Jun 27 03:20:06 um....secretly i like to watch baywatch? Jun 27 03:20:06 she doesn't want us to see her awesome steganography code Jun 27 03:20:17 lol Jun 27 03:20:30 JenP: secret arms dealer and human trafficker Jun 27 03:20:36 ok let me remove ALL the tons of comments and i'll paste everything one sec Jun 27 03:20:38 because I don't see anything that should be throwing an error. Jun 27 03:20:57 kk one sec Jun 27 03:22:53 http://pastebin.com/pnQKYQGE Jun 27 03:22:57 that's the js Jun 27 03:24:13 http://pastebin.com/eLzQfpNr Jun 27 03:24:16 here's the html Jun 27 03:24:39 guys and gals Jun 27 03:24:42 lets stop the fighting Jun 27 03:24:46 and just fix the problem Jun 27 03:25:24 * JenP refuses to stop watching Baywatch Jun 27 03:25:46 JenP: humor me and paste the scene html Jun 27 03:25:54 kk Jun 27 03:26:55 http://pastebin.com/az3nKy3R Jun 27 03:27:09 has scene and entry Jun 27 03:27:17 cool Jun 27 03:29:01 wait wait wait Jun 27 03:29:36 ViewSelectorId won't exist until there are entries in the list...where is your list setup? Jun 27 03:29:59 line 7? Jun 27 03:30:26 oh, yeah...but there are no items....so no entries...so no HTML Jun 27 03:30:42 oh cause they get populated by the db Jun 27 03:30:52 right...so you can't listen until they exist Jun 27 03:31:22 hmm ok..so what's the right way to do it? Jun 27 03:31:29 thinking.... Jun 27 03:32:03 I guess wherever you run modelChanged Jun 27 03:32:13 right after that, set up the listener? Jun 27 03:33:41 but isn't the listener already under that? Jun 27 03:34:02 no, think asynchronouse Jun 27 03:34:05 -e Jun 27 03:34:11 ok Jun 27 03:34:41 you are trying to listen on a widget in setup() Jun 27 03:34:47 which is called before activate() Jun 27 03:34:55 which is where you are loading your list Jun 27 03:35:06 you have the cart before the horse Jun 27 03:35:38 so, what you need to do is move the this.controll.listen() to be the very next statement after modelChanged in your loadList success handler Jun 27 03:35:39 so i can setup a widget some where other then the setup? Jun 27 03:35:49 no Jun 27 03:35:53 but you can listen on them Jun 27 03:35:56 anywhere Jun 27 03:36:08 well, you can setup a widget outside a setup, scratch that part Jun 27 03:36:12 but here you don't need to Jun 27 03:36:23 ok so move 38 & 39 Jun 27 03:36:28 you can set them up before they are in the DOM, but you can't listen to them Jun 27 03:36:34 to under 78 Jun 27 03:36:37 you can leave 38 Jun 27 03:36:40 in place Jun 27 03:36:44 kk Jun 27 03:36:48 I leave that stuff in setup all the time Jun 27 03:37:05 ok... Jun 27 03:37:33 this this.thingHandler = this.thing.bindAsEventListener(this); stuff, I mean Jun 27 03:37:47 ok Jun 27 04:04:36 a question for the mojo experts :) Jun 27 04:05:11 * sugardave looks around. "Well, you have us." Jun 27 04:05:13 if I have a list element, and I tap it, how do I make it stay "tapped" while something is happening, and then "untap" it Jun 27 04:06:00 (i.e I'm calling a service method, and it's going to take a couple of seconds, and I want the list item to remain dark grey until the callback, at which time I want to turn it back to the idle state colour Jun 27 04:06:52 I think it's probably a style or something Jun 27 04:07:05 oh Jun 27 04:07:13 I thought you meant a button Jun 27 04:07:29 I think it's just class="selected" Jun 27 04:07:37 well, it normally happens on a button, and you get a spinner until you deactivate Jun 27 04:08:28 I think I want a Mojo.Widget.activityButton but as a list entry widget instead of a button Jun 27 04:08:55 you could always put an activity spinner as an element in the list, then Jun 27 04:10:24 rwhitby: but you can definitely put together a list of activityButtons Jun 27 04:10:53 hmm, anyone have a script script or m4 file or something for generating an appinfo.json file? Want to automate as much as possible Jun 27 04:11:00 err, shell script Jun 27 04:12:01 Ideally I'd take a clean source tree (likely cross-platform) and run `make palm` and it'll generate the package Jun 27 04:19:11 sugardave: at the moment, it's a list of class="palm-row" x-mojo-tap-highlight="momentary" Jun 27 04:19:57 I think when you tap it, it gets class selected added while your finger is down Jun 27 04:20:17 so, you'd need to try and keep it there after the finger is up Jun 27 04:20:23 oh, mouseup Jun 27 04:20:54 right - that's exactly what I'm after Jun 27 04:21:04 and then deselect it when the activity is complete Jun 27 04:21:14 okay Jun 27 04:21:28 maybe I should just leave it for oil to do :) Jun 27 04:21:44 so this.controller.get('idOfElement').addClassName('selected'); Jun 27 04:22:01 is the Mojo to do that in a scene controller Jun 27 04:22:26 and removeClassName('selected') is the opposite Jun 27 04:22:52 hmm - can I do that in the tap handler? Jun 27 04:22:58 yes Jun 27 04:23:23 event.item.addClassName ? Jun 27 04:23:40 event.item.id.addClassName() probably Jun 27 04:23:53 er Jun 27 04:23:54 no Jun 27 04:23:56 sorry Jun 27 04:23:59 you had it right Jun 27 04:24:10 I haven't tried it that way, actually Jun 27 04:24:31 oh, no Jun 27 04:24:55 rwhitby: sorry, it might be event.target or event.currentTarget .addClassName Jun 27 04:26:35 rwhitby: depending on where/when you want to remove the class, you might need to save a reference to the element id Jun 27 04:28:15 sugardave: actually, once the activity is finished, the whole scene will be popped Jun 27 04:28:24 okay, no worries then Jun 27 04:28:45 I wonder if there is another x-mojo-tap-highlight value which will just do this automatically for me Jun 27 04:28:54 persistent Jun 27 04:28:59 ? Jun 27 04:29:03 it works for header widgets Jun 27 04:31:23 perfect Jun 27 04:31:31 awesome Jun 27 04:31:31 one word change does exactly what I want Jun 27 04:31:35 thanks sugardave Jun 27 04:31:45 I should have thought of that first :D Jun 27 04:31:50 np Jun 27 04:32:04 Govnah now waits the 3 seconds it takes to enable compcache before popping out of the profiles list Jun 27 04:32:39 ah, that can eliminate lots of potential problems :D Jun 27 04:33:26 it does 4 or 6 service requests, and I need to keep track of all of them to wait until they are all completed before popping Jun 27 04:33:43 and they may complete in any order :) Jun 27 04:33:50 that's a bonus Jun 27 04:34:04 but that was easier than finding this "persistent" setting :) Jun 27 04:34:06 I was just sitting here contemplating the Synchronizer object again Jun 27 04:34:12 heh Jun 27 04:34:24 it's actually an example in the style matters app, I think Jun 27 04:43:30 Amaranth: Have you tried 'palm-generate'? Jun 27 04:47:07 Roy-Pre101: hrm, that generates an entire tree for a mojo app, I just need appinfo.json Jun 27 04:47:14 and I need to automatically convert the app title to the id Jun 27 04:47:22 I think I figured out how to do it with m4 though Jun 27 04:48:09 good. Jun 27 04:48:12 What is m4? Jun 27 04:53:46 I think that's a compiler macro language Jun 27 04:54:53 it's an 'assault' rifle Jun 27 04:54:58 when all else fails, shoot it Jun 27 04:57:36 I like this plan Jun 27 05:03:43 this is odd... i have an array that i'm populating with array.push.. the first item adds just fine but the second array.push adds the second item AND overwrites the first item with the second's data Jun 27 05:05:57 heres the code: http://pastebin.com/tQPDjqn7 Jun 27 05:10:06 don't update the model until the loop has completed Jun 27 05:10:31 the update part is a bit odd sometimes Jun 27 05:11:09 and i'd recommend using an object to create those items, instead of obj.elem =, obj.elem2 = ... Jun 27 05:14:15 http://pastebin.com/Ld6c2whX Jun 27 05:14:24 and your array indexing might have been wrong Jun 27 05:21:07 that fixed it... had to use the same array indexing (i) but it works Jun 27 05:21:09 :D Jun 27 05:26:24 glad it did Jun 27 05:28:32 anyone use mojo depot for storage? Jun 27 05:28:52 HattCzech: Nope. Jun 27 05:29:01 sqlite? Jun 27 05:29:01 why do that, just use the db Jun 27 05:29:10 db adds too much code Jun 27 05:29:20 depot works well Jun 27 05:29:24 i started to use depot but it didn't have what i needed Jun 27 05:29:25 you're doing it wrong Jun 27 05:29:34 :P Jun 27 05:29:44 hehehe, i probably am, but it'll still use more code :) Jun 27 05:30:20 I honestly can't say, I've never used the depot at all Jun 27 05:30:33 let's hope nobody updated my homebrew app in the past 30min :/ Jun 27 05:31:19 for depot, all you need is get Jun 27 05:31:43 and add Jun 27 05:51:31 yay my m4 works Jun 27 05:52:37 m4? Jun 27 05:53:39 I have an m4 file to generate my appinfo.json Jun 27 05:54:27 My Makefile defines a title, version, and executable name and I just run `make package` and it generates a package for a PDK app and runs palm-install on it Jun 27 05:56:19 Amaranth: If you think it might be useful to others you could document it on webos101.com Jun 27 05:56:45 I'll probably just add on to my example at https://developer.palm.com/distribution/viewtopic.php?f=70&t=7827 Jun 27 05:57:05 I'm pondering holding a webos101.com document-a-thon one day. What do you guys think of that? Jun 27 05:58:17 Looks like a nice makefile. Jun 27 05:58:20 If I install uname on Windows I can set this Makefile up to be universal across OS X, Windows, and (when the PDK makes it there) Linux Jun 27 05:58:24 Roy-Pre101: that could be fun Jun 27 05:58:55 But for now, it's bed time Jun 27 06:18:56 this code -- if (modelMeals.items[i].date == recDate && modelMeals.items[i].time == recTime) -- throws the error : cannot read property date of object... whats wrong with my syntax? Jun 27 06:20:20 [] is the right way to read an array item right? Jun 27 06:31:16 EmmettLollis: that seems to be saying that whatever is in that array index is not an object and/or doesn't have a date property Jun 27 06:40:19 i can see the data in the debugger though Jun 27 06:42:12 is this something outside of of your transaction? Jun 27 06:43:16 in the Ares debugger Jun 27 06:43:27 i can view the properties of modelMeals Jun 27 06:43:39 which includes 3 items in the array Jun 27 06:44:30 but where do you have the code that is trying to access them? Jun 27 06:45:02 modelMeals is global to the entire project Jun 27 06:46:06 I know, but if you are running code outside the transaction that fills that array, it's possible the code is running before the array really has items in it (if that's true, then I'd guess the Ares debugger gets updated when modelchanged is called, but I have no clue if that is true) Jun 27 06:46:27 or it's something else Jun 27 06:47:28 the next thing you should do is Object.toJSON(modelMeals.items[i]); and see what's there at that moment in time Jun 27 06:47:43 trying another approach Jun 27 06:49:31 hrm Jun 27 06:53:03 its in there Jun 27 06:53:14 toJSON shows data Jun 27 06:53:47 it has a date property? Jun 27 06:53:50 Info: ########DEBUG######## modelMeals={"items": [{"date": "20100626", "time": "214910", "mealname": "First meal", "calories": "100", "carbs": "10"}, {"date": "20100626", "time": "214921", "mealname": "Second meal", "calories": "200", "carbs": "20"}, {"date": "20100626", "time": "241750", "mealname": "Third meal", "calories": "0", "carbs": "0"}]}, palmInitFramework338:2520 Jun 27 06:54:53 makes no sense at all Jun 27 06:56:52 night all Jun 27 06:57:02 sugardave: it's late, you should go to bed :) Jun 27 06:57:44 yeah, I will be doing that soon Jun 27 07:03:41 hrm Jun 27 07:04:42 http://pastebin.com/Fbtp6DH3 Jun 27 07:04:48 thats the code i have now Jun 27 07:05:15 toJSON says the value of mealsRecord is "object" Jun 27 07:06:09 odd thing is items.length is readable Jun 27 07:10:17 hmm very strange.. i'm getting an off and on "cannot read property" error on a mojo called event... i wonder if my system is just hosed Jun 27 07:10:40 even associateive arrays have a "length" property but that doesn't mean they are numerically indexed Jun 27 07:11:42 oh, but that's the items array, so it should be numeric Jun 27 07:11:45 regular array Jun 27 07:11:50 you broke it Jun 27 07:11:58 aparently so lol Jun 27 07:12:13 your for loop is busted, though Jun 27 07:12:20 how so? Jun 27 07:12:41 length will always be last index + 1, so you need to look for i < length not <= Jun 27 07:12:49 Oooh Jun 27 07:13:43 removeAllEventListenersRecursive was the other object property it couldn't read... i know i didnt make that function Jun 27 07:14:08 no, it's like you are accessing the event object somehow Jun 27 07:14:38 ok... the <= is what broke it Jun 27 07:14:48 accessing non existant data Jun 27 07:14:54 yep Jun 27 07:15:19 OMG Jun 27 07:15:22 !! Jun 27 07:15:25 it's working! Jun 27 07:15:34 of course it is Jun 27 07:15:44 now, break something else Jun 27 07:15:51 i plan on it Jun 27 07:15:57 hi dkirker Jun 27 07:16:05 hi sugardave Jun 27 07:16:12 my meals list works, i can add/update and delete :) Jun 27 07:16:25 awesome Jun 27 07:24:22 thanks so much for your help Jun 27 07:24:34 must reboot to get the app on my pre... bbiab Jun 27 07:35:26 Interesting spelunking at http://webos101.com/Mojo.Event.propertyChange#Custom_Event_Fields Jun 27 07:35:47 most all propertyChange events are broken. Jun 27 07:38:17 how so? Jun 27 07:43:46 novacom service? Jun 27 07:43:56 what is that? Jun 27 07:44:17 it lets you talk to the emulator or device Jun 27 07:44:24 you can use novaterm to get a shell Jun 27 07:44:29 it's part of a novacom Jun 27 07:44:39 where can i get it? Jun 27 07:44:59 isn't it included in SDK? Jun 27 07:45:39 yeah, it should install as part of the SDK depending on your OS Jun 27 07:45:53 or it's another package to download (i.e. in Linux) Jun 27 07:48:01 i saw it is included in SDK, but it failed to run Jun 27 07:48:20 hmm, that sucks Jun 27 07:48:30 it says it failed to connect to server Jun 27 07:48:31 try a clean uninstall/reinstall? Jun 27 07:48:45 what is the server here? Jun 27 07:49:12 novacom service said that? what operating system? Jun 27 07:49:50 novacom command. winxp Jun 27 07:51:12 novacom is a service in xp, so you would stop/start it through the services applet or net stop novacom or net start novacom from the command line Jun 27 07:51:26 you'd run novaterm to try and get a shell on the emu or the device Jun 27 07:53:16 there is no novaterm in sdk. just novacom Jun 27 07:53:33 net start/stop novacom failed Jun 27 07:53:54 how do i start novacom service Jun 27 07:53:57 ? Jun 27 07:55:48 there is no uninstall option Jun 27 07:56:17 when you uninstall the sdk, it should uninstall the service Jun 27 07:56:35 do i have to uninstall? i just installed it and try the first tutorial. it takes me too much time:< Jun 27 07:57:12 well, you have to decide if it's going to take less time to uninstall and try again or figure out what went wrong Jun 27 07:57:12 it is a bad experience Jun 27 08:01:37 what host OS are you using? Jun 27 08:10:59 rwhitby: 09:49 < Tiger__> novacom command. winxp Jun 27 08:28:15 alas Jun 27 08:28:19 mobile browsers Jun 27 08:28:23 are not desktop browsers Jun 27 08:52:34 i'm back Jun 27 11:03:49 hi guys ... does anyone known how to style a un-labeled single palm-row ? i want to change the background of the row ? Jun 27 12:55:27 well, it's 8am... i'd better get some sleep Jun 27 13:33:47 how do you write to a file in /media/internal? Jun 27 13:46:04 jettero: with mojo you don't Jun 27 13:46:27 With the PDK you just use fopen, fwrite, fclose Jun 27 13:47:30 Amaranth: pdk+fopen, sure, ... I'm sure I read somewhere though, that you can write files to /media/internal somehow. See also: Dr. Podder (where he saves stream files to disk) Jun 27 13:48:00 jettero: He is using the download manager service Jun 27 13:48:24 Agreed. That's likely what I'm going to do too actually. It will work for the ajax debugging I need Jun 27 13:48:43 still, I'm sure there's a way to save depots or cookies or something to media internal Jun 27 13:48:56 I just don't recall where I saw that Jun 27 15:04:32 i thought all depot/sql/cookies were saved to media/internal Jun 27 15:06:45 anyone know how to use inspector to change styles on the fly? Jun 27 15:11:55 haeffb: I know you can double-click on the css rules on the right and add some with ; delimiter Jun 27 18:36:47 note to self: if you want a div to float: right, it has to come before the divs that it floats to the right of... Jun 27 18:44:30 evening Jun 27 18:45:02 evening Jun 27 18:45:26 hey, did you find out how to change the emu resolutions? Jun 27 18:46:46 not yet Jun 27 18:46:57 i've asked deliciousmorsel, but not received an answer yet Jun 27 18:48:00 you on Windows? Jun 27 18:49:21 nah Jun 27 18:50:18 well, you need to find the .VirtualBox directory Jun 27 18:50:25 where VB settings are stored. Jun 27 18:50:27 haeffb: maybe that's my problem, I always float: left, then float:right Jun 27 18:51:04 yeah, that one is in the home directory Jun 27 18:51:34 there is a Machines directory Jun 27 18:51:40 yeah Jun 27 18:51:47 and a directory for each VB machine (SDK...) Jun 27 18:51:55 edit the xml file? Jun 27 18:51:58 edit the .xml file Jun 27 18:52:08 I would suggest creating a new machine first... Jun 27 18:52:14 do you have Pixi resolution? Jun 27 18:52:14 wussy Jun 27 18:52:24 lol Jun 27 18:52:42 * haeffb edited the Pixi machine so I could continue to test Pre resolution Jun 27 18:52:51 it worked? Jun 27 18:53:19 yeah, it worked. The launcher is pretty messed up. Jun 27 18:53:22 but apps work Jun 27 18:53:39 why would you do that? Jun 27 18:53:41 Jun 27 18:53:42 Jun 27 18:53:51 oh Jun 27 18:53:52 Jun 27 18:53:59 k, i'm trying 960x640 Jun 27 18:54:02 those are what I'm using Jun 27 18:54:05 I thought you meant you changed the Pixi machine to Pre resolution Jun 27 18:54:23 nope, to 800x640 to test on the new tablet device Jun 27 18:55:40 960x480 is just the double resolution Jun 27 18:56:12 doesn't fit on my laptop screen Jun 27 18:56:26 so I was continually scrolling the VB image Jun 27 18:56:30 hrmm, doesn't seem to work Jun 27 18:57:14 also, make sure you're not running VB when you edit... :) Jun 27 19:00:36 oh, the pre emulator was still running Jun 27 19:00:45 woha! Jun 27 19:01:16 OMG! Jun 27 19:02:16 sweet, sweet Jun 27 19:03:45 it's official, WebViews completely ignore more: vertical for Scrollers (well, almost completely) Jun 27 19:03:49 that's dumb Jun 27 19:06:12 my app scales nice Jun 27 19:06:16 some css-changes needed Jun 27 19:06:21 me too Jun 27 19:06:29 list dividers don Jun 27 19:06:34 't work right Jun 27 19:08:11 umm Jun 27 19:10:18 ohm Jun 27 19:11:36 http://www.inorbit.ch/upload/snap03.png Jun 27 19:14:36 my drawers in list breaks when you exceed renderLimit in the list. Jun 27 19:15:10 swisstomcat: your dividers break, too. Jun 27 19:15:20 so, I guess I'm in the dark but, Jun 27 19:15:27 new device? Jun 27 19:15:38 no, not yet Jun 27 19:15:42 yeah, the hurricane tablet prototype Jun 27 19:15:49 link? Jun 27 19:15:52 jk Jun 27 19:15:58 we're anticipating a new device Jun 27 19:16:03 just the emulator scaling up Jun 27 19:16:03 I've looked, links seem old Jun 27 19:16:05 ahh Jun 27 19:16:10 & modifying the emu resolution to see if apps need to be changed Jun 27 19:16:17 ic Jun 27 19:16:52 thought maybe some 'in the know' edness afoot Jun 27 19:17:03 :) Jun 27 19:17:14 * sugardave knows nothing. Jun 27 19:17:19 DON'T ASK ME Jun 27 19:17:31 i assume we'll hear news soon Jun 27 19:17:41 * BigBiff is going to ask sugardave Jun 27 19:17:50 DON'T DO IT Jun 27 19:18:04 i can tell you everything but then i'll have to kill you Jun 27 19:18:16 cool Jun 27 19:18:36 I like living dangerously Jun 27 19:18:49 makes me feel more alive Jun 27 19:25:32 hi Jun 27 19:25:45 hi metaview Jun 27 19:25:58 hi mr. swiss Jun 27 19:26:23 england certainly got the boot today from germany Jun 27 19:26:51 yeah i just saw the replay of that Jun 27 19:26:53 ouchhhhh Jun 27 19:26:54 well, they made one goal which the refere didn't count Jun 27 19:27:17 bad day for england, with a 2:2 the game might had come different Jun 27 19:38:17 I wish scrollers were more forgiving. Jun 27 19:38:40 I can't get this one to work without explicitly defining the height. Jun 27 19:38:58 And that means I can't make it adjust nicely when other pieces change. Jun 27 19:39:08 And use relative sizing for fonts. Jun 27 19:39:23 hi roy-pre101 Jun 27 19:39:33 i added some stuff to the cross-launch page on webos101 Jun 27 19:40:14 swisstomcat: Howdy! Jun 27 19:40:25 does that mean we can launch Moo to make animal sounds? Jun 27 19:41:02 not yet but i'm thinking about stuff Jun 27 19:43:33 AppID: good idea. Jun 27 19:49:28 Roy-Pre101: you can fake the height of a scroller...I think I've had luck using top and bottom attributes Jun 27 19:49:40 Oh? Jun 27 19:49:44 yeah Jun 27 19:49:47 Let me try that. Jun 27 19:50:50 I'm still unclear on when top/bottom positioning is valid, I know it works for fixed and relative Jun 27 19:51:14 mm, not scrolling. Jun 27 19:51:19 hang on a sec Jun 27 19:52:05 Roy-Pre101: what are you trying to do? Jun 27 19:52:24 Roy-Pre101: okay, in this current app, I have position: fixed, top: 0px and height 100% Jun 27 19:52:28 you could make the height depending of the other stuff around Jun 27 19:53:30 and it is constrained in another div whose top starts at around 45px Jun 27 19:53:48 and my scroller's top for some reason (even though I said fixed position) starts at the top of that div Jun 27 19:53:57 then 100% fills the height of its parent Jun 27 19:56:15 sweet, just answered a call with my foot Jun 27 20:05:05 so, should I fix it by just setting a really really high renderLimit? Jun 27 20:05:33 renderLimit...I've heard of that before Jun 27 20:06:58 the jfelectron hack/method for using drawers in a list involves getElementsByName('mydrawer'), then toggling the drawer by the event index Jun 27 20:08:22 but it only renders the renderLimit number of drawers Jun 27 20:08:49 so event.index no longer equals the index in the array returned by getElementsByName Jun 27 20:09:44 should I just give up on drawers completely? Jun 27 20:09:47 yes Jun 27 20:09:54 DRAWERS SUCK Jun 27 20:10:39 so how do I show/hide a div in my list? Jun 27 20:11:12 collapsible dividers? Jun 27 20:11:16 that might get messy Jun 27 20:11:40 do you mean a list entry, or part of the list entry? Jun 27 20:11:50 part of a list entry Jun 27 20:11:55 .hide()? Jun 27 20:12:09 what.hide() ? Jun 27 20:12:37 given the event.index, how do I get a handle to the div within the list entry that I want to show/hide? Jun 27 20:12:45 this.controller.get(event.item/target/whatever.id).someOtherPrototypeMagicFunction(theDiv).hide() Jun 27 20:13:15 fistChild, lastChild, etc. Jun 27 20:13:45 some kinda DOM walking... Jun 27 20:13:51 yeah Jun 27 20:13:57 bleah. Jun 27 20:14:11 it might be simple, you never know! Jun 27 20:15:15 well, at least I can document it on webos101 when I've finished... Jun 27 20:15:18 i'm working on a webview widget too Jun 27 20:17:13 can't you give the div an id? Jun 27 20:17:24 Hey, I got it scrolling. Just need a little more work on it. Jun 27 20:17:26 haeffb: you could just put a class name on the thing you want to hide and something like this.controll.get(event.target.id).getElementsByClassName(theClass)[0].hide(); assumning there's only one element in that entry with that class Jun 27 20:17:53 but if you use an unique id for the div? Jun 27 20:18:13
Jun 27 20:18:13 event.target.id? Jun 27 20:18:35 event.target.id should be the id of the thing that is tapped Jun 27 20:18:38 oh, but it's a list Jun 27 20:18:44 right. Jun 27 20:18:48 so probably just event.target Jun 27 20:18:50 event.srcElement Jun 27 20:18:52 and? there is still an id Jun 27 20:18:54 or that Jun 27 20:19:04 or event.target Jun 27 20:19:19 event.target probably Jun 27 20:19:42 it should be target, currentTarget, or srcElement Jun 27 20:19:46 maybe all 3! Jun 27 20:20:13 hehe Jun 27 20:20:21 MetaView: yeah #{generated_id} would work, but then he'd have to know it anyway Jun 27 20:20:46 srcElement returns the list id itself doesn't it? Jun 27 20:20:53 maybe.... Jun 27 20:21:45 sugardave: when I retrieve an unique ID fro mthe db and could use it for the list element and also for every single div inside, maybe 'div'+id Jun 27 20:22:25 and listTAp gives me the list element and I can get the id of this record and use it to access the div: 'div'+id Jun 27 20:22:59 MetaView: yes, that's a good way to do it, too Jun 27 20:24:05 haeffb: actually, I'm wondering if you can use this.controller.get() on something that doesn't have an id Jun 27 20:24:08 nope Jun 27 20:24:12 oops Jun 27 20:24:13 you cannot Jun 27 20:24:24 oh, but you don't need it Jun 27 20:24:35 you can get it by name Jun 27 20:24:40 event.target.getElementsByClassName() should just work Jun 27 20:24:57 yes, then you use the class name as id Jun 27 20:24:57 * sugardave speculates wildly without testing anything. Jun 27 20:25:12 needs a lot of unique class names Jun 27 20:25:25 MetaView: nah, just one per list item Jun 27 20:25:31 don't know if it slows down the rendering, as js might try to find the classes Jun 27 20:25:34 this.controller.document.getElementByName[event.index Jun 27 20:25:40 ] Jun 27 20:25:46 unique id's qould be much cleaner Jun 27 20:25:55 element+s Jun 27 20:25:57 error: Uncaught TypeError: Object # has no method 'getElementsByName' Jun 27 20:26:11 controller.document Jun 27 20:26:18 why not use unique id's? I guess you have one for your record Jun 27 20:26:33 produces an array of names Jun 27 20:27:26 I've just got the synyax wrong, but it works Jun 27 20:27:51 synyax? Jun 27 20:28:27 this.controller.get(document).getElementsByName(name); ? Jun 27 20:28:42 ? Jun 27 20:28:52 to BigBiff Jun 27 20:28:58 get(document)? Jun 27 20:29:02 yep Jun 27 20:29:03 that works Jun 27 20:29:12 this.controller.document Jun 27 20:29:21 IIRC Jun 27 20:29:30 controller.document.getElementsByName('name')[event.index] Jun 27 20:29:33 let me check, I have old code that does this Jun 27 20:29:55 no, you're right, Mojo.Event.listen(this.controller.get(document), Mojo.Event.orientationChange ... Jun 27 20:30:15 I use it and it works :) Jun 27 20:30:50 oh nevermind, I set a document var to the div I want to manipulate Jun 27 20:30:54 either way is great Jun 27 20:30:58 oh Jun 27 20:30:59 good :D Jun 27 20:31:25 maybe Jun 27 20:31:46 haeffb: so, have you figured out which of the many ways you're going to try first? Jun 27 20:32:15 event.target.getElementsByClassName or getElementsByName do not work Jun 27 20:32:49 event.target.className works Jun 27 20:32:54 no get Jun 27 20:33:03 hmmm...that doesn't seem correct...it's a freaking element Jun 27 20:33:12 how do I log an HTMLDivElement? Jun 27 20:33:27 didn't you copy my debug stuff the other day? Jun 27 20:33:33 debugObject(event.target); Jun 27 20:33:43 be prepared for lots of scrolling Jun 27 20:35:33 scroll scroll scroll Jun 27 20:35:38 looks like target is giving me the list. Jun 27 20:35:45 try currentTarget Jun 27 20:36:09 same Jun 27 20:36:17 erg Jun 27 20:36:43 Mojo.Event.listen(this.controller.get('targets'), Mojo.Event.listTap, this.handleListTap.bind(this)); Jun 27 20:36:55 if (event.item.ID == -1) { Jun 27 20:37:07 no, wait... Jun 27 20:37:14 currentTarget might be.. Jun 27 20:37:22 item is my list element Jun 27 20:37:54 no, it's got the whole list as well. Jun 27 20:38:16 event.originalEvent.target? Jun 27 20:38:41 haeffb: is it an listTap event handler? Jun 27 20:39:21 event.originalEvent.target should eb the list DOM element, event.item is the item from your list array Jun 27 20:39:59 yes, listTap Jun 27 20:40:44 BigBiff nailed it Jun 27 20:40:50 event.originalEvent.target Jun 27 20:41:19 nope Jun 27 20:41:25 hehe Jun 27 20:41:25 what do you need? Jun 27 20:41:45 in this case, I'm tapping on an icon in the list element. originalEvent.target gives me the icon. Jun 27 20:41:51 shall I post you my listTap handler? Jun 27 20:41:54 my event.originalEvent.target.getElementsByClassName() is there Jun 27 20:42:02 oh Jun 27 20:42:19 .parent(). Jun 27 20:42:25 ok, you get the icon, what do you need? Jun 27 20:42:32 the whole div? Jun 27 20:42:49 still think you should give it a unique id Jun 27 20:43:06 based on the id of your record which you display inside this list element Jun 27 20:43:10 no parent... .up() Jun 27 20:45:07 MetaView: I'm starting to lean that direction... Jun 27 20:45:35 yeah, I forgot you have a bunch of icons in there, I just have a couple of divs in my lists Jun 27 20:46:12 * BigBiff likes the unique ids Jun 27 20:48:00 or Name[event.index] Jun 27 20:48:01 >sigh< I'm getting close but my scroller just won't do right. Jun 27 20:48:12 Roy-Pre101: what's wrong with it? Jun 27 20:48:36 Now it goes down over my footer. I still have to manually set one height but that's OK. Jun 27 20:48:36 event.originalEvent.target.up() appears to be giving me the correct HTMLDivObject Jun 27 20:48:56 I've tried adding a margin-bottom to the enclosing div but that doesn't work. Jun 27 20:49:07 haeffb: it will or parentElement(), but if tap a different part of the entry, it might not Jun 27 20:49:18 depends on your layout, I guess Jun 27 20:50:04 Roy-Pre101: what about wrapping the scroller in another div that has fixed positioning...then set top and bottom explicitly, and scroller height to 100% Jun 27 20:50:12 I only want to show/hide on the icon tap... Jun 27 20:50:28 parentElement is not a function, it's a property Jun 27 20:50:37 so that will work, then, or you can do unique IDs Jun 27 20:50:46 sugardave: I tried that, I believe. Jun 27 20:51:08 I currently have a scroller that needs to end at 90px from the bottom Jun 27 20:51:23 and I think that's the strategy I used Jun 27 20:52:32 works: Jun 27 20:52:32 curDrawer = event.originalEvent.target.up().getElementsByClassName('testnote')[0]; Jun 27 20:52:33 curDrawer.hide(); Jun 27 20:52:39 w00t Jun 27 20:53:35 MetaView: you have to understand that I wield the hugest, bluntest tools when I code :D Jun 27 20:53:56 I wonder how it comes: I have 2 listselectors which doesn't show the normal lists but a bunch of drawers Jun 27 20:54:30 Roy-Pre101: want to paste your HTML and CSS? Jun 27 20:54:36 MetaView: I've been tossing out my drawers...maybe they landed in your listSelectors Jun 27 20:54:42 maybe Jun 27 20:54:47 but not by intention Jun 27 20:54:49 sugardave: I can. It'll probably scare people. Jun 27 20:54:55 you should see mine Jun 27 20:54:56 I wonder what I might made wrong Jun 27 20:54:56 :D Jun 27 20:54:57 I'll do it when I get home later. Jun 27 20:55:25 I added 3 palm-rows in a palm-list dynamically Jun 27 20:55:37 each palm-row has a listselector Jun 27 20:55:42 I'm pretty sure this client's application falls into the "way over-engineered" category Jun 27 20:56:00 what? Jun 27 20:56:04 c'mon now sugardave, you know there's no such thing Jun 27 20:56:33 maybe I have to do the initiating of the widgets after I'm done with my DOM manipulating? Jun 27 20:57:03 discombobulate: heh Jun 27 20:57:28 for what it does, it's pretty advanced Jun 27 20:57:46 well, advanced for me, I should say :P Jun 27 20:57:58 i'll have to take your word for it Jun 27 20:58:13 MetaView: you can't manipulate DOM elements that don't exist yet...so that's probably it Jun 27 20:58:56 no, I add them, then I initiate them, but it still has the drawers inside the popup list Jun 27 21:00:09 MetaView: weird...DRAWERS SUCK Jun 27 21:01:42 wanna have a look? Jun 27 21:02:51 http://www.pastebin.org/362420 Jun 27 21:02:54 sure, I can look at it....not sure how much help I will be :D Jun 27 21:03:10 it's the setup from prefs-assistant.js from calendar Jun 27 21:04:13 it should create a
...
...
...
Jun 27 21:05:46 fancy.. Jun 27 21:06:28 MetaView: I'm not sure, but you are recreating Div2 Div3 and Div4 as div elements after you already appended them to Div1, Div2, and Div3 Jun 27 21:06:33 is that by design? Jun 27 21:06:43 yes Jun 27 21:06:47 oh, you're just re-using vars Jun 27 21:06:48 can't I do it? Jun 27 21:06:49 okay Jun 27 21:07:14 it looks perfect until I tap on list 2 and 3 Jun 27 21:07:20 list 1 works perfectly Jun 27 21:08:24 even if I repeat div1 = new() it will not work, maybe it's somethign other, in a differetn function Jun 27 21:08:54 goodnight everyone Jun 27 21:10:44 MetaView: you have broken my brain Jun 27 21:11:00 hm, sry Jun 27 21:13:05 MetaView: what happens if you reverse the append order, so append 4 to 3, 3 to 2, then 2 to 1? Jun 27 21:13:53 will try asap Jun 27 21:14:43 I don't think it will matter, but that's how I keep track of it in my head when I do DOM in js Jun 27 21:14:52 now I removed the first list (which was working) and still the remaining 2 lists are broken Jun 27 21:16:12 whch sounds like the choices might be wrong in a way, but I even set the choices from list 1 to list 2, and they appeared wrong Jun 27 21:16:16 I haven't used ListSelectors, but it looks like they don't use a template....what do those choices arrays look like? Jun 27 21:16:38 arrays of label/command Jun 27 21:17:22 and are all of them flat like the first one, or do they have sub-items or whatever you call them? Jun 27 21:17:42 no subitems Jun 27 21:17:48 I post them Jun 27 21:18:37 http://www.pastebin.org/362441 Jun 27 21:19:26 will try to add 2 and 3 somewhere else, but not today anymore, g'night Jun 27 21:19:35 night Jun 27 21:26:05 Ive got a a quesiton about the 1ghz overclock Jun 27 21:26:11 do you need a particular version of govnah? Jun 27 21:26:22 Garage: better off asking in #webos-internals Jun 27 21:26:58 ok Jun 27 21:28:06 ahh, it's 430pm here, time for me to wake up Jun 27 21:39:47 hrm, my app is acting differently on my phone than in the emulator Jun 27 21:40:23 SOP, my friend Jun 27 21:40:29 SOP? Jun 27 21:40:38 standard operating procedure Jun 27 21:40:41 ahh Jun 27 21:42:00 evening folks, first-time webos dev here Jun 27 21:42:24 is there a standard way to assign data to use in a template, or accessing properties of the assistant? Jun 27 21:42:37 or are templates passive Jun 27 21:42:46 mercutio: do you mean list templates? Jun 27 21:43:03 sorry, i mean views in general Jun 27 21:43:21 when the user goes "back" from the data entry screen it calls model changed and updates the db with whats entered... i think by the time the db update is called the ptrThis from the add screen is already removed from the stack so it cant call modelChanged.. wait.. my ptrThis is coming from the add scene and not the list scene.. ok i dont know why its working at all - goes into hiding Jun 27 21:43:50 mercutio: I've only played with templates outside of the list widget once...basically they work the same, though Jun 27 21:44:06 you pass an object to the template and the properties of that object can be displayed by putting Jun 27 21:44:12 #{property} in the HTML Jun 27 21:46:01 yah, I've done that in list templates so far, that's pretty cool. I'm now going from a list item to a single scene showing full details of that item, and wondering how to pass the data for the single item into the view Jun 27 21:46:47 IIRC, when you Mojo.View.render, there is a 'collection' property you can set...that should have the object(s) you want to get properties from Jun 27 21:48:23 ah, that sounds like it makes sense, I've not called the render yet, just relying on it rendering the default named scenes Jun 27 21:48:29 * mercutio shall investigate - cheers :D Jun 27 21:48:33 have fun Jun 27 21:49:07 that's the goal :D Jun 27 21:51:15 is there a way to see the log file when your running your app on a device? Jun 27 21:51:36 EmmettLollis: now there is, you lucky, lucky dog Jun 27 21:51:47 oh really? how? Jun 27 21:51:52 palm-log and some options Jun 27 21:52:03 you have to set the log-level to info first Jun 27 21:52:17 then it's palm-log -f com.your.app.id Jun 27 21:52:54 or change all your debugs to error level and novaterm to the device, tail the log Jun 27 21:53:12 ohh cool Jun 27 21:55:15 i think i'll do the error level method Jun 27 21:56:38 damn, I suck with code revisioning....I need to come up with a better method Jun 27 21:59:32 try wolvenhaven's patented coding method Jun 27 21:59:49 drink a beer, drink a beer, drink a beer, drink a beer, drink a beer, piss, code Jun 27 21:59:58 heh Jun 27 22:00:10 but that leaves one beer Jun 27 22:00:21 you drink that at the end when you're done Jun 27 22:00:29 oh, makes sense Jun 27 22:00:32 or to top up your creativity juices if the coding takes hours Jun 27 22:00:49 that's how i write all my computer programs, essays, and projects Jun 27 22:01:01 consistency is the key Jun 27 22:03:17 maybe some vodka would help me code better Jun 27 22:06:58 beer code beer Jun 27 22:07:06 one to start and one to finish Jun 27 22:07:26 i need like 5-6 to feel anything, otherwise i might as well drink water Jun 27 22:18:32 :D Jun 27 22:18:35 Ich bin heir Jun 27 22:18:40 *hier Jun 27 22:47:22 anyone know of a good list reorder example? Jun 27 22:48:41 reorder:false Jun 27 22:48:45 :p Jun 27 22:48:56 actually Jun 27 22:49:06 hah Jun 27 22:49:23 i setup a reorder list but i was swapping to/from... doesnt quite work right lol Jun 27 22:49:31 come to think of it, I've never used lidt reorder option Jun 27 22:50:01 guess i can move from to to, then somehow shove the rest of the list down Jun 27 22:50:19 i dont like routines that require that much thought Jun 27 22:50:56 list reordering should be handled by the widget? Jun 27 22:50:56 does mojo matters have a basic example? Jun 27 22:51:00 I think so Jun 27 22:51:25 well I don't think it changes the model does it? Jun 27 22:51:32 I think so.... Jun 27 22:51:46 I could be wrong Jun 27 22:51:49 i'll check it out Jun 27 22:51:52 cool, then I should use it Jun 27 22:51:53 it's been known to happen Jun 27 22:51:59 lol Jun 27 22:52:16 i was googling for it last night couldnt find anything useful Jun 27 22:52:29 swapping works fine for 2 items Jun 27 22:52:36 I just assumed it would take 20 'if's Jun 27 22:52:41 its moving 3 to 1 that it gets hairy Jun 27 22:53:04 I think I used list reorder in my personal gamefly queue manager app Jun 27 22:54:39 EmmettLollis: I have an example Jun 27 22:55:08 sweet Jun 27 22:55:53 whats sad is when i placed in the regional programming contest when i was 18 the code i wrote was a list reorder Jun 27 22:56:00 my mind is fading :( Jun 27 22:56:24 the event yields fromIndewx and toIndex Jun 27 22:56:27 http://webos.pastebin.com/X7ebMB7K Jun 27 22:56:28 it's very helpful Jun 27 22:57:24 http://www.linux-mag.com/id/7563 Jun 27 22:57:30 ohh Jun 27 22:57:37 didn't see haeffb Jun 27 22:57:46 what i did last night was swap to/from... didn't quite work for more than 2 items lol Jun 27 22:57:50 * haeffb is nearly invisible Jun 27 22:58:02 ninja-like Jun 27 22:58:56 hmmm...their method seems simpler Jun 27 22:59:15 biff, i've been using that sample app a lot... couldn't find the reorder... must look again cause it says its in there Jun 27 22:59:37 it's there, down deep Jun 27 23:00:15 but like I said, I've never done reorder Jun 27 23:00:20 :) Jun 27 23:00:29 according to them, it doesn't update the model...but I'm not sure that's true Jun 27 23:00:32 i see it... its the same logic as i'm using now thats broken Jun 27 23:00:39 I'm looking at my code and I don't think I had to move stuff around Jun 27 23:00:46 nope, it doesn't update the model at all Jun 27 23:01:13 my comment when i was writing the code... // swap our list items since the widget isn't smart enough to do it Jun 27 23:01:39 nah, their method doesn't make any sense at all Jun 27 23:01:47 oh, my bad...using my widget extensions, yes, you just re-set the model with event.model Jun 27 23:02:08 ??? event.model???? Jun 27 23:02:12 yep Jun 27 23:02:20 thats not documented Jun 27 23:02:30 and your point is.... Jun 27 23:02:32 just says, index, from, to Jun 27 23:02:32 ? Jun 27 23:02:32 ahh, so thay handler is unnecessary? Jun 27 23:02:36 ssshhhh....don't tell anyone! Jun 27 23:02:43 will try it now Jun 27 23:02:55 there's loads of stuff in events that's not documented Jun 27 23:03:07 event is huge Jun 27 23:03:12 * haeffb thinks the splice works well. Jun 27 23:03:13 BigBiff: well, I'm doing it in the reorder handler Jun 27 23:03:28 gamesOnList.set_model(event.model); Jun 27 23:03:40 inside my handler before I send the AJax to gamefly Jun 27 23:03:41 cool Jun 27 23:03:47 note set_model() is mine Jun 27 23:03:56 I must steal... Jun 27 23:04:13 sugardave: it contains the entire list model? Jun 27 23:04:18 you want my extended widgets? they're on webos101 Jun 27 23:04:33 haeffb: I think so....looking at this code seems to imply it does Jun 27 23:04:49 interesting Jun 27 23:05:12 am I the only one who thinks the code in the linuxmag article doesn't work? Jun 27 23:05:24 I didn't read it that hard Jun 27 23:05:36 I've used bits and pieces Jun 27 23:05:47 looks to me like they're just swapping the items at fromIndex & toIndex. Jun 27 23:05:58 not really reordering the list model Jun 27 23:06:35 so.... 1 2 3 4 5 6 and I move 2 to between 5 and 6, they give me 1 5 3 4 2 6 Jun 27 23:06:37 looks that way... probly why I just reorderable:false Jun 27 23:06:44 haeffb, i'll confirm it doesnt work Jun 27 23:06:52 when I want 1 3 4 5 2 6 Jun 27 23:06:56 someone want to point me in the right direction to putting a countdown to a specific date in a scene? Jun 27 23:07:03 EmmettLollis: use the code I pastied. Jun 27 23:07:34 haeffb: ur next app: Jun 27 23:07:47 comb through the irc logs Jun 27 23:07:54 haha Jun 27 23:07:57 haeffb will do Jun 27 23:08:05 discombobulate: that's a pretty broad one... Jun 27 23:08:10 for super tutorial app Jun 27 23:08:22 BigBiff: too hard to find the code that actually works... :) Jun 27 23:08:26 hrm Jun 27 23:08:28 hahaha Jun 27 23:08:30 hehe Jun 27 23:08:32 http://www.javascriptkit.com/script/script2/count2.shtml Jun 27 23:08:49 first result from Google "countdown to date javascript" Jun 27 23:09:05 always the simple stuff Jun 27 23:09:11 well I think we logged all the properties of 'event' today Jun 27 23:09:19 BigBiff: not even close Jun 27 23:09:21 not even close Jun 27 23:09:33 debugObject(event) will prove you very very wrong Jun 27 23:09:35 hehe Jun 27 23:09:42 there's stuff in there that you can't say in front of your mother. Jun 27 23:09:45 I've never tried it Jun 27 23:10:17 I've tried toJSON for event Jun 27 23:10:22 errors out Jun 27 23:10:23 too long Jun 27 23:10:31 ya Jun 27 23:10:50 sugardave: I really like the drawer functionality - styling, animation, etc. Jun 27 23:11:00 that's why you need better debug methods Jun 27 23:11:02 wonder if I can style my div to look just like a drawer Jun 27 23:11:23 haeffb: I don't see why not...-webkit-transition and all that Jun 27 23:11:56 not sure how well transition works with .hide()....might need to make it be a 0px height instead of hidden? Jun 27 23:12:07 I don't have to have the animation...just the styles will be OK...going spelunking.... Jun 27 23:12:35 sugardave: 'better' debug methods implies I have 'any' debug methods Jun 27 23:12:57 I've pasted mine twice in the last 5 days or so :P Jun 27 23:13:11 debugError, debugString, and debugObject...all you need :D Jun 27 23:13:29 noted Jun 27 23:13:41 BigBiff sure wishes I'd finish this "comb thru the logs" app. Jun 27 23:13:49 yes Jun 27 23:14:03 and Jun 27 23:14:13 it tests the methods for u Jun 27 23:14:22 BigBiff: http://webos.pastebin.com/NuvCH7KK Jun 27 23:14:29 ok, chop chop, get to work Jun 27 23:14:46 indlude that at the top of sources.json and give /var/log/messages a REAL workout Jun 27 23:14:57 fyi, palm-drawers live in global-lists.css Jun 27 23:15:19 better feed it some carbs first. Jun 27 23:15:44 debugObject only spits out the top-level of properties, so if you have nested objects, you'll have to run it again on those Jun 27 23:20:14 using drawer styles works just fine... just no animation. Jun 27 23:21:29 I think you could cheat it with setting the list entry's div to height 0 and use -webkit-transition Jun 27 23:23:00 the cat5 i bought is 2ft too short Jun 27 23:23:02 fail Jun 27 23:23:09 lame Jun 27 23:23:25 14ft or 25ft, i got the 14ft Jun 27 23:23:44 and it's literally hanging down from my ceiling 2ft from where it needs to be Jun 27 23:25:01 sounds like you need to sit on a couple of phone books Jun 27 23:25:19 lol Jun 27 23:25:25 i need to find an extention connector Jun 27 23:25:43 i just love how when you search on the palm developer center it returns 600 of the same page Jun 27 23:25:53 I need a simple app idea that will make me a lot of money Jun 27 23:25:56 go Jun 27 23:26:28 porn Jun 27 23:26:34 gps locator of a companies fleet of vehicles Jun 27 23:26:34 palm search engine is impeccable Jun 27 23:26:42 no wait Jun 27 23:26:43 oh, and it has to be able to go in the catalog Jun 27 23:26:46 track employees Jun 27 23:26:49 softcore porn Jun 27 23:27:11 I already have an app idea for that magic day when we can have adult apps Jun 27 23:27:26 can't you put adult apps on precentral? Jun 27 23:27:28 they already have a few "personal massager" apps Jun 27 23:27:45 you can't make a lot of money on precentral Jun 27 23:27:46 or just put it on sourceforge and let us compile it Jun 27 23:27:47 Wolvenhaven: I could, but I can't make money there Jun 27 23:27:51 true Jun 27 23:28:08 I"m greedy Jun 27 23:28:08 you could sell it yourself Jun 27 23:28:40 hell, a porn app with advertising would make you tons of money Jun 27 23:32:35 true. porn with ads would be a money maker. probably more than RadioTime. Jun 27 23:33:08 only questions is if precentral would allow it... if not, you'd have to create your own feed for Preware Jun 27 23:33:49 hmmmm..... Jun 27 23:33:56 nah Jun 27 23:34:36 or you could just sell the package on your own website and make them download it Jun 27 23:35:03 there's a huge flaw with that model Jun 27 23:35:08 oooh, i might have figured out a way to reorder without storing the sort order... going to try to code it Jun 27 23:35:27 EmmettLollis: I think you're making this harder than it needs to be Jun 27 23:35:30 in search trees? Jun 27 23:36:00 pretty sure event.model is the re-ordered list model Jun 27 23:36:21 i did a toJSON on it and it had the original order Jun 27 23:38:26 http://twitter.com/Queen_UK/status/17171854474 Jun 27 23:38:28 heh Jun 27 23:38:43 curDrawer = event.originalEvent.target.up().up().up().up().getElementsByClassName('note-container')[0]; Jun 27 23:38:51 up up up up and away!!! Jun 27 23:38:56 hahaha Jun 27 23:38:59 lol Jun 27 23:39:46 wtf Jun 27 23:39:53 why do you have 4 ups? Jun 27 23:39:59 EmmettLollis: so, I'm looking at my code again...if I strip away all the debug and Ajax stuff, all it does is widget.model = event.model; Jun 27 23:40:10 cuz it works that way Jun 27 23:40:26 Hello Jun 27 23:40:35 hrm, i will to another object to json on it Jun 27 23:40:38 i wish it was in C, not javascript :P Jun 27 23:40:40 Anyone here an expert at Ares? Jun 27 23:40:48 twbbas: EmmettLollis is Jun 27 23:41:02 Hey EmmettLollis, can I ask you a question? Jun 27 23:41:04 heh, beginning expert lol Jun 27 23:41:08 yes you can Jun 27 23:41:10 Lol probably better than me Jun 27 23:41:22 How can I make a second line in a list item? like how Preware can show the price/developer Jun 27 23:41:32 or how the App Catalog can show the developer/price Jun 27 23:41:48 I asked in here yesterday and people said to use divs but that's when using the SDK Jun 27 23:41:49 twbbas: in Mojo, you just make it part of the list template HTML Jun 27 23:41:53 * haeffb is prettysure there is an easier way to get the DOM element for the tapped list item Jun 27 23:42:01 Is that for Ares too? Jun 27 23:42:04 haeffb: I think you are right Jun 27 23:42:40 twbbas.. havent dont that before... maybe a newline character? Jun 27 23:42:44 getNodeByIndex index Return top level node for the list item of the given index. Returns undefined if the item does not exist or is not currently rendered. Jun 27 23:43:03 that should work, but it just gives me "undefined" Jun 27 23:43:03 newline character? What's that? =p Jun 27 23:43:17 in c it's \n Jun 27 23:43:21 twbbas: is there no template.html file you have to make for lists in Ares? Jun 27 23:43:21 Oh yeah Jun 27 23:43:34 in html it's
Jun 27 23:43:36 yeah there should be a template option Jun 27 23:43:39 sugardave, I don't think so Jun 27 23:43:42 Let me check Jun 27 23:43:52 its under settings Jun 27 23:44:11 Yea I see it Jun 27 23:44:13 How would I use it now? Jun 27 23:44:19 I have to make the file? Jun 27 23:44:25 listTemplateFile Jun 27 23:44:37 yep, you make a template file that has the divs and such you want for each item in the list Jun 27 23:44:46 Ok thanks Jun 27 23:44:53 Thanks to both of you :D Jun 27 23:44:58 np Jun 27 23:45:16 hey, anytime you want misinformation you can always come to me Jun 27 23:45:37 lol Jun 27 23:46:07 my mind always reverts back to 1998 when i'm coding :/ Jun 27 23:46:15 no wait 94 Jun 27 23:49:05 sugardave: i just looked at my objecttojson on event.model and it's got the original list Jun 27 23:49:29 meal 1, meal 2, meal 3 Jun 27 23:49:50 i think i figured out a way i can sort without storing the sort order though Jun 27 23:50:04 had to draw it out on paper Jun 27 23:50:25 EmmettLollis: did you try the splice? Jun 27 23:50:57 sugardave: this works... Jun 27 23:50:58 curDrawerNode = this.controller.get('taskListing').mojo.getList().mojo.getNodeByIndex(event.index); Jun 27 23:50:58 curDrawer = curDrawerNode.getElementsByClassName('note-container')[0]; Jun 27 23:51:25 I had to add the mojo.getList() in there because this is a filterList Jun 27 23:51:36 on a normal list, that wouldn't be necessary Jun 27 23:52:40 aha, okay Jun 27 23:52:42 cool Jun 27 23:52:42 sugardave, EmmettLollis: Wow, this is A LOT easier than I thought it would be but I'm running into a small problem. I'm adding #{property} in the row but it just adds another normal row, not a smaller text line in the same row like I want. Any ideas? Jun 27 23:52:58 twbbas: apply a style to it Jun 27 23:53:06 use CSS style. Jun 27 23:53:07 and then css it how you want Jun 27 23:53:12 er a class Jun 27 23:53:20 'palm-info-text' might work Jun 27 23:53:45 Thanks, I was meaning to learn the CSS styles before I release this so now is a good time :D Jun 27 23:53:51 hehe Jun 27 23:54:00 yeah, I've avoided CSS for a LOOOOOONG time Jun 27 23:54:04 not anymore, though Jun 27 23:54:11 haeffb is black Jun 27 23:54:15 * sugardave finally had a mini-breakthrough. Jun 27 23:54:38 sugardave: CSS is your best friend Jun 27 23:54:56 well, I wouldn't go that far...it's more like a drug dealer Jun 27 23:55:20 but even the first one ISN'T free Jun 27 23:55:26 * haeffb is personally acquainted with CSS, but we don't hang out & drink beer Jun 27 23:55:51 sugardave: Well my drug dealer is my best friend, sooooo.... Jun 27 23:56:00 hmmm....work on a PayPal library or an app.... Jun 27 23:56:47 * haeffb trying "pseudo-drawers" on the device Jun 27 23:56:57 IT'S GOING TO WORK Jun 27 23:57:01 I can feel it Jun 27 23:57:27 it WORKS! Jun 27 23:57:45 need to use scrollTo to get back to the original list item if the note is long... Jun 27 23:57:46 so git....you just make new git "repos" anywhere you want? How can you find all of your git repos? Jun 27 23:57:55 haeffb: awesome Jun 27 23:58:59 lolol Jun 28 00:00:04 this.controller.get('taskListing').mojo.getList().mojo.revealItem(event.index); Jun 28 00:00:40 DONE! Jun 28 00:00:58 works like a m-f'ing charm. Jun 28 00:00:58 like magic Jun 28 00:02:42 looks just like the original drawers, sans animation. Jun 28 00:02:42 brilliant! Jun 28 00:03:02 I bet you can make it animated Jun 28 00:07:31 no need. Jun 28 00:14:53 ugh.. up to chapter 7 in this C++ book and ive only learned a little that i didnt already know from other langauges Jun 28 00:22:50 * BigBiff haven't sen mojo.getList Jun 28 00:23:05 * BigBiff intrigued Jun 28 00:27:29 haeffb: This sounds like something you should document on webos101.com Jun 28 00:27:48 BigBiff: for a filterList... this.controller.get('myFilterList') returns the filterField & List. getList() gives just the list part. Jun 28 00:28:06 his new app auto documents to webos101 Jun 28 00:28:15 ahhhh Jun 28 00:28:18 cool Jun 28 00:28:35 maybe only for multi-stage apps...can't remember for sure... Jun 28 00:28:47 I know I fought it for a long time Jun 28 00:28:47 whoa.. Jun 28 00:29:34 FilterList in a Scroller Jun 28 00:29:34 If you disable the scene scroller by using, for example, this.controller.stageController.pushScene({name: 'myScene', disableSceneScroller: true}); and put the FilterList inside a custom scroller, webOS has trouble finding the listWidget. The last few lines above have to be modified as follows: Jun 28 00:29:59 it's when it's inside a scroller other than the default scene scroller. Jun 28 00:30:13 and that's already documented on webos101... :) Jun 28 00:31:54 so, should "Pseudo-Drawers in a List" go in Drawers, Lists, or Misc? Jun 28 00:39:44 Drawers 2.0 Jun 28 00:42:54 funky Jun 28 00:43:39 meep Jun 28 01:03:30 Has anyone seen Daren from aleph communications? (I can't remember his nick.. it's like.. dwbimbe or something) Jun 28 01:04:50 woohoo! Done! is a weboOSroundup "Top Pick" Jun 28 01:11:50 so in Eclipse can you not change the appinfo.json after you make the project? Jun 28 01:13:00 sugardave: I have no problem changing it? Jun 28 01:13:22 I change it a lot! Jun 28 01:13:29 I wanted to change my display title in the app menu...changed title in appinfo and also the html title attribute...no dice Jun 28 01:13:48 Probably need to reboot emu or delete & reinstall app Jun 28 01:14:10 yep, looks like it Jun 28 01:15:28 need some help. Package Manager Service is not showing up in WebOS quick install. Jun 28 01:15:38 i have an AT&T Palm Pixi Plus Jun 28 01:17:03 alcane: check with #webos-internals Jun 28 01:18:06 alcane: but the answer is, you don't need package manager service anymore Jun 28 01:18:15 oh! Jun 28 01:18:18 oops :D Jun 28 01:18:25 really? Jun 28 01:18:34 so how would I install preware? Jun 28 01:18:50 http://install.preware.org Jun 28 01:19:14 what he said Jun 28 01:19:21 Ignore any and all other information on the internet about Preware, cause it's all out of date. Jun 28 01:19:49 yea, it looked like it, lol Jun 28 01:20:13 cool, didn't know there was another way to install besides 'quick install' Jun 28 01:20:14 br Jun 28 01:20:16 brb* Jun 28 01:20:29 Caused by people who don't remember that the WWW was designed for linking, not copying. Jun 28 01:20:39 haha Jun 28 01:21:38 But its the internet! Jun 28 01:22:13 webOS calendar becomes "useless" when you change timezones? Jun 28 01:22:21 according to this tweet... Jun 28 01:23:45 sugardave: try it! Jun 28 01:23:46 Monopoly time Jun 28 01:26:48 dang, how long does the sh preware-bootstrap take? lol Jun 28 01:26:59 who wants to review "Pseudo-Drawers-In-A-List" ? Jun 28 01:27:03 http://www.webos101.com/Pseudo-Drawers_In_A_List Jun 28 01:40:18 http://www.sugardave.com/blogs/sugardave/06-27-2010/webos-and-mojo-my-first-year Jun 28 01:40:38 * haeffb <--- everybody but this guy! Jun 28 01:57:20 iunno if it's just the way i'm aproaching this, but i really feel like i'm coding in VB Jun 28 01:57:33 and i hate VB Jun 28 02:00:02 then it sounds like you're doing it wrong Jun 28 02:00:40 putting in UI elements, then going to a different area and coding the function of those elements Jun 28 02:01:02 oh .. what's wrong with that ? Jun 28 02:01:11 it just feels like VB Jun 28 02:01:26 isn't that just doing a typical MVC with drawing out your interface instead of programmatically creating it ? Jun 28 02:06:05 i guess Jun 28 02:06:16 it just feels weird, i've spent the last two years doing c++ stuff Jun 28 02:06:27 MVC is good for you Jun 28 02:07:10 you don't like drawing out your interfaces ? Jun 28 02:07:11 i started out doing webdev, but it was all php Jun 28 02:07:23 you're using ares or something ? Jun 28 02:07:42 no, i'm still doing the UI by hand, i was talking about the separation between front and back end Jun 28 02:08:49 oh, ok Jun 28 02:09:02 i guess i'm just used to serving up everything through the code and not saying
and then having a different area where it's "button one does something" Jun 28 02:09:15 oh, that's MVC tho Jun 28 02:09:23 i'm used to having all the code together Jun 28 02:09:47 you generally get better reuse and less spaghetti code if you follow MVC Jun 28 02:10:21 yea, i'm not saying it's bad, i'm just not used to it Jun 28 02:10:34 and it makes my head hurt :P Jun 28 02:10:55 i keep forgetting where i am and coding stuff in the wrong spot Jun 28 02:11:10 Wolvenhaven: it gets easier Jun 28 02:11:26 i started writing php code last night Jun 28 02:11:32 i was so out of it Jun 28 02:11:49 wrote like 3 php functions Jun 28 02:11:56 sat there and went "wait... that's not right" Jun 28 02:11:59 yeah, that doesn't work too good Jun 28 02:13:01 omg, my display is freaking out Jun 28 02:13:06 reboot time Jun 28 02:13:09 i was however successful in killing my emulated pre Jun 28 02:19:36 damn I thought I was on to something Jun 28 02:19:53 you are not authorized for bluetooth pan, please contact sprint Jun 28 02:33:07 just got some nice lightning shots :) Jun 28 02:35:01 wb sugardave Jun 28 02:35:24 rehi Jun 28 02:35:58 i got distracted from my app for a few hours Jun 28 02:36:12 storms rolled in, had to get some shots Jun 28 02:36:44 ooh that give me an app idea Jun 28 02:36:51 go bury rebar in the ground Jun 28 02:37:00 and set up a camera on a reed switch trigger Jun 28 02:37:04 you get some awesome shots Jun 28 02:38:02 i've got lightning down now Jun 28 02:38:13 even got some daylight strikes Jun 28 02:38:50 hmm, is it possible to write a multifunction app on one screen? Jun 28 02:39:16 by hiding and revealing different parts Jun 28 02:39:30 seems like you could Jun 28 02:39:33 sure Jun 28 02:40:20 cause i don't want to put a scroller in, and i've got too much stuff for it all to fit on the page at once Jun 28 02:41:08 Wolvenhaven: just wait for the tablet device - you can fit all kindso' stuff on there! Jun 28 02:42:19 The PreTab! Jun 28 02:42:24 Then the PreTab Plus! Jun 28 02:42:46 webOSlate Jun 28 02:42:52 oo nice Jun 28 02:43:00 hmm Jun 28 02:43:08 nah. webOS late ? Jun 28 02:43:16 my mom needs a new computer, and she's so illiterate with technology that might not be a bad idea Jun 28 02:43:17 Yea, I saw that too at first Jun 28 02:43:24 we were thinking either ipad, or one of the android tablets Jun 28 02:43:40 i'm in favor of android, but webos would be great, cause i could write stuff to automate all the shit she does Jun 28 02:43:53 hey, can we charge more for apps since the slate has a bigger screen? Jun 28 02:43:55 heh, my mom has a jitterbug phone Jun 28 02:44:03 Yeah! Just make them "HD" lol Jun 28 02:44:09 Lmao Jitterbug Jun 28 02:44:11 can't even edit contacts on it Jun 28 02:44:17 My Grandma had that Jun 28 02:44:27 The only number she had programmed into it was 911 Jun 28 02:44:37 couldn't remember the number? Jun 28 02:44:48 Lol we set it up so if she pressed 6 it would dial 911 Jun 28 02:44:49 my dad is a computer engineer, i'm compsci, she gets so PISSED when we try to teach her how to use stuff, if it doesn't work, it's the stupid computers fault, even if she's doing it wrong and refuses to learn Jun 28 02:44:59 so she always calls us in to fix something or get it to work Jun 28 02:45:05 and she breaks windows in a month or so Jun 28 02:45:17 so we want to get her an idiot and malware proof tablet Jun 28 02:45:21 Sounds sort of like my mother =p Jun 28 02:45:24 one time i had someone who deleted their windows folder Jun 28 02:45:30 haha Jun 28 02:45:39 Doesn't it give you tons of warnings when you try to delete it? Jun 28 02:45:42 well, just some of the dll's Jun 28 02:45:43 no Jun 28 02:45:46 Wolvenhaven: http://www.thinkgeek.com/tshirts-apparel/unisex/itdepartment/388b/ Jun 28 02:45:49 this was like win95 Jun 28 02:45:52 oh ok Jun 28 02:46:13 i have no money right now or i'd get that :P Jun 28 02:46:30 i just spent $400 on a pistol and ammo Jun 28 02:46:49 so i gotta hold off on non-needed spending right now Jun 28 02:51:49 well, you can make money with your pistol Jun 28 02:55:24 i like not breaking the law or being shot Jun 28 02:56:19 plus it's a 57 year old commie pistol, and 50 year old commie ammo Jun 28 02:56:22 i wouldn't trust it :P Jun 28 02:56:22 trick shooting demos Jun 28 02:56:52 it's just for me to get my pistol shooting better before i turn 21 **** ENDING LOGGING AT Mon Jun 28 02:59:57 2010