**** BEGIN LOGGING AT Wed Aug 06 02:59:59 2014 Aug 06 17:18:30 Morning Enyo! Aug 06 17:21:47 Howdy Aug 06 17:38:21 good morning Aug 06 17:38:50 Morning Zectbump! Aug 06 17:38:55 *Zectbump Aug 06 17:38:58 * dmanderson facepalm Aug 06 17:51:47 :) Aug 06 17:51:57 don't like the keyboard pattern? Aug 06 17:52:34 My fingers are still waking up :) Aug 06 17:53:14 I like it though, Zectbump, it's like fistbump, but better ;) Aug 06 17:54:43 haha Aug 06 18:51:21 hey Zectbumo Aug 06 18:56:37 hi GodGinrai Aug 06 18:56:58 did you get your stuff working using events? Aug 06 18:56:59 \o/ Aug 06 18:58:23 GodGinrai: No, I restructured it so that code lives in the parent. It makes more sense that way and removed the owner.owner code. Aug 06 18:58:30 I want to validate an input field to only allow numbers. What is the typical way of doing this in Enyo? Aug 06 18:59:38 What kind of browsers are you trying to support? Aug 06 18:59:46 modern browsers Aug 06 19:00:56 then you may be able to use HTML5 constraint validation Aug 06 19:01:36 Yeah you can do html input types http://www.html5rocks.com/en/tutorials/forms/html5forms/ Aug 06 19:01:50 There maybe an input mask on the community gallery for enyo Aug 06 19:02:14 Zectbumo: Aug 06 19:02:18 http://www.sitepoint.com/html5-form-validation/ Aug 06 19:02:57 in Enyo, you could use the attributes property to add the "pattern" attribute Aug 06 19:04:21 here's a more simple article about the constraint API: http://www.sitepoint.com/using-the-html5-constraint-api-for-form-validation/ Aug 06 19:04:40 :( don’t see anything in the gallery for input masks Aug 06 19:05:05 dmanderson: I might code one up this week. Aug 06 19:05:15 :) Aug 06 19:05:31 \o/ Aug 06 19:05:42 dmanderson: Although, it should probably be implemented as a change to enyo.Input Aug 06 19:05:48 to expost pattern as a property Aug 06 19:05:52 *expose Aug 06 19:06:00 Yeah, I was going to try and sneak it into the roadmap for Enyo 3 Aug 06 19:07:04 Really suprises me that it isn’t something that’s in there yet. Aug 06 19:07:39 Being how common the problem. Aug 06 19:07:57 and here's the MDN page for the constraint api: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Constraint_validation Aug 06 19:08:05 dmanderson: yea Aug 06 19:15:32 GodGinrai: and dmanderson_afk: Do you remember our little nestable components kind? Aug 06 19:15:42 trex005: yup Aug 06 19:15:57 I realized that the nested components are not addressable by this.$.NAME Aug 06 19:16:10 I was wondering if you knew of a way to fix that. Aug 06 19:17:10 trex005: interesting Aug 06 19:17:37 I'm guessing that's because their owner is the kind that they are nested inside of. Aug 06 19:18:10 trex005: owner is the deciding factor Aug 06 19:18:17 but IIRC, you set owner: this on them Aug 06 19:18:21 however I would think there would still be a way to make them addressable, concating arrays or something Aug 06 19:18:39 got a jsfiddle? Aug 06 19:19:01 just a moment Aug 06 19:19:26 http://jsfiddle.net/trex005/JL653/ Aug 06 19:19:51 ohhh crud, I came in right before a meeting .... sorry didn't look at the clock. I have to leave for a meeting in 7 minutes Aug 06 19:19:58 lol Aug 06 19:20:14 well, I'm gonna be heading home soon, so I'll get on IRC later and work w/ you on this ;) Aug 06 19:20:41 I don't know how I could set the owner otherwise.... I can't really pass it. Aug 06 19:21:23 There needs to be dual ownership here :) Aug 06 19:26:19 trex005: it works fine for me Aug 06 19:26:27 You must be thinking about it wrong. Aug 06 19:28:16 uhhh... JSFiddle doesn't give me an option to save anymore... Aug 06 19:30:48 trex005: http://jsbin.com/cogawaba/1/ Aug 06 19:30:54 Had to use JSBin Aug 06 19:31:03 because the JSFiddle Save button disappeared for some reason Aug 06 19:33:08 Well.... the main guy for my meeting didn't show up. So I'm here... I might vanish at any moment though Aug 06 19:34:21 not played with jsbin, but it looks like it'll do the trick :) Aug 06 19:35:46 I log the this.$ to the console Aug 06 19:36:02 and the nested test component is in this.$ Aug 06 19:36:11 as evidenced in that link I sent you Aug 06 19:37:55 why can't my brain think of what the enyo version of parent is....? Aug 06 19:39:08 hmmmm... Aug 06 19:39:40 Aside from giving the nested object a name, did you do anything? Aug 06 19:39:51 object = component Aug 06 19:41:13 In my project it just was not working. I had to use this.$.MyObj.$.test Aug 06 19:41:30 trex005, owner? Aug 06 19:42:05 Zectbumo: GodGinrai seems to have kept owner at "this", which is where it is in mine. Aug 06 19:49:42 I gave it a name and added the tap function Aug 06 19:50:56 bbl, will get on IRC when I get home Aug 06 20:58:18 trex005, you still there? Aug 06 22:10:21 Zectbumo, made any progress w/ your validation code? Aug 06 22:13:13 GodGinrai: not quite, but I got the idea. Enyo has nothing for me…yet. I actually got pulled in so many directions since then that I haven't been able to get back to it. But I should have time in about 5 min (IF nothing else happens :) Aug 06 22:13:45 I see Aug 06 22:21:23 jsfiddle was going crazy a minute ago. it was showing me someone else's collaboration session Aug 06 22:21:50 lol yea Aug 06 22:21:55 it seems messed up today Aug 06 22:22:10 the save button was gone earlier when I was trying to save a fiddle to send to trex005 Aug 06 22:22:18 I had to put the code on jsbin Aug 06 22:25:30 I wonder whats up with jsfiddle today Aug 06 22:25:51 some idiot pushed unfinished code to production is my guess Aug 06 22:26:28 "whoops, that's not the QA box!" Aug 06 22:27:29 yeah, I was in some session where they were talking spanish. I hope I didn't mess them up. they looked hard at work Aug 06 22:27:38 I almost deleted all their code Aug 06 22:27:40 lol Aug 06 22:28:07 I'm like, what is all this garbage. and then hovered above the delete key until I started seeing movement Aug 06 22:28:11 and names Aug 06 22:28:17 XD Aug 06 22:28:47 Imagine the conversation after you did that: Aug 06 22:28:56 yeah :) haha Aug 06 22:29:00 WTH! Aug 06 22:29:15 "F**K, the code! WTF! Alright, which one of you did it?" Aug 06 22:29:33 lol Aug 06 22:29:35 All of them start denying Aug 06 22:29:48 "This isn't funny you guys! I hadn't copied any of these changes!" Aug 06 22:30:15 lol Aug 06 22:30:38 it probably had my name on it, when I clicked it would splash a ring. They probably were going "¿quien is este Zectbumo?" Aug 06 22:31:01 lol Aug 06 22:32:13 okay, finally a moment of peace Aug 06 22:35:02 GodGinrai: so how would I set this html attribute to the input element? Aug 06 22:36:01 IIRC, enyo.Control has an "attributes" property Aug 06 22:36:16 where you can list attributes that are not exposed by your kind Aug 06 22:38:46 attributes: {type:”radio”} Aug 06 22:38:47 for instance Aug 06 22:39:50 yup Aug 06 22:46:45 GodGinrai: this html5 validation doesn't seem so "ajax" (or web app) friendly Aug 06 22:47:21 hrmm Aug 06 22:47:21 form submission, who does that anymore these days? Aug 06 22:48:13 A form can submit an ajax call as far as I am aware Aug 06 22:49:17 GodGinrai: so are you saying use
tag? Aug 06 22:50:10 I set a pattern and a min but it seems to not get triggered until a form submission. Which I'm not doing Aug 06 22:50:23 yea, just trigger a form submission Aug 06 22:52:16 I wonder if there is a javascript way to ask for validation from the input element Aug 06 22:53:33 yea Aug 06 22:53:35 there is Aug 06 22:53:40 oh okay, sweet, found that you can call willValidate() on the element Aug 06 22:53:47 ^that Aug 06 22:54:20 get the element w/ this.hasNode().willValidate() Aug 06 22:54:28 -willValidate Aug 06 22:54:33 this.hasNode() Aug 06 22:54:35 gets you the node Aug 06 22:55:54 ah! and that's what you were saying felt weird the other day. should be getNode Aug 06 22:56:10 yup Aug 06 22:56:46 dmanderson: why not just put an alias getNode()? Aug 06 22:57:09 I’ll make a sticky :) decision made way before my time Aug 06 22:58:35 maybe it's to really drive in that you might not have a node, sir. Aug 06 22:59:01 I still think the method is funny though Aug 06 22:59:14 you would should know if nothing is returned you don’t have a node, before needing to check if it has one. Aug 06 22:59:23 I can see uses for hasNode Aug 06 23:00:30 so do I need to do if(this.hasNode()) checks to be sure or am I safe in knowing there is always a node for my enyo.Input component? Aug 06 23:01:12 Zectbumo, you only need to check to see if it has a node before rendering is complete Aug 06 23:01:16 once it is rendered, it has a node Aug 06 23:01:51 ok so this code doesn't run until after the button is present anyways, so I should be safe Aug 06 23:01:58 yup Aug 06 23:20:43 oh holy s*** Aug 06 23:20:46 I just realized Aug 06 23:20:50 sugardave is back!! Aug 06 23:20:50 :D Aug 06 23:21:04 dmanderson: is this your doing? Aug 06 23:23:58 ok so willValidate seems broken Aug 06 23:24:01 http://jsfiddle.net/Zectbumo/q1y7t8c1/ Aug 06 23:28:11 Nah, that's working as expected Aug 06 23:28:15 we just read it wrong Aug 06 23:28:29 you want "checkValidity" Aug 06 23:28:50 willValidate just checks whether it is a candidate for validation Aug 06 23:30:01 web programming is hard Aug 06 23:30:07 lol Aug 06 23:55:17 LOL no he came back on his own :) Aug 06 23:55:25 although I have been tweeting about it a lot :) Aug 07 00:00:25 nice Aug 07 00:02:52 http://jsfiddle.net/Zectbumo/hoLp6fdo/ Aug 07 00:03:16 dmanderson: I looked at the other samples and mine is not really sampling anything. Aug 07 00:03:36 so I'm not sure it fits in any of the buckets you mentioned Aug 07 00:04:47 GodGinrai: V1.0 I tihnk Aug 07 00:04:59 hey Zectbumo Aug 07 00:05:09 Just a suggestion Aug 07 00:05:23 for your components, I would use lower camelcase names Aug 07 00:05:31 their names are basically variable names Aug 07 00:05:34 oh Aug 07 00:05:43 right Aug 07 00:05:58 so instead of this.$.Chart, you would have this.$.chart Aug 07 00:06:01 etc. Aug 07 00:07:23 btw, I like it so far :) Aug 07 00:07:40 hmm, but BarChart would be barChart? Aug 07 00:07:50 or do you mean only the sub components? Aug 07 00:08:10 Any name of a Kind definition would be capitalized Aug 07 00:08:20 so BarChart would remain BarChart Aug 07 00:09:32 got it, done. changed on my local code Aug 07 00:10:05 cool cool Aug 07 00:10:08 so is there any event handler that I am pulling a noob move on where I should be returning a true or false? Aug 07 00:10:52 I remember something about a setListItem stressing how important it is to return true Aug 07 00:11:05 depends on if you want that enter key to propagate Aug 07 00:12:24 past App, not really. Then I return true? Aug 07 00:12:51 yea Aug 07 00:13:00 k done Aug 07 00:13:55 really, the suppressing of events matter most for when your code is deep in the tree and parents might do things with the event that you don't want them doing Aug 07 00:14:02 *matters Aug 07 00:21:09 which it might, I was talking to dmanderson about maybe including this in the samples Aug 07 00:21:29 oh neat Aug 07 00:23:44 if it finds a place to live. I'm not sure where Aug 07 00:23:57 it doesn't really feel like a sample, it's more of a demo Aug 07 00:24:53 I actually just sent that fiddle off to a friend who is just learning Enyo as a simple example of how multiple kinds can interact together Aug 07 00:26:56 GodGinrai: cool! Aug 07 00:27:07 thanks for all the help. and it was a lot. Aug 07 00:27:12 yw :) Aug 07 00:27:23 sitting down to eat, be back later Aug 07 00:27:27 me too Aug 07 01:21:57 back Aug 07 01:23:42 back Aug 07 01:27:58 Hey dmanderson, got any contacts that can confirm if any of the webOS TVs support linear PCM surround sound? Aug 07 01:28:22 I want to find a way to get my Wii U's surround sound working if I get a webOS TV Aug 07 01:51:53 my next TV http://tinyurl.com/qz79xew Aug 07 01:58:32 I'm thinking about getting the 47" Aug 07 01:59:12 it's a good size. It's best to match the size to the room. A lot of people over do it Aug 07 02:00:17 http://howto.wired.com/wiki/Calculate_the_Optimum_TV_Screen_Size_for_Your_Room Aug 07 02:06:04 yea, my viewing distance is ~7.5" Aug 07 02:06:15 I currently have a 47" TV and it seems to work just fine Aug 07 02:06:30 I may consider a larger size if the price is not that much different. Aug 07 02:06:49 although I saw the 50" model has a lower mci than the 47" model Aug 07 02:07:06 and since I also use my television for gaming, I want the best refresh rate and mci possible Aug 07 02:07:53 also, it looks like the 47" is IPS but the 50" is not Aug 07 02:08:03 also, correction about the viewing distance: 7.5' Aug 07 02:12:25 is that that feature that makes everything smooth, I turn that off Aug 07 02:12:43 it makes everything look like it was taken with a camcorder Aug 07 02:12:51 it feels "cheap" Aug 07 02:15:01 what, MCI? Aug 07 02:15:14 MCI is some BS number that LG uses to mask things like refresh rate Aug 07 02:15:17 not a feature **** ENDING LOGGING AT Thu Aug 07 02:59:58 2014