**** BEGIN LOGGING AT Mon Feb 22 02:59:58 2010 Feb 22 03:10:08 haeffb: i dont have anything with palm-header-spacer Feb 22 03:10:19 weird. Feb 22 03:10:25 just palm-group-title. Feb 22 03:10:38 In your list template? Feb 22 03:10:40 i can remove that, but i still end up with the small grey area Feb 22 03:10:58 hi haeffb! Feb 22 03:10:58 paste your scene and template htmls Feb 22 03:10:59 not there either Feb 22 03:11:02 hi jenp Feb 22 03:11:06 ok, just a sec Feb 22 03:14:32 haeffb:
Feb 22 03:14:33
Feb 22 03:14:33 #{-listTitle} Feb 22 03:14:33
Feb 22 03:14:33
Feb 22 03:14:35 #{-listElements} Feb 22 03:14:37
Feb 22 03:14:40 damn Feb 22 03:14:41 whoa! Feb 22 03:14:47 use http://www.pastie.org Feb 22 03:14:48 wrong - stupid paste Feb 22 03:15:02 http://cobatl027.pastebin.com/d429bf0a0 Feb 22 03:16:27 change your listTemplate to only have:
#{-listElements}
Feb 22 03:17:02 your grouplistcontainer Feb 22 03:17:41 RT - one sec Feb 22 03:19:13 bingo. Feb 22 03:19:17 now its a "naked list" Feb 22 03:19:32 so it was the palm-group style that was doing it. Feb 22 03:22:00 yep Feb 22 03:23:16 haeffb: thanks Feb 22 03:23:44 welcome Feb 22 03:31:15 another question. i have a stylesheet that is being loaded in that scene's html. Feb 22 03:31:34 im trying to override one of palms built in styles. its not taking. Feb 22 03:31:42 is the palm styleshee loaded after mine? Feb 22 03:32:00 no cobalt027 your style sheet should take priority Feb 22 03:32:27 weird, then i must be doing something wrong. :( Feb 22 03:32:55 what are you trying to override? Feb 22 03:33:54 .palm-row title {padding-top:15px; } Feb 22 03:35:57 cobalt027 have you thought about just making your own custom class and using that to override with Feb 22 03:36:53 * haeffb needs a dummies guide to GIMP Feb 22 03:38:56 JenP: thats not a bad idea. Feb 22 03:39:15 cobalt027 it's the easiest way... Feb 22 03:39:25 use palm's row css as your model Feb 22 03:41:15 i just removed the default class of "title" and made it "grouptitle" Feb 22 03:41:30 then i made entries in the css and its lining up now. :) sah-weet Feb 22 03:41:48 smiles..i'm glad it worked Feb 22 03:42:19 now on to the hard part: linking a an action to each list item. Feb 22 03:47:36 cobalt027: a different action? Feb 22 03:52:08 haeffb: just need to get the syntax right of setting of a listen even Feb 22 03:52:22 event* - im using the sample code as my guide. Feb 22 03:52:31 that, and hte mojo framework docs Feb 22 03:54:08 got it. Feb 22 03:54:49 there has been more than one time i wish there was a plugin for eclipse that checked for developer errors. i misspelled something 3 times before i caught it. Feb 22 03:54:57 thats 6 minutes of my life ill never get back. :/ Feb 22 03:55:20 welcome to the club Feb 22 03:55:37 i got the event linked nicely. Feb 22 04:00:53 am i able to pass additional parameters to a new scene? like a data model for a list? Feb 22 04:01:19 yes. Feb 22 04:01:37 is there a syntax example i can peruse? Feb 22 04:01:46 this.controller.stageController.pushScene('myscene', param); Feb 22 04:02:07 then i would just add the param to the setup() declaration? Feb 22 04:02:24 I think to the constructor of the sceneAssistant Feb 22 04:03:04 so: specialscene.prototype.setup = function(modelParam) { ?? Feb 22 04:03:14 or to the main one? Feb 22 04:03:24 that is (so far) always empty? Feb 22 04:03:37 function MySceneAssistant (param) { this.param = param }; Feb 22 04:03:46 supar Feb 22 04:03:47 thanks Feb 22 04:04:55 its too bad eclipse (and the plugins im using) aren't smart enough to refactor the code when i want to rename a scene. Feb 22 04:10:37 find/replace is pretty easy Feb 22 04:10:54 g'night all. Feb 22 04:11:13 haeffb_asleep: sleep well. thanks again Feb 22 04:23:41 Hi everyone Feb 22 04:44:47 hi all Feb 22 04:44:55 hello JenP Feb 22 04:45:07 hey LoneStar99 how ya doing? Feb 22 04:45:26 good, just chilling, might get to coding in abit Feb 22 04:46:05 cool Feb 22 04:47:50 how bout yourself? Feb 22 04:48:10 coding... Feb 22 04:48:19 cool Feb 22 04:48:23 nothing to heavy tonight Feb 22 04:48:44 same, here might work on some code jfelectron code Feb 22 04:49:20 way cool Feb 22 04:49:23 offtopic, and im just being nosey, what timezones are you guys in? im in GMT-5 (EST) Feb 22 04:49:36 PST Feb 22 04:49:52 C Feb 22 04:49:56 PST Feb 22 04:50:15 what is the abbreviation for central time? Feb 22 04:50:19 CNT? Feb 22 04:50:30 still on PST Feb 22 04:50:34 CST i think. Feb 22 04:50:40 central standard. Feb 22 04:50:47 oh yeah Feb 22 04:50:52 thats a guess Feb 22 04:51:01 forgot about the standard part Feb 22 04:51:23 there is a "mountain" time right? US has 4 timesonzes? (the 48 states im talkin) Feb 22 04:51:44 i <3 google: http://www.timezonedistance.com/images/us-time-zone-map.gif Feb 22 04:51:56 yeah Feb 22 04:52:13 mountain pacific central eastern Feb 22 04:52:22 technucally 6 total including alaska and hawaii Feb 22 04:52:23 not in that order tho Feb 22 04:52:23 pacific mountain Feb 22 04:52:30 ya Feb 22 04:52:43 and no time Feb 22 04:54:59 no europe, or asia. intersting. Feb 22 04:55:27 anyone with experience with localizing their app? Feb 22 04:55:44 is channel logged somewhere? there is a lot of good information flying around here, i bet it would be a great place to search for answeres Feb 22 04:56:04 http://logs.nslu2-linux.org/livelogs/webos/ Feb 22 04:56:22 awesome Feb 22 04:56:31 cobalt027: doesn't that appear in the header info of you IRC client? Feb 22 04:57:04 irssi cuts it off. i happen to be in a very narrow term. Feb 22 04:57:13 i do everything thru the console. Feb 22 04:58:38 ahhh Feb 22 05:00:34 man google app engine is pretty sweet if you don't already have a hosting solution and just need a server side backend Feb 22 05:05:34 jfelectron: do they support php yet? Feb 22 05:06:21 LoneStar99: nope...Python and Java only...but you can run a PHP interpreter in the JRE Feb 22 05:07:15 I'm using the Python run-time...been awhile since I Pythoned....the indentation stuff is killing me:) Feb 22 05:09:45 jfelectron: yes to localization Feb 22 05:12:19 haeffb_pre: is it a much of a pain as it seems? So you collect all your $L() and figure out which HTML templates need localized versions and then you have to supply the translations for the $L() manually?? Feb 22 05:13:18 pretty much. I had volunteers do the actual translations Feb 22 05:13:58 I think there is an auto generate that compiles all the $L's Feb 22 05:14:09 heres a tip: Feb 22 05:14:34 don't use any static text in Html's Feb 22 05:14:59 use innerHTML=$L(...) Feb 22 05:15:27 then you don't need multiple scene files Feb 22 05:15:29 i am trying to avoid, any text anywhere except in the app menu, so when the app store opens up, will have minor work to do... atleast i hope Feb 22 05:17:01 Yeah....I think I have strictly javascript strings and if I don't I'll make it such Feb 22 05:17:48 OK, well I think I can handle spanish...but German...uhhh and Canadian.....lol Feb 22 05:18:15 "please press the button...eh?" Feb 22 05:18:33 Submit Aye - Search Aye Feb 22 05:18:40 that was funny Feb 22 05:18:43 Help Aye Feb 22 05:19:00 lol Feb 22 05:19:35 will need to add the maple leaf as well Feb 22 05:20:05 there should be an Elmer Fudd translation as well. Feb 22 05:20:16 Seawch Feb 22 05:20:35 i change my girlfriends default language on google. she flipped out Feb 22 05:20:49 s/change/changed Feb 22 05:27:56 trying to use as many international symbols as possible such as this one: http://funnypictures.punt.nl/upload/oct2006/achtung.jpg Feb 22 05:30:05 wtf is that? Feb 22 05:30:35 children might break through the triangle to wreak havoc upon the world? Feb 22 05:30:49 they look quite happy to be free Feb 22 05:31:53 don't swim in the yellow triangle, or eat the yellow snow Feb 22 08:14:18 good morning Feb 22 08:14:29 morning swisstomcat Feb 22 08:14:36 still awake? Feb 22 08:14:47 just for alittle longer Feb 22 08:16:26 i'm trying to decide which app to work on today Feb 22 08:18:44 lol, that is cool I am starting to have to do the same, decide on which app, what day etc... Feb 22 08:19:19 i see you released your painting app Feb 22 08:19:42 yeah, via web distro, will do tha app catalog tommorrow Feb 22 08:21:03 app catalog is guaranteed more sales Feb 22 08:23:41 swisstomcat: you use app scoop? Feb 22 08:23:58 is that how you knew about the release of coloroo? Feb 22 08:24:49 i saw it in preware Feb 22 08:24:59 oh ok, Feb 22 08:25:00 i tried appscoop but then it stopped working Feb 22 08:25:14 and i check myappbox every day Feb 22 08:25:28 to watch out for competition :) Feb 22 08:25:39 lol Feb 22 08:26:02 and new ideas Feb 22 08:26:09 i used to view appbox alot Feb 22 08:26:17 nice site Feb 22 08:26:53 i'm waiting for an app update, submitted it friday .. bad idea Feb 22 08:27:47 oh on friday, usually will be reviewed tommorrow or tuesday Feb 22 08:34:13 alrignt chat later swisstomcat Feb 22 08:35:49 is there allowed access to the mediaDB service or is that a no no? Feb 22 08:36:12 short of that how else does one browse photos in an app? Feb 22 08:36:23 for uploading... Feb 22 08:36:26 why are there services available that are not in the documentation? Feb 22 08:37:39 because they're not ready for public consumption yet Feb 22 08:37:44 or are private Feb 22 08:38:28 joetweeply: was that a question to my question? Feb 22 08:39:16 well it was just inspired by your question Feb 22 08:39:23 thanks for the answer anyways =) Feb 22 08:41:06 some of them palm developed for their own convenience but they provide things to core services that they don't want apps mucking with Feb 22 08:43:57 good stuff for homebrew and webos-internals to use ;-) Feb 22 08:52:53 rwhitby: yes, of course.....they're really nice encapsulations Feb 22 08:53:20 and I imagine the PDK will allow for some creation of custom services Feb 22 08:54:32 jfelectron: well, we do them now using our WIDK - the big question is which will be accepted by Palm for app catalog. I suspect none unless you are a big player with a business arrangement with Palm like Motion Apps or EA or GameLoft Feb 22 08:54:50 (Preware uses a custom service) Feb 22 08:55:29 yes I'm aware of the ability to make them....just wondering what the layer will be between 'plugins' or other binaries and Mojo apps Feb 22 08:55:35 the official layer Feb 22 08:56:05 the bigger question is what binaries will be alllowed, and how will they be screened for app catalog inclusion. Feb 22 08:56:22 we already know the layer today. dbus and npapi Feb 22 08:57:17 so you could mix pdk and mojo parts of your app and communicate between them? Feb 22 08:57:20 yes, which gets back to how much freedom there will be to create new dbus services....but yeah how big the binary sandbox is will be interesting Feb 22 08:57:43 swisstomcat: we do that today with Terminal - it uses a binary plugin Feb 22 08:57:57 very good Feb 22 08:58:15 for advanced apps Feb 22 08:58:42 rwhitby: does an SDL surface consume an entire card or can you use it to render content within a Mojo app? Feb 22 08:59:58 jfelectron: SDL is entire card at the moment as far as we know from our experiments with SDL games Feb 22 09:00:39 ahhh Feb 22 09:05:33 * swisstomcat slaps forehead Feb 22 09:06:39 talk about changing something in first-assistant.js, headscratching why the app is not behaving any different .. only to realize the stage assistant pushes the second stage, not the first Feb 22 09:06:49 must be monday morning Feb 22 09:32:01 Pictures of the winners at the WebOS Internals booth at SCALE8x: http://twitpic.com/photos/webosinternals Feb 22 09:37:39 cool, going to check them out Feb 22 12:03:56 um. Question! the best way to get a Pré in an unsupported country? Feb 22 12:04:13 (need it GSM and unlocked) Feb 22 12:12:19 in which country are you? Feb 22 12:42:55 anyone tried to close an app via window.close()? Feb 22 13:01:39 hello Feb 22 13:02:27 hello Feb 22 13:03:06 using GPS localisation is something we can rely on or does the mobile owner can decide our app can't do it ? Feb 22 13:05:59 well, he can't deny the usage of GPS Feb 22 13:06:02 can Feb 22 13:06:03 sorry Feb 22 13:06:31 the user can choose to approve every gps-request or to be not asked Feb 22 13:06:40 ok Feb 22 13:06:46 but you'll get error codes back Feb 22 13:06:50 nice Feb 22 13:06:54 thank you Feb 22 13:10:34 when an application is validated by Palm, do we have to enter again is the same validation process for every updates we need to do ? Feb 22 13:12:29 i think so Feb 22 13:12:45 i've submitted an update and the status is "being reviewed" Feb 22 13:14:12 ok Feb 22 13:14:35 this could be painful is something found a bug in our apps and we want to update it quickly Feb 22 13:14:42 s/is/if Feb 22 13:16:48 yeah Feb 22 13:16:57 but otherwise you could slip in bad code in an update Feb 22 13:21:05 that's true Feb 22 13:21:37 any know good practices with unit testing while developping webOS apps ? Feb 22 13:23:15 not yet Feb 22 13:23:19 release a beta Feb 22 13:30:11 ok thanks Feb 22 15:15:31 moin Feb 22 15:20:15 hi Feb 22 15:30:10 heyhey Feb 22 15:30:43 hey Feb 22 15:30:51 anyone up for testing my new app? Feb 22 15:31:53 what's it do? Feb 22 15:33:23 animal memory for kids Feb 22 15:37:47 ah Feb 22 15:56:37 Any one had issues with palm charging for app submission and then not submitting the app and asking for payment again? Feb 22 15:59:01 not yet Feb 22 16:01:17 I'm half tempted to file a dispute with paypal Feb 22 16:01:26 I can't get ahold of any one at palm Feb 22 16:01:28 have you heard from palm about this? Feb 22 16:01:38 do you have a handler at palm? Feb 22 16:01:53 I've called, emailed, but it seems that no one knows what to do with devs Feb 22 16:01:58 No handler. Feb 22 16:02:05 who did you email? Feb 22 16:02:18 That dude who runs the forums Feb 22 16:02:21 chuck Feb 22 16:02:36 They charge for app submissions even if it doesn't get submitted? Feb 22 16:02:54 chuq didn't reply? Feb 22 16:03:06 he's in here sometimes Feb 22 16:03:07 But he's been no help in the past so I'm not surprised my email hadn't been replied to... Feb 22 16:03:37 twbbas: They charged to submit it and after I paid on paypal it dropped me back into my apps and it was flagged incomplete Feb 22 16:03:54 I try to "complete" it and they send me to paypal again to charge me. Feb 22 16:04:34 I called the number on my invoice from palm and the best they can do for me is help me with my palm treo... Feb 22 16:06:30 i'd wait for chuq to come here or until your hear back from him Feb 22 16:06:45 did you write to the general developer email address? Feb 22 16:07:24 I just want this app live so I can be done with webos development. This platform and ecosystem was rushed and done poorly. It was a mistake thinking it had potential. Feb 22 16:08:03 What general dev address? Feb 22 16:08:23 Palm hasn't exactly made it easy to find any way of contacting them as a developer Feb 22 16:09:13 My options are unofficial irc, ignored forums, or some dude who always replies with "we are considering thinking about maybe possibly but not likely fixing the issue that is costing you money" Feb 22 16:09:44 i think it's pdc@palm.com? Feb 22 16:10:57 I'll give it a shot. Feb 22 16:10:58 Thanks Feb 22 16:13:19 wow that sucks about scottb Feb 22 16:15:07 yeah Feb 22 16:16:30 i hope it can be worked out Feb 22 16:23:23 kmudrick: up for testing an app? Feb 22 16:23:52 swisstomcat: sorry, busy at work Feb 22 16:23:57 np Feb 22 16:24:13 i could test when i'll have my pre ;) Feb 22 16:25:49 when will you get one? Feb 22 16:42:20 I need to find some place to share this code I wrote. Feb 22 16:42:23 it's useful as hell x.x Feb 22 16:46:12 Kuraiou: github Feb 22 16:47:08 hey chuq Feb 22 16:47:19 swisstomcat> not tomorrow but here in France it seems we'll officialy have it in april Feb 22 16:47:22 where's 1.4? man, so anxious! Feb 22 16:47:48 just be patient Feb 22 16:47:54 nooooooo Feb 22 16:50:40 Heavy Rain tomorrow! Feb 22 16:52:45 would it be against the UI guidelines for an App if I change the Help option to say something like Winnings & Help? Feb 22 16:53:08 or should I just suck it up and make that info a different scene Feb 22 16:54:06 what's in winnings? Feb 22 16:54:23 it's just a table explaining what you win for getting a match Feb 22 16:54:42 I consider it to just be "help" information, but I have users who apparently don't bother checking the help page to read it right now Feb 22 16:55:21 So I wanted to make the menu a bit more explicit about the fact that the winnings table is in that help scene Feb 22 16:55:48 hmmm Feb 22 16:56:06 or make a link to that table from within your app Feb 22 16:56:13 e.g "what to win" Feb 22 16:56:26 wouldn't really fit in the main scene Feb 22 16:56:29 otherwise it'd be there Feb 22 16:57:33 we can win real prizes using your app ? ;) Feb 22 16:57:33 why not just add a menu item for Winnings? Feb 22 16:58:11 Kuraiou: only reason I don't is it seems silly to have a scene/menu item for just 5 rows of information and nothing else :p Feb 22 16:58:33 but I likely will opt to do that anyway Feb 22 17:15:12 VincentLaw: just have the Winnings menu item also open Help scene... Feb 22 17:16:06 & scroll to the winnings info Feb 22 17:33:26 chugga chugga chugga chugga: Feb 22 17:33:27 http://github.com/Kuraiou/WebOS-Tools Feb 22 17:33:35 hopefully the AssistantBase will help some people manage some stuff! Feb 22 17:35:27 I will also add in the Preferences class I wrote and am using, although it could certainly use some work. Feb 22 17:47:28 hi there Feb 22 17:47:34 Kuraiou: cool Feb 22 17:51:24 hi Chais_z3r0 Feb 22 17:51:59 heyhey. Feb 22 17:55:19 alright, preferences class added. Feb 22 17:55:24 time for luuunchhhhh Feb 22 18:11:51 anyone up for testing my new app? Feb 22 18:13:15 swisstomcat: what does the app dp? Feb 22 18:13:17 do* Feb 22 18:13:30 animal memory for kids Feb 22 18:13:32 i imagine you want it tested on an actual device? not an emulator Feb 22 18:13:43 yeah, because it's got sound Feb 22 18:13:55 RT. id be happy to give it a run thru Feb 22 18:14:08 do you have any standardized tests you want run? Feb 22 18:14:21 not really .. looking for general feedback Feb 22 18:14:26 gotchya Feb 22 18:14:49 how can i snag the app? Feb 22 18:15:23 http://www.inorbit.ch/upload/com.inorbit.animalmemory.beta_1.0.1_all.ipk Feb 22 18:15:49 if you have kids, even better :) Feb 22 18:15:59 no kids. sorry. :( Feb 22 18:16:23 pretend that you're a kid Feb 22 18:16:30 oh, thats easy Feb 22 18:16:37 age range? Feb 22 18:16:45 2-5 i guess Feb 22 18:17:14 and you wrote a webos app for that range? Feb 22 18:17:46 i wouldnt be giving my phone to a 3 year old to slobber all over Feb 22 18:17:54 i guess its good i dont have kids, eh? Feb 22 18:18:10 hehe Feb 22 18:18:27 my son doesn't slobber over it :) Feb 22 18:19:43 [12:15:48] & scroll to the winnings info <-- Is there a way to scroll it to a specific section? I was under the impression that #'s in do not work on the pre Feb 22 18:20:45 hi everyone Feb 22 18:21:16 whats teh best way to get the app onto the phone? Feb 22 18:21:40 best == easiest Feb 22 18:21:55 Can anyone tell me whats the scope of a variable defined inside setup function or any other function?? Feb 22 18:22:11 Yatharth: how is it defined? Feb 22 18:22:40 cobalt: palm-install if you have the sdk Feb 22 18:22:51 var msg=this.model6['original']; Feb 22 18:22:51 cobalt: otherwise probably webosquickinstall Feb 22 18:23:37 Yatharth: i would imagine that its local to the setup function only. Feb 22 18:23:38 yatharth: i'd say the scope is setup only Feb 22 18:24:13 Yatharth: if you need a wider scope declare it as an instace variable: this.model6...... Feb 22 18:24:49 cobalt027:please tell the exact syntax... Feb 22 18:25:08 this.variableName = variableValue; Feb 22 18:25:16 correct Feb 22 18:25:20 Ohk Feb 22 18:25:31 swisstomcat: I can have my kid test out the app, I won't be going home from work for another 6 hours though... Feb 22 18:25:58 drat. i just realized that i left my USB cable a work. cant connect my phone. Feb 22 18:25:59 the scope of this variable is inside that whole .js file? Feb 22 18:26:00 nuts. Feb 22 18:26:01 robdor: sure, i'd be great to have the feedback Feb 22 18:26:23 i'd/it'd Feb 22 18:26:32 Yatharth: it becaomes an variable inside of the class, so since the entire JS is prototyped to be part of the class id have to say yes. Feb 22 18:26:46 ohk Feb 22 18:27:09 cobalt027:thanx. Feb 22 18:27:20 Yatharth: are you have a particular problem? can you pastbin something? Feb 22 18:27:24 looking at code is easier. Feb 22 18:28:17 VincentLaw: I think there is scrollTo method of scroller... Feb 22 18:28:18 swisstomcat: no way to email or MMS the app to my phone? Feb 22 18:29:21 Actually i am retriving a record from a table and displaying it in a text box now user can modify that value in text box and update the record....So i just want to return the old and the new value...Thats it.. Feb 22 18:29:57 cobalt027:So its a big code if you still want to see it i can paste it. Feb 22 18:30:23 uh Feb 22 18:31:00 maybe a snippet? i dont want to look thru 200 lines. :) Feb 22 18:32:06 cobalt: not really Feb 22 18:32:16 swisstomcat: drat Feb 22 18:32:28 cobalt027:let me try what you told me ...If i'll get a problem i'll definately paste the code then.. Feb 22 18:32:53 Yatharth: fair enough. Feb 22 18:34:12 cobalt: do you have filecoaster on your pre? Feb 22 18:34:44 swisstomcat: no, but i can get that. Feb 22 18:34:55 thats in preware, right? Feb 22 18:35:02 i thought that you could specify any url there Feb 22 18:35:05 yeah, think so Feb 22 18:39:43 swisstomcat: filecoaster working. good thinking Feb 22 18:39:53 cool Feb 22 18:42:12 swisstomcat: how do you want feedback? Feb 22 18:42:34 error: EXCEPTION [exception during animation], (TypeError): "Cannot call method 'animate' of undefined"....Can anyone tell me what does this error mean? Feb 22 18:42:37 the bear sounds like a wookie! i love it. :) Feb 22 18:44:08 Yatharth: it means that the thing you have .animate after is undefined, like myojbect.animate, myobject is undefined Feb 22 18:45:22 digitalpowers:But i dont think i am using any such thing in my code...... Feb 22 18:45:53 Yatharth: that does make it more confusing, if you search through it you dont have .animate anywhere? Feb 22 18:49:08 digitalpowers:No there no .animate anywhere..... Feb 22 18:49:27 cobalt027: pm is fine Feb 22 18:49:39 Yatharth: no idea then sorry :S i am still fairy newb though so other people can probably be of more help Feb 22 18:50:12 digitalpowers:Still thanx... Feb 22 19:13:40 Is it possible to call a function when a condition gets satisfied? Feb 22 19:14:16 example? Feb 22 19:14:25 Yatharth: sounds like you need a listener to me... Feb 22 19:14:54 when a if condition gets satisfied i would like a function to get executed Feb 22 19:17:22 Is it possible? Feb 22 19:18:47 i think so Feb 22 19:19:24 How??? Feb 22 19:19:44 do you have specific sample of code? Feb 22 19:20:50 if(results.rows.length==0) Feb 22 19:21:29 if the above condition gets satisfied i would want to run a code which is in a function Feb 22 19:21:36 if(results.rows.length==0) { myfunction(); } Feb 22 19:21:51 Ohk Feb 22 19:21:59 just the name of the functon? Feb 22 19:22:09 depending where it's defined Feb 22 19:22:17 hmm Feb 22 19:22:21 could be this.myfunction(); too Feb 22 19:22:32 its a local function only in my case Feb 22 19:23:54 swisstomcat:Thanx:) Feb 22 19:24:13 hi Feb 22 19:26:12 hallo metaview Feb 22 19:32:28 how could i get a date string in the format of 'YYYY-MM-DD' from the system? Feb 22 19:32:34 i tried formatDate Feb 22 19:34:47 yes Feb 22 19:34:54 that's the way I guess Feb 22 19:35:25 but there you don't get this format Feb 22 19:35:33 http://de.selfhtml.org/javascript/objekte/date.htm Feb 22 19:35:39 guess i could convert short ... 2/22/10 Feb 22 19:35:40 make it on your own Feb 22 19:35:44 yeah Feb 22 19:43:28 strange .. i get 110-1-1 for now.getYear()+"-"+now.getMonth()+"-"+now.getDay(); Feb 22 19:43:43 use getDate instead of getDay Feb 22 19:43:45 i think Feb 22 19:44:25 oh, it's years since 1900 for getYear Feb 22 19:45:04 that worked Feb 22 19:45:25 digitalpowers: i need YYYY-MM-DD and mojo formatDate doesn't provide that Feb 22 19:46:10 oh, i see what you're saying Feb 22 19:46:54 swisstomcat: i am using Feb 22 19:46:54 d.getFullYear().toString() + "-" + (d.getMonth() + 1).toString() + "-" + d.getDate().toString( Feb 22 19:47:04 yeap Feb 22 19:47:26 and you might need to add leading 0 Feb 22 19:47:45 oh Feb 22 19:47:58 digitalpowers: are you using it for sqlite? Feb 22 19:48:12 month = "" + (dt.getMonth()+1); (month.length < 2) ? ("0" + month) : month; Feb 22 19:48:17 somethign like this Feb 22 19:48:31 for sql I just store the seconds since 1970 Feb 22 19:48:32 perfect .. except the leading 0 Feb 22 19:49:02 yeah mine is for mysql it must handle the leading 0 on its own Feb 22 19:49:16 [20:48] MetaView: month = "" + (dt.getMonth()+1); (month.length < 2) ? ("0" + month) : month; Feb 22 19:55:56 code is now working, thanks Feb 22 20:02:50 hacked site... http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=11 Feb 22 20:03:40 hey lonestar Feb 22 20:04:04 them hackers have spelling problems Feb 22 20:04:21 yeah Feb 22 20:04:40 anyone know of a simple xml to json tutorial? Feb 22 20:04:58 actually how to format data in proper json? Feb 22 20:05:27 a good way to parse xml date entities? Feb 22 20:05:39 LoneStar99: I think json.org should have spec + validator or such Feb 22 20:05:51 like: 2010-02-22Z12:00:34T Feb 22 20:06:05 date or data? Feb 22 20:06:14 <-- date Feb 22 20:15:43 how to add such a command button in the title, like in style matters the "FW LIB" Feb 22 20:15:58 like in the calendar? Feb 22 20:16:15 where you specify the calendar, right Feb 22 20:17:30 i remember seeing somewhere how to make it Feb 22 20:20:21 <_lance_> any idea why i can get location via the test but it always fails in google maps and foursquare? :/ Feb 22 20:24:18 lance: how do you test? Feb 22 20:25:15 <_lance_> swisstomcat: device info -> interactive tests -> gps Feb 22 20:25:25 <_lance_> gives me a correct location and correct timestamp Feb 22 20:26:11 ok Feb 22 20:26:15 and google maps? Feb 22 20:26:49 <_lance_> launch google maps and it gives me the map of north america. hit the dot button to get it to zoom into current location and it says can't get to location services. Feb 22 20:26:58 <_lance_> location service preference is set to allow all Feb 22 20:27:32 how can i make a listselector always visible? Feb 22 20:29:27 hello...i have problems to read elements of a json object, when they start with an at sign. So if I try to get the value of myObject.@attribute the scene doesn't even appear. Feb 22 20:30:38 zefanjas: what error do you get? Feb 22 20:30:40 MetaView: use a header with another div placed on top & a popupSubmenu Feb 22 20:30:57 it's not a view menu Feb 22 20:32:11 haeffb_pre: thx, I found something in StyleMatters, will see if i get the correct look :) Feb 22 20:34:03 swisstomcat: Uncaught SyntaxError: Unexpected token ILLEGAL Feb 22 20:34:48 there are too much of this header stuff Feb 22 20:35:07 swisstomcat: and 'Error: The scene 'blala' could not be pushed because an exception occurred., palmInitFramework312:2.503 Feb 22 20:35:07 [20100222-21:33:38.351998] info: Error: Error: require Failed: The scene assistant 'blablaAssistant' is not defined. Did you remember to include it in index.html? Feb 22 20:37:19 haeffb: hm, do you have a good example, btw? Feb 22 20:37:20 :) Feb 22 20:37:38 ah, almost :9 Feb 22 20:38:17 zefanjas: can you post your code? (pastie.org) Feb 22 20:38:47 do you have ILLEGAL in your code somewhere? Feb 22 20:38:51 unclosed string? Feb 22 20:40:51 MetaView: have an example of popupSubmenu @ home. won't be there until late. Feb 22 20:41:27 ok Feb 22 20:41:41 the button is too much top Feb 22 20:43:06 swisstomcat: http://pastie.org/837505 Feb 22 20:43:20 margin is left top... ? Feb 22 20:44:13 ok, now it looks good Feb 22 20:44:32 zefanjas: maybe it's \@tester? Feb 22 20:45:21 swisstomcat: no Feb 22 20:46:33 zefanjas: try http://www.jsonlint.com/ Feb 22 20:46:45 -> syntax error, unexpected TINVALID, expecting '{' or '[' at line 1 Parsing failed Feb 22 20:48:22 zefanjas: it might be [ { color: "red", value: "#f00" }, Feb 22 20:48:27 not the other way around Feb 22 20:54:19 swisstomcat: I get the JSON object from a server, so I cannot modify it. Feb 22 20:54:45 according to the lint, it's malformed Feb 22 20:54:49 if i understand it correctly Feb 22 20:56:13 swisstomcat: I don't think so...I tried in a 'normal' browser - no problems. I get the value I want Feb 22 20:58:15 here is valid json (according to jsonlint): { "glossary": { "title": "example glossary" } } Feb 22 20:59:49 swisstomcat: there is also a way to get the response as XML, but I wonder why it doesn't work Feb 22 21:00:00 from a webservice? Feb 22 21:00:11 can you share the link? Feb 22 21:02:37 swisstomcat: http://developer.ebay.com/DevZone/finding/Concepts/MakingACall.html#jsonsyntax Feb 22 21:06:52 haha Feb 22 21:06:56 found a bug in the dev portal Feb 22 21:07:08 i see a whole bunch of 'Lorem Ipsum Dolor' Feb 22 21:07:46 dwamn: like template "Lorem Ipsum Dolor'" Feb 22 21:07:50 yes Feb 22 21:07:53 filler text Feb 22 21:07:57 where? Feb 22 21:08:09 logout of the portal Feb 22 21:08:17 then goto Feb 22 21:08:17 https://developer.palm.com/index.php?option=com_appsubmission&view=reports Feb 22 21:08:33 whoops Feb 22 21:08:38 swisstomcat: ok...i have to go now. I think I will choose the XML way... Feb 22 21:08:52 ok, talk to you later Feb 22 21:08:54 and good luck Feb 22 21:09:54 swisstomcat: thx Feb 22 21:43:02 When i delete my .ipk file..then my database and all the tables and triggers gets deleted or not?? Feb 22 21:44:04 yes Feb 22 21:45:17 Ok.....this means repackaging and reinstalling the application creates a new databse and the tables included in it .... Feb 22 21:45:50 MetaView:thanx:) Feb 22 21:45:55 i've got a db question too Feb 22 21:46:05 what? Feb 22 21:46:10 howdy Feb 22 21:46:17 i do a select and get a resultset back Feb 22 21:46:43 how do i access the data in the resultset? Feb 22 21:47:25 http://webos101.com/Mojo_Storage_Database Feb 22 21:48:08 this link will help you out.....its a beautiful link not made by me.:-D Feb 22 21:48:20 sugardave gave me this link. Feb 22 21:48:23 ah, that makes sense Feb 22 21:48:26 thank you Feb 22 21:48:31 np Feb 22 21:50:28 hmm, doesn't seem to work Feb 22 21:51:39 gblTargetsDB.transaction(function(tx) { Feb 22 21:51:46 tx.executeSql("SELECT ID, name, lat, lng, location FROM Targets ORDER BY name;", [], Feb 22 21:51:53 unction(tx, result) { Feb 22 21:51:56 oh Feb 22 21:52:07 Mojo.Log.error("item cnt: " + result.rows.length); Feb 22 21:52:08 i tried try/catch and now i see an error Feb 22 21:52:22 you need a lot of try catch in db code Feb 22 21:52:39 yeah Feb 22 21:52:48 it doesn't error out if there's an actual error Feb 22 21:54:56 swisstomcat:paste your code if possible Feb 22 21:55:10 *paste your code if possible Feb 22 21:55:39 i was using if (inResultSet.rows) { instead of inResultSet.rows.length Feb 22 21:55:57 Ohkk Feb 22 21:56:32 so by using inResultSet.rows.lenght it must be working fine? Feb 22 21:57:37 i'm still testing Feb 22 21:58:00 Ok Feb 22 22:00:39 hey guys. are there builtin calls for doing sha256, digests and stuff? Feb 22 22:09:31 g'night everyone Feb 22 22:09:38 n9 Feb 22 22:17:42 Hi everyone Feb 22 22:19:45 hello NuttyBunny Feb 22 22:22:43 Quick Question for Ares, I have a function that checks values that are put into text fields. I get the value with inSender.fetchModelProperty("value"), and send the error with a Mojo.Controller.errorDialog("Invalid Value");, but how do I get the focus back to the text field again after the error? Feb 22 22:23:11 Tried with inSender.focus();, but no, it doesn't work :) Feb 22 22:23:40 NuttyBunny: guessing here: setup a listener on the ok button on the errorDialog. Feb 22 22:23:55 and put your focus call in there Feb 22 22:24:41 setting the focus is difficult AFAIK Feb 22 22:25:10 I tried it in one of my apps, but wasn't able to set the focus in a way you would get when you tap the field.... Feb 22 22:25:21 yeah, that's what I'm trying to do :S Feb 22 22:25:38 I'll try to erase the value.. hold on Feb 22 22:25:41 well, good luck, tell me if you know how to do it... Feb 22 22:26:06 actually I get the focus set to a field, but it doesn't look like Feb 22 22:26:23 see Consumption Calculator as example Feb 22 22:27:30 I can erase the value, but it gets erased after the error comes... errorDialog is acynchronous, isn't it? unlike javascript alert() Feb 22 22:28:04 is async, IFAIK Feb 22 22:28:16 I'm off, good night Feb 22 22:35:42 millenomi: to get an unlocked GSM in an unsupported country, you will need to import it from Germany (an official unlocked O2 QWERTZ Pre). Feb 22 22:37:04 Bah, worked it around, empty the value whenever someone types an incorrect value :S docs say that the focus method should focus the text, but in Ares it doesn't do it, go figure :S Feb 22 23:15:30 Gott go, see ya and thanks :) Feb 22 23:18:17 hello everyone Feb 22 23:19:04 is there a standard way to supply release notes with updates? Feb 22 23:19:41 on the iphone you can go in and see the release notes before installing updates, that way you can at least notify your users with what was updated Feb 22 23:20:31 on webos it seems you install and update and the users have no indication that anything changed, unless you modify the ui and they notice Feb 22 23:27:08 Edit the description I guess Feb 22 23:28:26 I've seen some people do that Feb 22 23:28:41 pacemkr: edit the description Feb 22 23:29:03 well people dont go into the store to update Feb 22 23:29:05 until they roll out a nice new catalog that fixes everything that works less-than-desireably with this one Feb 22 23:29:07 they use the update app Feb 22 23:29:12 some people do Feb 22 23:29:32 Personally, I use Preware to check for updates Feb 22 23:29:32 i include an "Updates" section in my Help screen Feb 22 23:29:47 with release notes for each version Feb 22 23:29:54 That'd be the best thing to do Feb 22 23:29:56 but, that is only avaiable post update Feb 22 23:30:08 codeslaw_: thats what i was planning to do Feb 22 23:30:22 its a shame Feb 22 23:30:36 im using the stock help screen Feb 22 23:30:48 so that means id have to whip up a scene to replace it Feb 22 23:31:10 because i dont think you can include custom content in that scene Feb 22 23:32:20 pacemkr: I think you can put anything in the stock help scene you want. Just go mess with the view. Feb 22 23:32:48 Anyone one attempt to make a scene partially transparent like the search tool? Feb 22 23:33:07 Anyone attempt to release 1.4 today? :) Feb 22 23:33:22 Thursday I think Feb 22 23:33:55 hey Templarian Feb 22 23:33:56 lyht: i was refering to this api http://developer.palm.com/index.php?option=com_content&view=article&id=1872&Itemid=244#.pushAppSupportInfoScene Feb 22 23:35:21 pacemkr: ooohhhhh... I haven't seen that before. Been still using the help scene stuff from the demo support app. Feb 22 23:36:00 lyht: yes i read somewher that this api came in a later sdk version Feb 22 23:36:53 boy, that is a ton slicker, if you are not doing anything custom. Feb 22 23:38:10 actually you could use a "scene" resource type to add extra custom info, but obviously that would launch a new scene Feb 22 23:44:33 Templarian: why does komodo complain about "id" in my appinfo.json file? Is that just one of those things I can't do anything about? Feb 22 23:46:18 it complains about it? Feb 22 23:47:02 It says syntax error. Feb 22 23:47:14 But I know there is not one because it runs in the emu Feb 22 23:47:19 oh don't pay attention to that right now. Feb 22 23:47:24 ok. Feb 22 23:47:30 that is what I wanted to know,. Feb 22 23:47:38 Dude i'm suprised it even runs tbh I haven't updated it in a while. Feb 22 23:48:14 :) sad, because I am looking at switching from eclipse... Feb 22 23:48:15 Templarian: are you the author of the komodo plug in? Feb 22 23:48:46 Yes. I'm going to try my best to fix it this spring break. I'm just really busy. Feb 22 23:49:12 thanks for making it dude, i was really hating my exclipse experience Feb 22 23:49:22 eclipse* Feb 22 23:49:38 No one really likes eclipse they just "deal" with it. Feb 22 23:49:40 been using komodo with the plugin Feb 22 23:50:13 yp yp, its an abstraction to the abstraction to the abstration to the point where there is no ide left its just a "platform" hehe Feb 22 23:50:35 Yea the only large problem is that palm changed up the appinfo to the point it starts to break features. 1.4 completely breaks my addon so I have to fix it. Feb 22 23:50:46 question: is there any easy way to convert xml to json? Feb 22 23:51:05 actually i havent been using the appinfo generation much Feb 22 23:51:24 * Templarian thinks his framework can do it, but it's not released yet. Feb 22 23:51:29 that part i do by hand Feb 22 23:53:13 duh Feb 22 23:53:20 not appinfo.json Feb 22 23:53:22 i do use that Feb 22 23:53:26 i mean framwork_config Feb 22 23:53:39 framework* Feb 22 23:54:11 Yea the addon will break it. Feb 22 23:58:40 For the picture widget, how can I make it update the source file to a url? Feb 23 00:03:02 how do I set the zoomlevel of a webview? Feb 23 00:04:50 argh Feb 23 00:04:56 IS there an easy way to convert xml to json? Feb 23 00:05:06 it's so annoying trying to parse xml -_- Feb 23 00:05:50 jlazaroff: you can safely assume that you cannot write a parser yourself Feb 23 00:05:58 there are too many corner cases Feb 23 00:06:12 jlazaroff: let me google that for you: http://www.thomasfrank.se/xml_to_json.html Feb 23 00:06:24 so the only solution is to attempt to find a mature lib Feb 23 00:20:48 has anyone submitted a app catalog paid app today? Feb 23 00:26:20 I tried sunday Feb 23 00:28:10 have u tried again today? Feb 23 00:30:11 I haven't Feb 23 00:30:23 Palm already ate 50 bucks yesterday Feb 23 00:30:37 Not feeling to confident in their submission process at the moment Feb 23 00:32:14 yeah, it is not working, Feb 23 00:32:18 just tried again Feb 23 00:32:50 Double charging you? Feb 23 00:33:30 in paypal checkout, i click "agree and pay" then redirected to palm and get a blank screen, but check paypal and bank account, and it looks like nothing is charges Feb 23 00:33:33 charged Feb 23 00:33:56 Ah Feb 23 00:34:14 They charged me and the said my submission was incomplete and when I try to "complete" it they try to charge me again Feb 23 00:34:32 might be a paypal api issue... Feb 23 00:34:50 You give palm to much credit Feb 23 00:35:23 actually used to run a store, with paypal, and it would screw up more often than not Feb 23 00:36:12 the transaction should show up in paypal, but it does not Feb 23 00:36:56 will try again tommorrow Feb 23 00:37:58 =( Feb 23 00:45:31 question: when you pass arguments when creating a scene, how do you access them in the scene assistant? Feb 23 00:50:27 jlazaroff: you mean when u tap or click something? Feb 23 00:58:22 LoneStar99: no, i mean like when you push a scene you can pass it additional arguments. i got it though, thanks anyway :) Feb 23 00:59:04 ok Feb 23 00:59:39 scottb: oops... my debit card was an expired one, payments when through fine. Feb 23 01:00:16 jlazaroff: In the scene constructor Feb 23 01:00:28 LoneStar99: Ah, unrelated issue then Feb 23 01:00:40 I actually got charged. Feb 23 01:01:03 anyone know why the responseText of my http request isn't showing up in my log? http://pastebin.com/d6fe47cf2 Feb 23 01:01:10 i'm getting "win" and "test", but nothing in between Feb 23 01:01:27 scottb: did u contact palm? Feb 23 01:01:54 I emailed chuq who was no help like usual Feb 23 01:02:10 Other than him I cant find any other way of contacting palm about it Feb 23 01:02:35 did he say he would pass it on to someone? Feb 23 01:05:01 jlazaroff: http://pastebin.com/m146da610 Feb 23 01:05:02 Try that Feb 23 01:07:10 scottb: nope, same thing -_- Feb 23 01:07:30 i mean, the http request is working, but there's no responseText for some reason Feb 23 01:07:36 Ah Feb 23 01:08:39 Dunno, I've never used prototypes ajax helper. I just make the requests with XMLHttpRequest Feb 23 01:09:23 scottb: oh, is there a better way? i just found something on webos101 about ajax request, so i used that. i guess i'll try xmlhttprequest now xD Feb 23 01:09:57 You're probably better off with the ajax helper Feb 23 01:10:05 I'm just used to doing it my self Feb 23 01:10:31 http://www.prototypejs.org/learn/introduction-to-ajax Feb 23 01:11:26 I wonder if it has something to do with binding the context of this to the method Feb 23 01:17:08 argh, this is frustrating Feb 23 01:17:33 there should be SOME response text Feb 23 01:23:51 jlazaroff: i feel your pain. I'm having similar troubles with ajax request Feb 23 01:25:41 Tibfib: what's it doing to you? Feb 23 01:26:01 not behaving nicely Feb 23 01:26:30 my onsuccess function isn't working correctly Feb 23 01:27:01 I'm just having quite a bit of trouble...hah. Feb 23 01:27:12 Need to go through my code and clean it up Feb 23 01:32:49 jlazaroff: are you trying an ajax / json request? Feb 23 01:33:53 Angry email sent to palm. I feel some what less aggravated but twice as annoyed. Feb 23 01:34:54 lol, sometimes all it takes is an angry email or 2 or 3 Feb 23 01:37:46 LoneStar99: ajax request. it returns an xml document. i wish it were json :( Feb 23 01:38:07 this is what i should be getting back: http://weather.yahooapis.com/forecastrss?w=2459115 Feb 23 01:44:34 jlazaroff: do you have a php server? Feb 23 01:46:45 the SDK has an XML sample, Feb 23 01:49:07 LoneStar99: what do you mean? Feb 23 01:55:43 Preware 0.9.27 and Package Manager Service 0.9.36 released Feb 23 01:56:04 anything significant in the update? Feb 23 01:56:54 ah, found the release notes Feb 23 01:56:57 Tibfib: yes, you *want* to update to these versions Feb 23 01:57:11 and you *want* to spread the word to anyone else too Feb 23 01:57:14 Hah, already dling, just curious Feb 23 02:11:37 Nice, called palm for support and they directed me to send an email... Apparently the only answer I can get about my missing submission fee is "were working on it" Feb 23 02:13:12 scottb: what happened? Feb 23 02:13:20 did it say you didn't pay or something? Feb 23 02:13:46 They charged me 50 bucks to submit my app and my app is flagged incomplete, when I try to "complete" the submission they try to charge me again Feb 23 02:13:56 :O Feb 23 02:13:59 thats a bad bug Feb 23 02:14:01 The transaction was completed... Feb 23 02:14:11 I've checked with my bank and paypal both... Feb 23 02:14:35 I'll be filing a paypal dispute if it isn't resolved by tomorrow morning. Feb 23 02:15:29 Either way I'm fed up with palm and moving on to droid and iphone. Feb 23 02:17:05 The incorrect reporting of sales, missing payments, zero star ratings from people who never purchased my app, and the many many other issues that plague the development side of the pre has me so frustrated that it's just not worth it any more. Feb 23 02:18:17 thats too bad. And yeah, palm needs to fix some bugs Feb 23 02:18:30 sucks to be losing a fellow developer, but shit happens! Feb 23 02:23:40 <_azdak> Hey yall Feb 23 02:24:32 howdy Feb 23 02:54:19 <_azdak> setTimeout is a frickin bizarre function Feb 23 02:58:19 w00000t! My chat application is mostly functional! Feb 23 02:58:30 <_azdak> sweet Feb 23 02:58:32 :D Feb 23 02:58:49 Ala, i can send msgs between two users! Feb 23 02:59:15 it only takes a second **** ENDING LOGGING AT Tue Feb 23 02:59:58 2010