**** BEGIN LOGGING AT Tue Dec 15 02:59:57 2009 Dec 15 03:03:24 Haven't seen this many splitters since the Judean People's Front. Dec 15 03:08:50 is the icon for help called "icon32x32.png" or "32x32.png" ? Dec 15 03:21:49 have build help file but for reason no icons are showing up anyone what it could be? Dec 15 03:23:38 odd Dec 15 03:23:48 you cant have Mojo.Menu.editItem as the first menu item if you assign it Dec 15 03:23:57 it errors Dec 15 03:24:46 so I should have the help menu widget stuff on the top of other code? Dec 15 03:24:58 no Dec 15 03:25:10 there just has to be a menu item that is custom as the firs titem Dec 15 03:25:24 basically you cant mimic the default items, unless you throw an item at the top Dec 15 03:25:37 even {} still shows a seperator Dec 15 03:26:00 ok, let me check it out Dec 15 03:29:00 you have to have omitDefaultItems: true in the attributes, so you can manually set the placement Dec 15 03:29:05 but if you put Mojo.Menu.editItem at the top, it errors Dec 15 03:29:42 where do I add the "omitDefaultItems:true" Dec 15 03:30:00 http://developer.palm.com/palm-sdk/jsdoc/symbols/Mojo.Menu.html#.appMenu Dec 15 03:30:03 in the menu widget instatation Dec 15 03:30:06 the thing is I need the edit menu for "copy and paste" Dec 15 03:30:16 oh you can Dec 15 03:30:27 i was just trying to remove an issue with a submenu of mine Dec 15 03:30:50 it renders as both a submenu and an item, so it has a double line underneath Dec 15 03:31:09 but looking at the stock browser app which has a custom submenu, it doesnt show the line so i was playing around Dec 15 03:33:07 reading the appMenu pages Dec 15 03:40:21 anyone here dev mainly on mac? Dec 15 03:44:10 dawm: ping Dec 15 03:44:17 ? Dec 15 03:45:17 well.. I finally figured out my issue... for the curious, I was failing at the incredibly complex task of displaying an image in the HTML of my view. :) Dec 15 03:45:38 palm inspector let me know that I am "Not allowed to load a local resource" Dec 15 03:45:41 sugardave, pong Dec 15 03:45:51 so I guess I will have to do this as a div with background css. Dec 15 03:46:19 huh Dec 15 03:49:07 dawm, are you on a mac, windows or linux? Dec 15 03:49:35 windows, but my hackintosh is setup almost identical to my windows enviroment (komodo IDE + webos addon) Dec 15 03:50:20 on mac, do you have a refresh button on palm inspector? Dec 15 03:50:32 palm inspector has tons of issues Dec 15 03:50:38 i dont really use it Dec 15 03:50:42 but it should be the same ui Dec 15 03:50:47 its the webkit inspector Dec 15 03:50:52 ok, just making sure it's not just me. :) Dec 15 03:51:18 why did they stop distributing plamhost? Did palmhost do anything special other than serve web content? Dec 15 03:51:30 no clue Dec 15 03:52:06 OK. So you do you inspect your DOM while developing? Or do you just build > look > build > look. :) Dec 15 03:52:19 build > look > repeat Dec 15 03:52:23 ouch Dec 15 03:52:28 unless im seriously stumped Dec 15 03:52:32 then i try to get inspector working Dec 15 03:52:42 but that usually requires restarting the emulator a few times Dec 15 03:57:37 Palm Inspector works less than 25% of the time for me Dec 15 03:57:46 Running on OSX Dec 15 03:58:15 even when it 'works'....the only DOM it displays is that of index.html which is useless Dec 15 03:58:46 Maybe I'm missing something but there seems to be no way to inspect the entire stack Dec 15 03:59:13 Evening everyone, anyone know if webOs is working with m3u playlists? Dec 15 03:59:22 the webkit debugger in Safari and Chrome gives you access to the entire 'stack' Dec 15 03:59:48 I am trying to use an audio object to connect to an m3u link, but nothing plays. Dec 15 04:01:43 Nobody has any experience getting m3u to work on webOs? Dec 15 04:05:29 i think tomorrow ill work on my app logging system, so i can stop starring at the database data Dec 15 04:06:44 jfelectron: ah... chrome Dec 15 04:07:11 the webkit debugger in general is mighty sweet Dec 15 04:07:18 jfelectron: did you set up your own local webserver or just pull the local files? assuming you set up a webserver. Did you have to do anything special? Dec 15 04:07:58 fiftycal: Oh....I meant the web stack.....not Mojo Dec 15 04:08:19 I use it to debug non Mojo dependent components Dec 15 04:08:27 do you do any kind of debugging for Mojo apps? Dec 15 04:08:30 if so, how? Dec 15 04:08:57 Yes.....painfully with the command line debugger and Mojo.Log Dec 15 04:09:12 the debugger works well....just painfully Dec 15 04:09:25 the inspector is useless Dec 15 04:09:48 for CSS debugging....its tweak, build, see....repeat X times Dec 15 04:10:12 I mean, the consensus seems to be that Palm Inspector is 'in beta' and we now have no palm-host. so there seems to be no way to inspect the DOM other than lather, rinse, repeat ad nauseum. Dec 15 04:10:59 that's my understanding....it takes dedication to say the least Dec 15 04:12:48 ok. thanks. Dec 15 04:17:01 Good day today Dec 15 04:18:41 hrm Dec 15 04:18:53 app has been 'being reviewed' all day yet its never even been launched :P Dec 15 04:19:31 $375 for the app Dec 15 04:20:12 welp bed time Dec 15 04:29:35 now that you're all here.... Dec 15 04:31:40 dawm: got the help menu working, it was missing a css file Dec 15 04:32:07 Interesting situation, I'm using a GSM Palm Pre that has all the Sprint apps on it, this suggests it was somehow flashed or somesuch ... now that I'm trying to install webos quick install (which requires webos doctor), I'm not sure if I should download webos doctor for sprint or for GSM ?? Since it seems it's for the driver itself I'd guess the GSM one ? Dec 15 04:32:41 I didn't even realize Spring was CDMA only Dec 15 04:33:58 Which one ya'll think I should try first ... webos gsm or webos sprint cdma to install webos quick install Dec 15 04:38:05 having trouble installing my app on the phone.. Dec 15 04:38:23 it installs on the emulator fine Dec 15 04:38:55 running: palm-install -d usb com.company.gpslogger_0.0.1_all.ipk Dec 15 04:39:18 gives me "palm-install: FAILED_NOT_ENOUGH_INSTALL_SPACE" Dec 15 04:40:07 but i should have plenty of space Dec 15 04:41:10 df shows 197.4MB avilable in /var (50.6 MB used) Dec 15 04:41:49 do i need to manually mount / read/write? Dec 15 04:44:07 drivers definitely don't work on my xp64, will download the gsm ones Dec 15 06:04:13 what is the easiest way to make a hidden text field in webos? Dec 15 06:23:21 anyone here messed created hidden text fields on webos? Dec 15 07:31:41 I'm probably offending someone with this poll I just posted on the dev forums entitled "App Spam?" Care to vote? http://developer.palm.com/distribution/viewtopic.php?f=23&t=3859 Dec 15 07:35:16 voted! Dec 15 07:35:41 Thanks. Dec 15 07:35:54 yeah it sucks Dec 15 07:36:40 been waiting since late November for a review and response from palm for a simple app.... Dec 15 07:36:50 That has to make it twice as annoying. Dec 15 07:37:02 all those apps can be built into one Dec 15 07:37:33 it is like instead of selling book, I am selling each page Dec 15 07:37:54 Yup. I'm not sure the "multiple app" strategy really works anyway. They've been out all day and mostly have 0 downloads. I don't think it gives a good impression to the customer either. Dec 15 07:38:07 (Or, the download counter is stuck) Dec 15 07:38:17 rbredow: I think it's currently working Dec 15 07:38:37 it looks like a cheap dollar store full of cheap chinese made products Dec 15 07:38:51 I think so too. Watching the Paratrooper counter has been very exciting for me. (Probably more exciting than it should be!) Dec 15 07:39:15 Anyone know if they are selling the "Featured App" spot or if you can request to be featured? Dec 15 07:40:03 not sure how it works...I saw someone say that if your app has a 4-star average you can talk to your contact and see what's up Dec 15 07:42:28 anyone know how to build a hidden text field propely for webos? can i simply use a generic '' ?? Dec 15 07:43:29 LoneStar34: do you really HAVE to have one? you can "hide" anything in some variable in code and use it whenever Dec 15 07:43:35 I would guess so. I made a form like that with standard html that worked just fine (but I didn't need a hidden field). Dec 15 07:45:06 I am building an ajax pagination system, and the easiest way is to send the onclick value to a hidden text file Dec 15 07:46:37 to me that sounds like "banana banana banana" because, you see, sadly....I don't know the first thing about forms/submits/etc Dec 15 07:46:57 I would just send whatever page command in my ajax request Dec 15 07:48:49 sugardave: yeah, I am thinking of different methods, have done the hidden text way at http://buildasearch.com/search/ Dec 15 07:51:57 you think prototype functionality is disabled if it is used in a random "javascript/abc.js" instead of "app/assistants/abc.js"?? Dec 15 07:52:20 no, it is not Dec 15 07:53:08 I created a class the loads the populates the app menu and command menu depending on the scene. The thing I'm not sure about is how to propagate handleCommand properly. I have handleCommand as a method of the class, and each scene has has a handleCommand method that is just a cached call to the other handleCommand, but its bound to the scene's this. Will this work? Dec 15 07:53:52 Lonestar34: prototype.js is included in Mojo.js, which is globally loaded Dec 15 07:55:30 this what I am trying to use: http://pastebin.com/d4ca4c580 Dec 15 07:57:46 what happens? Dec 15 07:57:49 I think I've found that you can't make an Ajax request until the first scene is loaded up. Dec 15 07:58:03 does it work in a browser with prototype.js included? Dec 15 07:58:04 If you call this code from after the activate scene, does it work? Dec 15 07:58:43 your OnSuccess callback is strange Dec 15 07:58:48 its not a function?? Dec 15 07:59:31 you should define a function that does all the parsing of the response and feed that function as a callback to AJAX.Request Dec 15 07:59:49 its asychronous Dec 15 08:00:00 the stuff after will run before you get a response Dec 15 08:00:05 as it stands Dec 15 08:00:32 cd /etc/ Dec 15 08:00:33 (sorry) Dec 15 08:00:44 rbredow: works the proper way, but wanted to see if it would work in a generic form Dec 15 08:02:34 generic form? Dec 15 08:02:43 You could put everything in a class Dec 15 08:02:48 I've done that Dec 15 08:02:53 using; next results' to call the ajax Dec 15 08:03:13 you just feed the class a callback and arguments and then abstract the AJAX request through the class methods Dec 15 08:04:04 jfelectron: on will test it our Dec 15 08:04:43 I posted a modified version to pastebin Dec 15 08:04:57 http://pastebin.com/m32b35ec8 Dec 15 08:06:05 ok, let me try your code Dec 15 08:06:46 Very quickly done....I just encapsulated the parsing stuff into an anonymous function Dec 15 08:07:55 Test it is in a browser where you can use a REAL debugger :) Dec 15 08:08:04 Not the palm shite Dec 15 08:08:22 gtg....be back in a few...good luck Dec 15 08:09:10 this may sound really stupid, but how do I debug in the browser; meaning execute it? can I use firebug? Dec 15 08:09:16 k thanls Dec 15 08:09:20 thanks Dec 15 08:09:36 Oh crap...I didn't see that var raw line Dec 15 08:09:53 that needs to be the first line of the parseResponse function Dec 15 08:10:06 ok Dec 15 08:10:23 create an HTML file that has your test link and also the script you're working on here Dec 15 08:10:36 you'll need to include prototype.js Dec 15 08:10:58 You can use Chrome or FF and use the javascript debugging console Dec 15 08:11:07 you can add breaks and figure out where the thing is failing Dec 15 08:12:12 ok....I'll be back Dec 15 08:12:27 oh, ok, that is how i debugged before, i just thought there was a way to just load it and boom Dec 15 08:13:37 lol....if it works the first time...but when does that happen? Dec 15 08:15:59 Should be OnSucess: parseResponse() ..... I put the this in there out of habit Dec 15 08:17:15 if the callback is a method the scene assistant you'll want to bind it to the scene assistant 'this' Dec 15 08:18:03 i have a propely working one that calls the actual first results, was jsut experienting with the pagination stuff Dec 15 08:18:30 working one = "code" Dec 15 08:22:00 hello? Dec 15 08:22:11 ok, i got disconnected Dec 15 08:27:17 Is there a way to execute javascript in the mojo webview widget? Dec 15 08:30:43 good question I am wondering the same thing.... Dec 15 08:36:00 Isn't the webview widget basically an iframe or something? Dec 15 08:37:31 zomg: from my tests it seems like an iframe Dec 15 08:37:51 Yeah, so same restrictions would apply Dec 15 08:40:22 yeah, i would assume, so ,but was still wondering if an external js could be executed to do something locally on the device... like copy text etc... Dec 15 08:42:37 Hey guys....related to WebView...have you tried the HTML5 contenteditable attribute? Dec 15 08:43:24 ideally it would work inside an app....but I Dec 15 08:43:31 i'll take a webview widget Dec 15 08:43:48 more rookie questions... doesn't the pixi have a different screen resolution than the pre? When I start the emulator both options say 320x480, but the pixi icon looks different. Is this par for the course? Dec 15 08:44:18 The emulator says 320x400 for the pixi no? Dec 15 08:44:51 yeah the top one is the pixi and the bottom is the pre Dec 15 08:45:01 320x400 for pixi 320x480 for pre Dec 15 08:45:26 are you running SDK 1.3.1.1314? Dec 15 08:45:30 wow. reading is fundamental. :) Dec 15 08:45:33 my mistake. Dec 15 08:45:37 lol :) Dec 15 08:46:05 when i first started using it I thought the top one was the pre and couldn't figure out why everything looked squished Dec 15 08:46:28 it took me a awhile to realize the keyboard wasn't the slider :) Dec 15 08:46:50 ha! Dec 15 08:46:52 :) Dec 15 08:49:36 JoeLastPass and folks: there is a setEnableJavascript method the of the WebView widget Dec 15 08:49:50 http://developer.palm.com/palm-sdk/jsdoc/symbols/Mojo.Widget.html#.WebView Dec 15 08:49:52 It's just an iframe? what a let down. There's nothing like stringByEvaluatingJavaScriptFromString ? Dec 15 08:50:04 that just turns on Javascript in the frame right? Dec 15 08:50:10 correct Dec 15 08:50:14 nice\ Dec 15 08:50:18 yeah that's totally worthless Dec 15 08:50:31 I assume its off to prevent malicious injection Dec 15 08:51:08 huh? it's just for the iframe itself -- doesn't alow the power of iPhone's stringByEvaluatingJavaScriptFromString: Dec 15 08:52:58 I'm not sure exactly what you're after...but you can of course use client side processing to render the contents of the widget Dec 15 08:53:54 I'm not familiar with iPhone development....but that's primarily used for DOM manipulation eh? Dec 15 08:54:20 If you are rendering the WebView from local content...then you have access to the DOM locally Dec 15 08:54:49 jfelectron Sorry it's late and I'm dense: I don't see how it's possible to load external URLs and inject javascript into the webview after the page loads -- I can get the events I just can't execute script on the webview Dec 15 08:55:41 jfelectron it's disappointing if it's not possible, Android, Symbian, Windows Mobile, and Iphone all have it. Dec 15 08:58:23 well you can use AJAX.Request to post a GET to the url....then you have the entire page...you can do whatever you want to it on the phone before rendering it Dec 15 08:58:51 Ugh, that's such a hack Dec 15 09:01:09 if I understand correctly you want to directly modify the DOM of the loaded page? Dec 15 09:01:19 with client side injected JS? Dec 15 09:01:44 I want to execute javascript code based on events that I get (like page is done loading) Dec 15 09:02:46 You can do that...the WebView has callbacks defined for those event Dec 15 09:03:13 Mojo.Event.webViewLoadStopped Dec 15 09:03:23 yeah I got that part down Dec 15 09:03:41 now how do I execute javascript in that event on the webview? Dec 15 09:06:45 e.g. this.controller.get('WebId').eval('alert("hi");'); Dec 15 09:07:03 there's no eval method obviously Dec 15 09:07:47 I'm wondering if you can manipulate the WebView widgets model....which is presumably the page content Dec 15 09:08:14 can you used getElementbyID or the like on the content of the page? Dec 15 09:08:35 no that doesn't work Dec 15 09:12:01 guess we are SOL then Dec 15 09:12:36 short of the requesting the page, modifying it client side and then re-rendering it....which is ridiculous Dec 15 09:23:44 night y'all Dec 15 09:30:34 night ! Dec 15 11:32:31 * istojic is extremely pissed off at the async nature of everything in Mojo this morning... Dec 15 12:57:59 someone here who can help me with Ubuntu for a moment? Dec 15 12:58:18 I just followed the howto on installing the sdk however when i try to launch the emulator it complains novacom must be running Dec 15 12:58:29 when I installed novacom this is what I got Dec 15 12:58:45 http://paste2.org/p/562686 Dec 15 12:59:32 i would like to get the SDK working on Ubuntu so that I can get back to the WebOS stuff :) Dec 15 13:07:05 jcrawford: did u try rebooting ? :) Dec 15 13:08:07 Bmyers_qwerty, no should i :) Dec 15 13:08:22 didn't think anything required a reboot in nix aside from kernel stuff Dec 15 13:11:45 i'm think it may have installed kernel modules that are not loaded yet Dec 15 13:12:03 there are other way of doing it but reboot is the easiest. Dec 15 13:12:07 couldnt hurt! Dec 15 13:24:24 thanks Bmyers_qwerty will try that in a few Dec 15 13:24:32 need to get to a stopping point with work before i can :) Dec 15 13:33:27 does /var/messages have any clues as to what the emu is looking for? Dec 15 13:39:18 does Janet Nepolitano know about this? Dec 15 14:24:44 when i try to run palm-log to watch my application output, it's saying "palm-log: error 2" Dec 15 14:24:47 anyone seen this before? Dec 15 15:04:55 hi everyone Dec 15 15:16:01 pretty bad still this morning.. Dec 15 15:19:04 it's snowing here Dec 15 15:32:41 OMG Magnum!! Dec 15 15:37:48 daveisadork -- never seen it. Dec 15 15:38:10 daveisadork can you get in on terminal and do tail -f /var/log/messages ? Dec 15 15:38:19 if you can't then the problem is with your novacom drivers Dec 15 15:38:24 Rick_work: i figured out what it was... i lost power while using the emulator, trying to do an ls in /var/log reported a stale nfs file handle on messages Dec 15 15:38:35 ah Dec 15 15:41:40 so i just deleted the image... how would one go about fixing that on an actual device i wonder Dec 15 15:42:23 daveisadork -- on the emulator the fastest fix is to run " palm-emulator --reset " from the command line Dec 15 15:42:44 on the device I'm not sure. Mount and unmount /var ? Dec 15 15:42:57 or rather the reverse.... Dec 15 15:48:32 ok... doing "new Ajax.Request(https://..." i get no headers and blank responseText. it works with plain http, what am i missing? Dec 15 16:03:06 Rick_work What's the Mojo WebView equivalent of iPhone's UIWebView stringByEvaluatingJavaScriptFromString? How do you inject javascript into a WebView from your app basically Dec 15 16:04:18 absolutely no idea JoeLastPass -- I'm on th ephone, it may be a bit Dec 15 16:05:54 Rick_work Thanks -- I've tried webview.mojo.openURL("javascript:...") but unfortuantely Mojo mangles that and prepends http:// on the front Dec 15 16:13:59 JoeLastPass put the question into the forums at developer.palm.com Dec 15 16:14:08 it's a good question Dec 15 16:29:26 are there any tricks with the row template for lists? I'm trying to put an image on the right for my lists, and I created a div and gave it a background image, but it won't show it unless there's text in the div itself, and creates a new row which I'm trying to avoid Dec 15 16:30:52 Is a Mojo.Depot store persistant, and protected from other apps? Dec 15 16:33:18 And if it's not protected, do devs normally use the com.example.app convention for the name? Dec 15 16:33:44 ambackstrom yes Dec 15 16:34:03 but we STRONGLY urge you to use html5 sql instead of depot Dec 15 16:34:13 STRONGLY -- as in really, don't use depot. It sucks. Dec 15 16:34:19 ok :) Dec 15 16:34:22 thanks for the heads up Dec 15 16:34:23 dammit, I'd love to participate in conversation Dec 15 16:34:26 but noooooo Dec 15 16:34:52 JoeLastPass you want to put an image on your list? Dec 15 16:35:01 and you want the SAME image on all the rows of the list? Dec 15 16:35:17 or do you want different images on each row? Dec 15 16:35:27 Rick_work Right -- but I also want it to be clickable so I've been putting it in a div Dec 15 16:35:56 JoeLastPass if you're making it the BACKGROUND of the div, then the div has to have CONTENT or it will not be visible. Dec 15 16:36:00 Use an img tag Dec 15 16:36:18 Rick_work k, thanks Dec 15 16:37:06 JoeLastPass be aware that you can still do a mojo event tap listener on ANY ELEMENT ON THE SCREEN including an img tag. Dec 15 16:37:19 Altho, in a list that's not what you do. :-) Dec 15 16:37:35 in a list, you listen to the list, then get the originating element from the event object... Dec 15 16:38:16 so, you know that someone tapped on row X and on element Y on that row. Dec 15 16:40:56 Rick_work -- I had tried that originally and it didn't work, just tried again -- with an img tag it appears to make any empty row with no image showing Dec 15 16:41:54 anchor to "HTML5 Database Object" is broken: http://developer.palm.com/index.php?option=com_content&view=article&id=1734 Dec 15 16:44:05 Rick_work nevermind it didn't like loading my file was all -- different paths for CSS vs. Template Dec 15 16:49:14 argh, i hate html-parsing Dec 15 16:49:31 why can't there be an xml/json webservice to query Dec 15 16:49:46 * swisstomcat grmbls Dec 15 16:50:26 how would you parse

name1
stuff1
stuff2

Dec 15 16:50:34 i want name1, stuff1, stuff2 Dec 15 16:51:00 so, one regex to return everything between the

tags Dec 15 16:51:18 then another to return anything between any tags? Dec 15 16:51:33 oh, but stuff2 is not Dec 15 16:53:02 or you could do the whole child/textNode/attributeNode thing... Dec 15 16:53:21 yeah, that's what im trying .. and hating :) Dec 15 16:53:28 erg, sorry :P Dec 15 16:55:45 a proper webservice would be better Dec 15 16:55:54 to call **** BEGIN LOGGING AT Tue Dec 15 17:03:09 2009 Dec 15 17:03:28 good idea Dec 15 17:03:41 it's the swiss public transport Dec 15 17:03:53 they might be happy that you did it Dec 15 17:20:30 what's palmhost, related to Mojo.Host.current === Mojo.Host.browser? I see some proxy stuff in examples, but don't quite understand the background Dec 15 17:20:47 swisstomcat what are you parsing? Dec 15 17:20:59 Because there's a solution to the problem you just mentioned. Dec 15 17:21:10 (sorry that I wasn't paying attention) Dec 15 17:21:39 ooh, think i found it: the old desktop safari debugger thing. looks obsoleted? Dec 15 17:22:07 PalmHost -- totally obsolete Dec 15 17:22:14 not updated from webOS 1.01. Dec 15 17:22:22 dead as doorknobs. Dec 15 17:22:48 still referenced in the Data sample app, unfortunately Dec 15 17:23:00 yep. sad that. Dec 15 17:25:39 oh, if only the tools actually worked... Dec 15 17:26:12 fiftycal what tool are you having trouble with now? Dec 15 17:28:01 Still griping about palm inspector not working. Haven't had my coffee this morning. :) All jokes aside, I am stunned that the change / run / look / repeat method of building UIs is actually the 'correct' way to build these app screens. Dec 15 17:28:04 morning all! Dec 15 17:28:39 fiftycal: how else would you do it? Dec 15 17:29:22 I thought I had a great idea about just recreating the html / css in a completely different web app, and doing all my css fiddling there... but that won't work because I need to know what css classes and IDs mojo is adding to my elements so I know what to override. Hence I need the Palm Inspector anyway. Dec 15 17:29:24 i actually like how quick the emu is for my testing Dec 15 17:29:40 CSS classes are on your system in a folder somewhere Dec 15 17:29:46 i saw the post on precentral yesterday Dec 15 17:29:54 i need a cheatsheet myself Dec 15 17:30:02 rick_work: html from a website Dec 15 17:30:10 there's an excel spread sheet with all the CSS in it Dec 15 17:30:11 there's a spreadsheet...but it doesn't do me any good since I don't know wth I'm looking at Dec 15 17:30:19 rick_work: that i'm adding to the dom and then parse Dec 15 17:30:20 hahaha Dec 15 17:30:42 yetdog: yeah, which is what I've been doing. But for example, when you make a mojo button, it adds some HTML to the innerHTML of the button source, then adds some generated id and sound multiple classes to that button. Dec 15 17:30:57 i keep hearing about palm inspector ... what is it and how do i call it? Dec 15 17:31:00 swisstomcat have you ever taken a look at YQL ? Dec 15 17:31:07 like id="blah_0_sceneX_blah" class = "palm-button primary" Dec 15 17:31:22 swisstomcat: you run your app in 'inspect' mode, then inspector should be another program in your Pal SDK installation group Dec 15 17:31:23 rick_work: yql? doesn't ring a bell ... no Dec 15 17:31:33 which would be difficult if not impossible to divine from reading the css... Dec 15 17:31:39 s/Pal/Palm Dec 15 17:31:39 swisstomcat http://developer.yahoo.com/yql/ Dec 15 17:32:12 swisstomcat basically, it's a yahoo tool that lets you write sql like queries and it extracts tabluar data out of web pages for you. Dec 15 17:32:20 sounds interesting Dec 15 17:32:49 but wouldn't the data provider have to make adjustments? Dec 15 17:32:56 nope Dec 15 17:33:01 So does anyone have a good idea of how to get the actual HTML structure of your running app without using the very broken inspect tool? Dec 15 17:33:09 that's the whole point swisstomcat Dec 15 17:33:20 ok, i'll read more about it :) Dec 15 17:33:26 fiftycal sure. it's pretty straight forward. Dec 15 17:33:59 fiftycal wrap all your scene in an outer div, and then do an ajax request to someplace and send the innerHTML of that outer div to your server. Dec 15 17:34:06 bingo, all the everything. Dec 15 17:34:18 Rick_work: brilliant! Dec 15 17:34:32 thanks. I try. Dec 15 17:34:51 swisstomcat what web page are you trying to parse??? Dec 15 17:35:05 rick_work: mobile.zvv.ch Dec 15 17:35:08 fiftycal see private message. Dec 15 17:35:37 rick_work: public transport Dec 15 17:36:19 swisstomcat but that just brings up a query page Dec 15 17:36:34 is there an actual schedule somewhere or are you having to send it a bunch of queries? Dec 15 17:37:12 i have to send a query first to get a session id and then a query to get the schedule and then a query to get the schedule details Dec 15 17:37:15 e.g http://mobile2.mobile.zvv.ch/bin/query.exe/dox?seqnr=5&ident=an.0590450.1260894335&co=C4-1&vca Dec 15 17:38:02 ok, and what you want out of it is what???? Dec 15 17:38:40 if you check the html-output of the link i posted Dec 15 17:38:42 * FoxFireX is learning all sorts of things about unions and views. Dec 15 17:38:46 i have to parse some details out of it Dec 15 17:38:58 e.g - Effretikon -
S8
ab 17:19 Gl. 6
an 17:30 Gl. 1
Dec 15 17:39:31 here i have to get effretikon,s8,a 17:19 gl. 6 and an 17:30 gl. 1 out of it Dec 15 17:43:59 swisstomcat seems like a perfect app for yql. Dec 15 17:45:20 Hey guys, got some problems setting up the WebOSEmulator in Win7 x64 Dec 15 17:45:54 our sympahties luaduck Dec 15 17:46:43 When I run palm-emulator.bat and tell it to create a new VM (palmSDK 400?x480), it goes for a while then up comes a huge error with modifyvm usage for virtualbox Dec 15 17:46:50 Virtualbox is installed correctly Dec 15 17:47:20 Basically I think the SDK is giving modifyvm invalid arguments Dec 15 17:47:22 but why? Dec 15 17:47:50 luaduck: which version of virtualbox? Dec 15 17:48:13 3.1.0 rev 55467 Dec 15 17:48:18 do you suggest I downgrade? Dec 15 17:48:44 yes, emulator only works with 3.0.10 Dec 15 17:49:06 mmk Dec 15 17:49:12 To the virtualbox archives! Dec 15 17:49:40 whoa netsplit Dec 15 17:49:59 3.0.10-54097 Dec 15 17:50:01 ? Dec 15 17:50:08 yeah, should work. Dec 15 17:50:13 mmk Dec 15 17:50:14 i dont think build number matters Dec 15 17:50:19 gotta restart again now :( Dec 15 17:51:02 luaduck 3.0.10 should work Dec 15 17:51:47 yeah just uninstalling 3.1.0 Dec 15 17:52:06 then downloading 3.0.10 Dec 15 17:52:12 then restarting for 3.1.0 Dec 15 17:52:16 then installing 3.0.10 Dec 15 17:52:18 ffffff Dec 15 17:54:27 I'm getting my actual pre on friday, I just want to play around in a dev enviroment Dec 15 17:54:30 swisstomcat I was wrong. Saddly, you can't do it with that feed. Dec 15 17:55:55 ok brback Dec 15 18:10:59 I'd like to dump the result of Ajax.Request for manual inspection during development. What's the "correct" way to do this? Dec 15 18:11:17 I'm struggling with the debugger over novaterm. Dec 15 18:11:43 ("break in mojoWindowRepainter()") Dec 15 18:12:28 wait, not that Dec 15 18:13:21 "scripts" is hanging now, but it was returning this before: Error: "TypeError: Cannot read property 'ref' of undefined" formatting response Dec 15 18:13:34 Mojo.Log.info(response.responseText) ? Dec 15 18:14:00 or Mojo.Log.info(Object.toJSON(response)) Dec 15 18:16:34 how do you get the geotag from pics taken with the camera app? Dec 15 18:23:26 ambackstrom: beware of using Mojo.Log, it has (an undefined) buffer size limit, which when reached returns spurious "nulls" everywhere Dec 15 18:23:57 anyone have any idea how to make an entire row clickable, ala tweed's help scene? Dec 15 18:24:01 ie. if you have a very large string, just stick it on your stage into a div or something... Dec 15 18:24:46 yetdog: in a List? Dec 15 18:24:53 yeah, short list Dec 15 18:25:26 yetdog: there's a Mojo.Event.listTap Dec 15 18:25:35 ah duh Dec 15 18:25:52 i use it to make my whole row clickable in a List widget, but i'm not sure if that's what you are looking for... Dec 15 18:26:25 yes definitely what i am. i only have dynamic list experience thru json, though Dec 15 18:26:34 using list-container, list-entry Dec 15 18:26:54 well..just thinking out loud Dec 15 18:27:02 just keep it "dynamic" and set up the list object manually Dec 15 18:27:06 duh matt :) Dec 15 18:27:38 blah - my resubmit has been in "being reviewed" status for over 24 hrs :( hehe Dec 15 18:28:20 See? Doughnuts. Dec 15 18:28:41 i guess so FoxFireX! Dec 15 18:28:55 i thought for sure it'd be a quick one. so i pinged my manager Dec 15 18:29:11 * FoxFireX tried to tell you, but did you listen to him, oh no, you didn't, didja? Just a harmless little bunny... Dec 15 18:29:22 * yetdog tucks tail between his legs Dec 15 18:29:27 * FoxFireX kids. Dec 15 18:29:30 :) Dec 15 18:47:32 hi again Dec 15 18:58:38 hrmm Dec 15 18:58:49

stuff Dec 15 18:58:52 how do i get stuff? Dec 15 18:59:00 i thought it might be nextsibling Dec 15 18:59:14 * swisstomcat scratches head Dec 15 19:00:34 * FoxFireX tends to use innerHTML. Dec 15 19:00:49 and then regex? Dec 15 19:01:57 I tend to go down to the actual element. Dec 15 19:02:05

stuff Dec 15 19:02:14 the html is given :( Dec 15 19:02:14 this.controller.get('iwantthis').innerHTML Dec 15 19:02:25 Ah, string. Dec 15 19:02:46 Is it always

Something or might the markup change? Dec 15 19:02:49 i would have to interpret innerhtml Dec 15 19:03:10 it's probably the same Dec 15 19:03:34 Well, that changes the approach. I mean, if it's ALWAYS that, you could use some simple substring commands. Dec 15 19:03:48 But if it might change (or if you want to code more defensively) regex is probably better. Dec 15 19:04:08 well, something is not the only thing i have to parse out Dec 15 19:04:25 only the only thing i couldn't get out so far with following the childnodes Dec 15 19:05:04 what I was going to say...grab

, firstChild is , so firstChild.innerHTML of

should have it Dec 15 19:05:15 If you've got a DOM reference, you should be able to drill down to the element. Dec 15 19:05:27 What he said. Dec 15 19:05:30 oh Dec 15 19:05:37 that is what you meant Dec 15 19:05:53 let me try it Dec 15 19:06:52 hmm .. undefined Dec 15 19:08:42 swisstomcat: firstChild of

is undefined? Dec 15 19:08:47 yeah Dec 15 19:09:11 hmmm, that should not be the case Dec 15 19:09:34 if it's

something

Dec 15 19:09:42 crap Dec 15 19:10:00 it's "\n-something Dec 15 19:10:07 ah Dec 15 19:10:14 bad carriage returns Dec 15 19:10:38 that sucks Dec 15 19:10:45 run it through something to get rid of the \n....not sure how to do it, somebody in here knows Dec 15 19:11:08 Or traverse the nextSiblings until you get the element. Dec 15 19:11:36 \n shouldn't even be seen in HTML, right? Dec 15 19:11:45 Converts to whitespace. Dec 15 19:11:47 or am I misunderstanding the whole thing? Dec 15 19:11:55 Text node containing whitespace. Dec 15 19:12:03 ah Dec 15 19:12:15 it's not seen in the browser, i see it using firebug Dec 15 19:12:26

would have two children, #textnode and . would then have a single #textnode child. Dec 15 19:12:54 it actually has 24 childnodes Dec 15 19:13:13 Not from what you showed us. :) Figured there was more content than you'd pasted. Dec 15 19:13:29 i'm keeping my cards close to the chest :) Dec 15 19:13:33 hehe Dec 15 19:13:48 walk the children until you find the one you want Dec 15 19:13:59 Well, if you have control over the HTML as it's generated, do yourself a favor and insert ID nodes that you can grab quickly. Dec 15 19:14:02 then innerHTML or value will be correct Dec 15 19:14:09 too bad i don't have that control Dec 15 19:14:10 If you don't, then walk the children and guess, as sugardave says. Dec 15 19:14:36 childnote 1 is b Dec 15 19:14:59 is it 0-indexed? Dec 15 19:15:03 yeah Dec 15 19:15:05 There may (may) be an attribute called innerText. If you can get that, you may be able to get the non-HTMLized content of the tag. Probably includes lots of whitespace, though. Dec 15 19:15:25 And your other 22 or so tags. Dec 15 19:15:25 childnode[1[.firstchild.nodevalue is something Dec 15 19:15:37 i hope Dec 15 19:15:55 is there an 'allChidlren' or just 'children' array? Dec 15 19:16:07 I think it's childNodes. Dec 15 19:16:19 yeah, childNodes Dec 15 19:16:20

.choldNodes[1].value Dec 15 19:16:24 childNodes Dec 15 19:16:25 even Dec 15 19:16:34 yahoo! Dec 15 19:16:36 * FoxFireX seems to have a chold right now. *hack* Dec 15 19:16:53 childnode[1].firstchild.nodevalue is it Dec 15 19:16:57 phew Dec 15 19:17:09 hey, alright Dec 15 19:17:22 thanks for your support, guys Dec 15 19:17:27 and thanks firebug :) Dec 15 19:18:49 http://pastie.org/744485 Trying to return the full transport object in the Twitter.request function. Any ideas? Dec 15 19:18:50 The heck is up with these splits? Dec 15 19:19:43 catalystmediastu: i use this Dec 15 19:19:45 var request = new Ajax.Request(event.item.link, { Dec 15 19:19:45 method: 'get', Dec 15 19:19:45 asynchronous: true, Dec 15 19:19:45 evalJSON: "false", Dec 15 19:19:45 onSuccess: this.ParseDetailResult.bind(this), Dec 15 19:19:46 on0: function (response) { Dec 15 19:19:48 // connection failed, typically because the server is overloaded or has gone down since the page loaded Dec 15 19:19:51 Mojo.Log.error("Connection failed"); Dec 15 19:19:53 }, Dec 15 19:19:55 onFailure: function(response) { Dec 15 19:19:57 // Request failed (404, that sort of thing) Dec 15 19:19:59 Mojo.Log.error("Request failed"); Dec 15 19:20:01 }, Dec 15 19:20:03 onException: function(request, ex) { Dec 15 19:20:05 // An exception was thrown Dec 15 19:20:07 Mojo.Log.error("Exception"); Dec 15 19:20:09 }, Dec 15 19:20:11 }); Dec 15 19:20:13 and then Dec 15 19:20:15 XXAssistant.prototype.ParseDetailResult = function(transport) { Dec 15 19:20:21 var HTMLString = transport.responseText; Dec 15 19:20:25 paste.pocoo.org Dec 15 19:20:31 sorry Dec 15 19:20:34 for gods sake swisstomcat webos.pastebin.org Dec 15 19:20:43 :( Dec 15 19:20:55 allright, i'm sorry Dec 15 19:21:35 Thanks swisstomcat: I'll see if that'll work for me! Dec 15 19:27:15 if i want to have a list item open a web link, or a new email link, how can i do that programatically? Dec 15 19:27:32 basically, when the list item is clicked, how to i open an URL from my click function? Dec 15 19:30:14 I think you'll need to go look at the services APIs for that sort of stuff. Dec 15 19:30:32 There are serviceRequest calls you can make to launch the browser, email client, etc. with specific links, content, whatever. Dec 15 19:33:06 is there anyone from the Palm media group or engineering in general around? Dec 15 19:33:35 PuffTheMagic: they probably all netsplitted Dec 15 19:34:18 PuffTheMagic: Offtopic, but thanks a lot for putting that theme song in my head. :P :) Dec 15 19:34:47 what theme song? Dec 15 19:34:54 Yours. Dec 15 19:35:11 "Puff the Magic Dragon, lived by the sea...." Dec 15 19:35:21 what is that a "theme song too" Dec 15 19:35:31 (I think. Been ages.) Dec 15 19:35:51 maybe there was a cartoon from it Dec 15 19:36:00 but i thought it was just a song on a album Dec 15 19:36:07 Yeah, there was a movie at some point. Dec 15 19:36:12 Used the song from the album. Dec 15 19:38:21 * sugardave is frolicking in the autumn mist. Dec 15 19:38:34 lol Dec 15 19:39:46 hey FoxFireX yeah.. Dec 15 19:39:50 found the browser open call Dec 15 19:39:54 right after i wrote in here :) Dec 15 19:40:04 * yetdog sometimes finds the echo chamber effect works Dec 15 19:43:44 wohoo Dec 15 19:43:49 * swisstomcat jumps up and down Dec 15 19:43:52 it's working Dec 15 19:44:01 * FoxFireX is now nostalgia tripping. Dec 15 19:54:53 little Jackie Paper... Dec 15 19:58:07 are Mojo.Depot databases automatically removed when an application is uninstalled? Dec 15 19:58:17 i know that cookies go down the drain for sure Dec 15 20:01:11 istojic: supposed to be Dec 15 20:01:19 local sqlite dbs are Dec 15 20:01:23 not external ones Dec 15 20:03:16 aha, so if i create a Depot with ext: as the name prefix, it'll stick? Dec 15 20:03:30 * istojic rubs his hands in glee Dec 15 20:03:42 does depot take ext: like a db does? Dec 15 20:03:58 and don't depend on it, rboatright reported it and it's bound to be fixed at some point Dec 15 20:05:28 So, when is my Palm Pre going to feel like the powerful, multisituational pmp and pocket p Dec 15 20:06:01 Guess his client didn't like what he was saying. Dec 15 20:06:59 lol Dec 15 20:09:02 lol Dec 15 20:13:58 so i just posted a "bug report" on the Palm forum regarding the "palmaudioencoder" gstreamer plugin and its lack of timestamps info from the output stream... what do you think the odd are of someone from engineering actually seeing the post and responding? Dec 15 20:14:57 so where is "member serices" on the palm dev page? Dec 15 20:15:07 i just got accepted and dont see the link they said to use Dec 15 20:16:07 found it Dec 15 20:16:15 membership details... Dec 15 20:16:29 arggss Dec 15 20:20:39 PuffTheMagic: you never know...plus, if you get chuqui's attention about it, he'll make sure someone seesit Dec 15 20:22:00 sugardave: i sent him an e-mail about getting in contact with someone in engineering (or the media group specifically) last week and havent heard back Dec 15 20:23:01 the damn audio encoder strips off the timestamps making it impossible to mux properly with a video stream Dec 15 20:23:09 audio and video alone a fine Dec 15 20:23:26 i really wanted to get Precorder done before xmas Dec 15 20:24:00 but that might be impossible unless i get somwhere using TI's opensource gst plugins Dec 15 20:24:13 they work on omap35xx so they should work on a 3430 Dec 15 20:25:47 is the video recorder done yet ;) Dec 15 20:26:23 Bmyers_qwerty: sorta Dec 15 20:26:34 i mean, we can record video Dec 15 20:26:37 just kidd'n.. Dec 15 20:26:39 and we can record audio Dec 15 20:26:44 yes i have the alpha Dec 15 20:26:45 and we can mux them together Dec 15 20:26:50 but they get out of sync real quick Dec 15 20:26:53 oh Dec 15 20:27:21 i had a priceless 15 sec video of my daughter thanks to your efforts and others Dec 15 20:27:33 good evening youngsters Dec 15 20:27:51 well what ever you used i think was zsoc and Roy-Pre101 Dec 15 20:27:59 o Dec 15 20:28:05 i didnt get sucked into this till this month Dec 15 20:28:16 well then unthank you.. Dec 15 20:28:18 :) Dec 15 20:28:23 lol Dec 15 20:29:00 you can thank me a week or so when the next version comes out with a C service instead of Java :D Dec 15 20:29:15 omg, i would think so Dec 15 20:29:22 c service should help Dec 15 20:29:28 i wish i could do c on this thing Dec 15 20:29:38 you can Dec 15 20:29:38 i'm used to A DEBUGGER Dec 15 20:29:55 yeah yeah, cross platform Dec 15 20:30:11 cross platform? Dec 15 20:30:15 i just havent gotten the sandbox together for that Dec 15 20:30:32 do you compiler inside the device? Dec 15 20:30:52 a "homebrew native sdk" is on my todo list Dec 15 20:31:05 hell no Dec 15 20:31:23 that would be slow as hell Dec 15 20:31:23 well wtf is taking you? you shoudl be coding instead of goofing off in internet chat rooms Dec 15 20:31:42 Bmyers_qwerty: i've been coding since i got this damn phone Dec 15 20:31:56 me 2 Dec 15 20:32:52 i was gonna start on the native sdk 2 weeks ago but i promised zsoc i would start on the precorder service Dec 15 20:33:22 maybe i will release a beta native sdk for xmas :D Dec 15 20:33:26 fun fun Dec 15 20:33:50 you were obvously able to gather up what you needed Dec 15 20:34:26 except for the mux timing issue Dec 15 20:35:06 i just got accepted into the app devel program so i thought i was getting something done for the day Dec 15 20:35:09 well zsoc did all the info gathering, i just got recruited to make a nicer service Dec 15 20:36:01 a kinder , gentler service? Dec 15 20:38:12 Puff, would you like to try an app that keeps track of how much time you send on projects? Dec 15 20:38:19 or would that depress you too much? Dec 15 20:39:35 it would probably be depressing Dec 15 20:40:04 howdy folks Dec 15 20:40:44 howdy yourself.. Dec 15 20:42:40 hallo Dec 15 20:42:44 hows the world today Roy? Dec 15 20:58:00 come on palm APPROVE IT Dec 15 21:03:21 calm down Dec 15 21:03:31 or they might delay it Dec 15 21:04:22 besides they are busy approving localized sports apps... zing Dec 15 21:04:32 ;) jk of course Dec 15 21:04:32 :-\ Dec 15 21:04:52 hehe Dec 15 21:05:00 my app works 80% .. wohoo Dec 15 21:05:16 time to install it on the device Dec 15 21:06:31 hahahaha Dec 15 21:06:41 maybe if i submitted the same app 50 times, changing the spelling each time, id be in Dec 15 21:06:48 what does your app do Dec 15 21:07:05 couple of them, one is a live setlist app for DMB, for when there's a show going on Dec 15 21:07:15 the other is to browse setlists from the band's entire tour catalog Dec 15 21:08:31 yetdog: did you get the stars working? Dec 15 21:08:39 i remember the discussion Dec 15 21:09:28 oh yes :) Dec 15 21:09:34 just included the img src code in the json Dec 15 21:09:38 easy peasy :) Dec 15 21:09:47 just had to figure out the img path format Dec 15 21:10:03 cool Dec 15 21:11:59 I have a Mojo.Log.info('test') before a setupWidget() operating on a list. The list is populated so I know code is executing that far, but I don't see my info message in /var/log/messages Dec 15 21:12:07 hey everyone Dec 15 21:12:18 amback - emu or device? Dec 15 21:12:45 device at the moment Dec 15 21:12:59 thats the problem Dec 15 21:13:09 someone in here helped me - you need to run a command line - palm-log Dec 15 21:13:15 to connect to your device and check logs for your app Dec 15 21:13:24 mojo.log.info doesnt write to /var/log/messages on the device Dec 15 21:13:48 ah, ok Dec 15 21:13:56 so i can still test on the device, i just need to use palm-log Dec 15 21:14:05 yep! Dec 15 21:14:07 Mojo.Log.error should work too on both sides Dec 15 21:15:53 yeah, testing info(), warn(), and error(), only error() has output Dec 15 21:16:04 i remember reading something about a framework json file that sets log level Dec 15 21:16:26 yetdog, why include in the json Dec 15 21:16:29 your images Dec 15 21:16:44 ivebeen using them and I havent needed to include them in the json Dec 15 21:17:39 like Dec 15 21:17:59 "rating":"" Dec 15 21:18:07 yes Dec 15 21:18:17 thats how i do it Dec 15 21:18:31 ah ok so you can address it as rating? Dec 15 21:18:47 exactly Dec 15 21:18:53 ok gotcha Dec 15 21:19:02 instead of trying to manipulate the data once it gets to the device Dec 15 21:19:07 just have the server do it and feed the img string Dec 15 21:19:20 i got stuck on it before thinking it wouldnt work because i had something like ../images/ Dec 15 21:19:25 just had to get the right reference Dec 15 21:19:31 yeah no thats fine, jjust wasnt sure what the purpose was Dec 15 21:20:12 v2 of my app will store user credentials and do personal stats stuff/i was at this show, write reviews, etc Dec 15 21:20:23 already handled the login page, stores credentials in a cookie and reads the properly :) Dec 15 21:23:51 Hi, I'm looking for a way to set horizontal accuracy via luna-send Dec 15 21:26:41 what do you mean exactly? Dec 15 21:27:37 there is a method for setting location Dec 15 21:27:42 which is awesome Dec 15 21:27:48 ah, gps Dec 15 21:27:51 but I need to set the accuracy as well Dec 15 21:33:01 how can you tell if you've reached the bottom of a list with mojo? Dec 15 21:33:42 where or how? with a tap? Dec 15 21:34:03 when the user scrolls to the bottom Dec 15 21:34:34 ont sure exactly what you're asking. just be able to tell if they've scrolled to the bottom of the list? Dec 15 21:34:40 yeah Dec 15 21:34:52 or where they are on the list at the least so i could calculate it Dec 15 21:35:09 on iphone, you could hookup a callback that would fire every time the user scrolled a scrollview Dec 15 21:35:24 does the scroller have any methods? Dec 15 21:35:36 and use the offset inside the "bigger" to calculate if they have hit the bottom or not Dec 15 21:36:45 it would be something like if (totalSize-currentOffset < scrollViewHeight) { // do something } Dec 15 21:37:06 but with webos i can't figure it out Dec 15 21:37:24 hmm Dec 15 21:37:59 getScrollPosition Dec 15 21:38:03 is a method of the scroller Dec 15 21:41:44 are you looking to add more to the list once they get to the end of the list? Dec 15 21:42:20 is there a way to getScrollPosition continuously? Dec 15 21:45:16 isn't there also a renderlimit on lists or something? Dec 15 21:45:37 yeah, i had to set mine to stop the list from greying out when i did the back-gesture on longer lists Dec 15 21:45:46 not sure why the LIMIT would help with that but it did Dec 15 22:01:24 Hey I asked this before, but what is everyone using for irc on windows other than MIRC Dec 15 22:02:29 what's the proper way to access this.controller if i've descended into an ajax onsuccess callback? Dec 15 22:02:40 you have to bind the callback Dec 15 22:03:05 so when you give it a success callback, you have type this.callbackSuccessFunction.bind(this) Dec 15 22:03:53 then you can access this.controller within your callback Dec 15 22:05:02 CTLAdvance: I use HydraIRC on Windows Dec 15 22:07:21 anyone want a Google Voice invite? GDial Pro is a nice Palm Pre app that uses it. :) Dec 15 22:08:04 don't everyone ask for one at once now.... Dec 15 22:09:15 just mirc for me CTLAdvance, but when im at home on my mac i use colloquy, i like that better Dec 15 22:09:24 i have gvoice, but neither of the google dialer apps worked for me Dec 15 22:09:29 must be something i'm doing wrong :) Dec 15 22:09:43 mikewx: mine works fine, it calls me back and connects a google voice session. Dec 15 22:10:03 Thanks for the tip Dec 15 22:10:11 yetdog did you pay the 20 for mirc? Dec 15 22:10:22 nah i use it in demo/freeware version Dec 15 22:10:44 i'm need to determine how google voice bills against my minutes Dec 15 22:10:58 i think it counts as a landline number, thus not free. but i haven't investigated that yet Dec 15 22:11:12 m55: what if i want to delegate things in setup() to another function within my assistant? how do i preserve "this"? Dec 15 22:11:55 ambackstrom: what do you mean exactly? Dec 15 22:12:59 I use Google Voice more for visual voicemail than for dialing out, unless I need to make an international call - in which case you'll save. Dec 15 22:13:11 oh, he's gone. :) Dec 15 22:14:09 ambackstrom: any method within your assistant class will have the correct 'this' unless its being called in a context outside the class Dec 15 22:14:17 the only exception is if you have closures Dec 15 22:15:39 in which case cache the this object like var sceneassistant=this, and then use sceneassitant within the closure to refer to the correct this Dec 15 22:16:34 hmm Dec 15 22:16:48 If in doubt of the context a method will execute in, like as a callback from another function....bind it to the assistants 'this' when you pass it as a callback Dec 15 22:16:55 it works in the sub-function called from setup(), but not in the callback using .bind() Dec 15 22:17:27 window.pageXOffset,window.pageYOffset,document.body.scrollTop,document.documentElement.scrollTop all return 0 whenever i scroll within a window in mojo Dec 15 22:17:35 jfelectron: like onSuccess: this.someFunction.bind(this)? Dec 15 22:17:38 window.onscroll gets called Dec 15 22:17:44 m55...could that be because the window is still static Dec 15 22:17:49 its the *scroller* that changes? Dec 15 22:17:51 (totally guessing) Dec 15 22:17:54 ambackstrom: that doesn't work? Dec 15 22:18:15 yetdog: but why would window.onscroll get called then? Dec 15 22:18:21 ambackstrom: does it return to the callback? Dec 15 22:18:31 hmm yeah... Dec 15 22:18:44 all those methods you named tho... Dec 15 22:18:46 jfelectron: nope, doesn't work, as I move around the same setupWidget() code. it is in the callback, i verified with Mojo.Log.error() Dec 15 22:18:51 those arent values are they? Dec 15 22:18:54 aren't they functions? Dec 15 22:19:00 yeah they are values Dec 15 22:19:13 scrollTop whould return what? Dec 15 22:19:14 should* Dec 15 22:19:35 it gives you the offset from the top of the document and your current position within it Dec 15 22:19:41 ok..shite Dec 15 22:19:54 do javascript:alert(document.documentElement.scrollTop); in some page you've scrolled in Dec 15 22:20:06 ambackstrom: you've verified the callback is called? Such as with a Mojo.log statement in the callback... Dec 15 22:20:23 jfelectron: yeah. hey, can i not call setupWidget() outside setup()? Dec 15 22:22:51 hmm...have you tried setting up the widget with an empty model and then just updating the model following your ajax request? Dec 15 22:23:54 yeah i think that's what i need to do. finding the code now. Dec 15 22:24:13 if a widget is setup after the page renders....you can force a re-render with a call to activate() Dec 15 22:24:26 i also see a modelChanged() Dec 15 22:24:44 yes, thats it its already setup Dec 15 22:25:24 so if you set it up in setup, you can call this.controller.modelChanged('widgetID') when you update the model Dec 15 22:25:48 what kind of widget are you working with? Dec 15 22:26:00 TextField Dec 15 22:27:06 got it, nice. Dec 15 22:27:36 nice new webos book on amazing Dec 15 22:27:39 amazon* Dec 15 22:27:57 yetdog: a dev book? Dec 15 22:28:04 yeah Dec 15 22:28:10 yetdog: author/title? Dec 15 22:28:20 practical palm pre webos projects Dec 15 22:28:24 by frank zammetti Dec 15 22:28:31 thanks! Dec 15 22:28:35 just ordered it. i have the iphone dev book by the same author Dec 15 22:28:38 i liked it a lot Dec 15 22:29:09 nice Dec 15 22:39:24 awesome, my app is finally displaying data from the ajax call. thanks guys :) Dec 15 22:39:38 ambackstrom: t his place is awesome Dec 15 22:40:56 ambackstrom: its exhilirating! Dec 15 22:42:41 im sad the main part of my app is done. tweaking stuff just isnt as fun ;) Dec 15 22:48:45 man, when your app makes it thru reviewing in 24 hours, then takes at least twice that when all you have to do is resuibmit w/ a help scene..that's frustrating :( Dec 15 22:48:53 esp when all these goddamn spam apps flood the store Dec 15 22:49:07 yep yep Dec 15 22:53:22 jfelectron - any idea how long it should take for my resubmit? Dec 15 22:53:28 it went "being reviewed" yesterday morning Dec 15 22:53:31 still at that state now :( Dec 15 22:53:51 who knows...I imagine with the end of the early access eminent they might have a backlog Dec 15 22:53:56 yetdog: it's pretty random Dec 15 22:54:12 strikes me as odd to be in review that long. queued, i can understand Dec 15 22:54:22 but once its in someones hands, esp if they've already done it once and only required one change Dec 15 22:54:26 you'd think itd be quick Dec 15 22:59:44 does anyone know if iframes are supported in scenes? Dec 15 23:00:44 or if you have programmatically modify the content of the webview widget without re-rendering the entire page. I don't see any methods to actually get and therefore modify the content Dec 15 23:02:37 is there a way to reduce the number of items model objects requested from a listWidget's itemsCallback? Dec 15 23:04:35 m55 you can set the length and update that dynamically Dec 15 23:04:51 not quite the same, but it sets an upper cap at least Dec 15 23:05:04 the lookahead probably modulates it as well Dec 15 23:07:49 if you dynamically increment the length in small steps within the itemsCallback, that will have the effect you want I think Dec 15 23:14:11 this.controller.get('my_list').mojo.setLength(10); is giving me a method undefined error Dec 15 23:14:24 how exactly can i send "setLength" to the list widget? Dec 15 23:17:01 hmm....that is the right method...are you sure this.controller is referencing the scene's controller? Dec 15 23:17:35 does this.controller.get('listID')...return the list? Dec 15 23:18:13 other methods work fine with it Dec 15 23:18:29 this.listWidget.mojo.noticeUpdatedItems(this.offset,this.listModel.items); Dec 15 23:18:30 works Dec 15 23:18:40 i'm calling it in the setup method Dec 15 23:18:51 right after the this.controller.setupWidget('my_list', this.listSettings, undefined); call Dec 15 23:21:59 dunno Dec 15 23:22:14 is it possible to have a filterList with a hidden list? Dec 15 23:23:25 I'm wondering if it can be used to implement a text field with suggestions Dec 15 23:24:05 oh nevermind.....I'm retarded....there is a filter field Dec 15 23:26:22 who wants to make an ORM for Mojo Dec 15 23:38:00 god freenode still jacked up today? Dec 15 23:39:13 its whack Dec 15 23:41:15 orwell.freenode.net is jacked up today Dec 16 00:12:52 how would I copy text from one mojo textbox to another onclick? Dec 16 00:14:18 Perhaps you can make the model of the first one the model of the other and then call modelChanged() Dec 16 00:15:42 onclick of what? Dec 16 00:23:32 Anybody here used Balsamiq for mockups? http://www.balsamiq.com/demos/mockups/Mockups.html Dec 16 00:24:03 well actually not onClick but onKeyUP Dec 16 00:24:37 haeffb: onKeyUP not onClick Dec 16 00:24:47 every time a user presses a key...you want to copy the text to another textbox? Dec 16 00:26:25 add an event listener to onkeyup Dec 16 00:26:36 sorry keyup Dec 16 00:26:39 yes exactly Dec 16 00:27:25 can do it with an html textbox, but not sure how with a mojo textbox Dec 16 00:27:46 what CTLAdvance said. Dec 16 00:30:43 ok now do I pass text from a mojo textbox to an textbox? Dec 16 00:31:32 can you do a this.controller.get("abc").innerHTML = xxx? Dec 16 00:31:48 * haeffb hasn't worked with html textboxes Dec 16 00:32:07 how would you set it in non-Mojo javascript? Dec 16 00:33:25 this is gonna be kinda confusing: but need to pass Mojo info to regular javascript that is non-mojo "regular" javascript will throw an error with any mojo stuff Dec 16 00:35:08 for example can't pass "this.model.originalValue" it will not work need to pass a "value from a regular textbox id Dec 16 00:35:34 document.getElementById('abc').value = 'new text' Dec 16 00:37:14 document.getElementById('abc').value = this.theOtherModel.value; (assuming you haven't changed the modelProperty of the mojo textbox) Dec 16 00:38:06 haeffb: ok will test that out, need to eat brisket first Dec 16 00:38:11 thanks! Dec 16 00:38:25 send some brisket this way. Dec 16 00:39:52 will do =) Dec 16 00:44:03 pretty neat haeffb. the mockup thing Dec 16 00:46:41 yeah, I thought it was awesome. also: http://gomockingbird.com Dec 16 00:48:47 haeffb: use them alot? Dec 16 00:49:07 that mashup stuff is really cool, kinda sucks it uses flash... Dec 16 00:52:20 haeffb: Nice stuff. Dec 16 00:53:33 Roy-Pre101: have what I need to write a small how-to Dec 16 00:53:42 LoneStar34: Great! Dec 16 00:54:24 just found them today Dec 16 00:54:38 just do not know what the title should be: rundown: using ajax, json 3rd party API, parsing the data... Dec 16 00:55:44 * haeffb just got a nice gift from Palm. Wonders how many copies Frank Zammetti will sell because of Palm...? Dec 16 00:56:22 LoneStar: you working on an ajax howto? Dec 16 00:57:16 LoneStar34: Accessing Web Services Dec 16 00:58:01 sugardave: thanks - "very simple and to the point" thnaks' Dec 16 00:58:13 np Dec 16 00:58:16 Bmyers_qwerty: yes Dec 16 00:58:28 it will be a code sample Dec 16 00:58:35 well hurry up and name it and post it.. I could use a jumpstart.. Dec 16 00:59:24 Ok will begin writting it now... Dec 16 00:59:31 ahhhhhhhhh Dec 16 01:01:44 will it take long? "So you think you can dance" is coming on soon and I'll need to sign off.. Dec 16 01:04:57 Bmyers_qwerty: about 30 minutes Dec 16 01:05:03 maybe less Dec 16 01:06:13 * haeffb promised my wife I'd write an app so she can track business mileage by end of year. Anybody wanna do it for me? Dec 16 01:07:09 I've got a cool Balsamiq mockup of what it should look like... Dec 16 01:10:32 * FoxFireX has been pondering adding business tracking to his app. "Concentrating on maintenance first, though." Dec 16 01:21:09 god. 2 full days of "being reviewed"? lol Dec 16 01:21:21 Bmyers_qwerty: almost done just cleaning it up Dec 16 01:27:59 yeah looks like things are slowing down Dec 16 01:28:10 this is day two for a simple update we put in Dec 16 01:29:19 damn. AT&T let's me browse the web while I talk on my phone. Verizon doesn't. Verizon are a-holes. Dec 16 01:29:22 Maybe they are consumed with the submission of thousands of free localized sports/food/etc etc apps Dec 16 01:29:44 At this rate we will pass android by this time next year Dec 16 01:29:47 * haeffb is going to make all my apps in different colors. Dec 16 01:29:48 http://www.webos101.com/Accessing_Web_Services Dec 16 01:30:01 myApp-Blue Dec 16 01:30:04 myApp-Red Dec 16 01:30:14 I like that idea Dec 16 01:30:25 I will do the same but also do it by area code Dec 16 01:30:31 myApp-212 Dec 16 01:30:37 myApp-red-212 Dec 16 01:30:44 myApp-Blue-212 Dec 16 01:30:52 myApp-red-614 Dec 16 01:31:03 myApp-blue-614 Dec 16 01:31:31 area code may not be granular enough. Customize by phone number. Dec 16 01:31:34 that alone should result in several thousand apps Dec 16 01:31:40 Oh yes Dec 16 01:31:45 well need a further drill down Dec 16 01:32:10 send me $4.99 and your phone number. I'll ad an app to the catalog just for YOU! Dec 16 01:32:32 It will remind you what your phone number is. Dec 16 01:33:04 I gotch ya Dec 16 01:33:19 andthen others can download it and be like dud I dld your phone number app Dec 16 01:33:35 Well pass the iphone store in 8 weeks Dec 16 01:34:16 We should also do individual restaurant apps Dec 16 01:34:24 based on address Dec 16 01:34:51 LoneStar34: what is "this.model.originalValue" supposed to be? Dec 16 01:41:02 u guys r bad Dec 16 01:43:07 haeffb: value form mojo text box Dec 16 01:43:21 form = from Dec 16 01:44:35 I am thinking of releasing a novel app: Dec 16 01:44:55 the catch each page will be it's own app Dec 16 01:45:16 .99$ per page for my romance novel Dec 16 01:47:08 why not post full examples with success and error handlers? Dec 16 01:47:35 ha! Dec 16 01:47:48 those 3 lines ARE the success handler. Dec 16 01:47:54 SORRY! Dec 16 01:48:28 oh, and then it goes on... Dec 16 01:48:58 i guess i got confused.. Dec 16 01:49:06 i get a little DOM sometimes.. Dec 16 01:49:34 it is a fully working sample, straight from a soon to be released app Dec 16 01:50:48 cool. whats the app? Dec 16 01:51:56 it is a search type app, Dec 16 01:52:27 its not a sports app? bummer Dec 16 01:53:30 no, but you will be able to search sports etc... Dec 16 01:54:51 is there a way to delete contacts from the device? just cleaned out google contacts and synced the contacts, but a lot of contacts that i deleted are still on my phone Dec 16 01:56:48 http://www.webos101.com/Calendar author? Dec 16 01:57:22 not sure Dec 16 01:57:35 who the author is Dec 16 01:59:06 has anyone created a text field with suggestions that are dynamic based on what is being typed? Dec 16 02:00:25 sounds like a JS library waiting for you out there Dec 16 02:00:43 jfelectron: yes but not for mojo Dec 16 02:01:13 LoneStar34: lol yeah...that's the crux Dec 16 02:02:51 jfelectron: now that i think about it, has the same problems I am facing right now with my code Dec 16 02:03:05 yes...that's what made me think of it Dec 16 02:03:30 actually a number of the widgets such as WebView and Text view seem somewhat limited in the ability to dynamically update their contents in response to user inputs Dec 16 02:03:30 sending mojo code to regular js and back to the stage Dec 16 02:10:46 have you tried rolling your own text widget? Dec 16 02:12:47 rolling? Dec 16 02:13:04 like making my own? Dec 16 02:13:09 so to speak...as in a cigarette or joint Dec 16 02:13:13 yes making Dec 16 02:13:42 humm... how difficult is it? Dec 16 02:13:54 dunno....wondering if I should Dec 16 02:14:41 it would be awesome, trying to find every workaround to something that should be easy... Dec 16 02:14:42 I don't see a reason why a standard javascript text box wouldn't work...though I'm not sure the keypresses will be handled correctly Dec 16 02:15:38 if you make an "" in a stage it looks just like the mojo ones Dec 16 02:15:39 it's easy enough to write special functions for the Mojo widgets to extend them: http://webos101.com/Extended_widgets Dec 16 02:16:04 good to know Dec 16 02:17:26 am I the only one who thinks the rounded corners make webOS look much cooler than Android? Dec 16 02:17:47 I'm a fan of the round Dec 16 02:18:47 sugardave: sure encapsulating the widget in a new object is great....but some of the widgets don't allow access to their content, new methods or not Dec 16 02:19:57 jfelectron: ah, yeah that's a problem Dec 16 02:20:03 the models are too abstract in some cases imo Dec 16 02:20:32 too abstracted rather Dec 16 02:26:05 which widgets don't allow access to content Dec 16 02:28:04 webview doesn't seem to...you only seem to be able to render content, not modify the DOM of the loaded content Dec 16 02:30:47 ah. webview is a wierd duck...? Dec 16 02:31:27 so currently there is no way to protect your source from even vaguely curious prying eyes... is that correct? Dec 16 02:31:41 fiftycal: that is correct Dec 16 02:32:07 well, I'm sure there are "ways," but they are not easy and provided Dec 16 02:36:14 has anyone tried obfuscation? Dec 16 02:36:44 The function is being called and the banner is being generated, but scene is not pushed: http://pastie.org/745114 Any ideas? Dec 16 02:36:50 I don't think palm specifically condones or discourages it Dec 16 02:41:02 catalystmediastu: for grins, try Mojo.Controller.stageController.pushScene('home'); instead Dec 16 02:43:19 Hmm, that didn't work either. I checked my sources.json and everything looked just fine :S Dec 16 02:43:59 strange...wrap it in a try/catch and see what it says, I guess Dec 16 02:44:43 you do have a scene named 'home' ? Dec 16 02:45:41 any speculation on what palm will have at CES? Dec 16 02:45:53 that you have tested by pushing from, for example, stage-assistant? Dec 16 02:46:42 haeffb: yes, and no to the second one. I'll try pushing it from the app-assistant in a sec. Dec 16 02:47:26 The try catch return TypeError: Object # has no method 'pushScene' Dec 16 02:47:31 app assistant? Dec 16 02:47:46 Mojo.Controller.appController.pushScene('home'); Dec 16 02:48:12 Mojo.Controller.appController.getActiveStageController().pushScene('home'); Dec 16 02:48:14 actually Dec 16 02:49:52 good call, sugardave Dec 16 02:50:13 sugardave: Ahh, I got it now. Thanks! Dec 16 02:50:17 np Dec 16 02:50:24 showBanner is a method of appController Dec 16 02:50:32 yep yep Dec 16 02:50:42 didn't catch that until looking just now Dec 16 02:51:12 this place rocks. hope it's still around when I get back to developing apps. Dec 16 02:51:42 I have learned a ton here Dec 16 02:51:46 it's great Dec 16 02:55:08 anyone here that can help me determine why my /dev/mapper/store-root mounted on / is at 99% full, I think its causing other issues, like not being able to apply the iphone spoof patch Dec 16 02:56:45 mikepre_: #webos-internals might be a better place for that ? Dec 16 02:57:36 yeah, tried a post there, 100 ppl online, no answer after 20 mintues...lol...lots of ppl idle I guess, thanks anyhow Dec 16 02:59:32 also, freenode has been acting up lately, so some people might be in-between connections **** ENDING LOGGING AT Wed Dec 16 02:59:57 2009