**** BEGIN LOGGING AT Mon Aug 04 02:59:59 2014 Aug 04 07:58:00 morning enyovians Aug 04 15:56:56 Hello folks, I was wondering if I'm making something tabular, just as a web form, what is the best layout option? Surely not a ton of fittable rows and columns? Aug 04 15:58:48 tabular? Aug 04 15:59:01 As in, using tabs? or tables? Aug 04 15:59:53 tables Aug 04 16:00:04 as in a grid layout Aug 04 16:00:31 you could use enyo.DataTable Aug 04 16:04:40 someone should re-write the api docs so that they load content dynamically Aug 04 16:04:56 waiting a minute plus for them to load is a drawback to the platform Aug 04 16:05:51 They are currently in the progress of a documentation overhaul in the enyo team Aug 04 16:06:44 They are changing their comments, etc. and IIRC, there were plans to use something like JSDoc so that the data is all generated beforehand Aug 04 16:06:50 instead of realtime Aug 04 16:07:34 although. if you keep the API open, then you don't have to wait for them to load every time :P Aug 04 16:18:52 GodGinrai: do you have any samples of DataTable anywhere? Aug 04 16:19:39 trex005: I do not. The only tables I have made in Enyo were made before they added enyo.DataTable Aug 04 16:20:28 dmanderson_afk may be able to help you with examples when he shows up. I'll see if I can maybe throw a JSFiddle together Aug 04 16:21:23 I wonder if it was from this https://github.com/MaKleSoft/enyo-plugins/tree/master/v1/Table Aug 04 16:27:59 nope, it isn't Aug 04 16:28:17 the code they've got in the nightly almost looks like skeleton code that doesn't do anything :\ Aug 04 16:28:25 I'm not even sure enyo.DataTable actually works Aug 04 16:41:43 no wonder I could not find examples :) Aug 04 16:44:45 Anyway Aug 04 16:44:49 when I did tables before Aug 04 16:45:10 I created kinds that represented the different parts of the table Aug 04 16:45:22 a table kind, a table row kind, and a table cell kind Aug 04 16:46:01 I made them divs w/ the display: table-* style rules, tho', due to IE's problem w/ innerHTML on table elements Aug 04 17:17:57 GodGinrai: I think I can just use tag:"blah" if I need to do that. But I was hoping there was a cleaner layout. Aug 04 17:22:23 A cleaner layout in what way? Aug 04 17:23:14 A Grid, with X,Y width and Height would be cool :) Aug 04 17:23:23 all in int :) Aug 04 17:23:47 trex005: enyo.DataGridList? Aug 04 17:25:36 I don't know :) Aug 04 17:25:40 Looking into it Aug 04 17:26:28 Ahhh, I have this mostly coded as a table now anyway :) Aug 04 17:26:51 lol Aug 04 17:29:06 GodGinrai: have you dealt with fileuploads at all? Aug 04 17:29:43 yes, and they are a bitch Aug 04 17:32:01 that was not what I was hoping to hear Aug 04 17:32:15 to make it worse, I'm hoping to do it through socket.io Aug 04 17:32:28 but if I can't I'll find another way Aug 04 17:32:58 but I need some way to grab the local file with enyo, then I'm home free. Aug 04 17:33:44 what browsers do you need to support? Aug 04 17:33:44 morning all Aug 04 17:34:04 hey dmanderson, what's w/ enyo.DataTable? Aug 04 17:34:26 trex005 re: api docs, that rewrite is underway Aug 04 17:34:33 ;-) Aug 04 17:34:48 GodGinrai whats with it, in terms of? :) Aug 04 17:34:55 GodGinrai: well.... we're talking a FB game, but I'd like to go mobile too Aug 04 17:35:20 dmanderson: I looked at the code for it, and it looked like a rename of enyo.DataRepeater... does it even work in its current form? Aug 04 17:36:00 trex005: I mean specific browsers. If you need to support old versions of IE, you are going to *have* to use Flash Aug 04 17:36:16 no old IE Aug 04 17:36:43 Is that good enough ? :) Aug 04 17:37:20 trex005: if the browser compatibility on this page matches your requirements, you should use this: https://developer.mozilla.org/en-US/docs/Web/API/FormData Aug 04 17:38:04 You can use enyo.FormData to be safe, but I never got around to trying that w/ IE to see how well their polyfill works. Aug 04 17:38:06 yikes, so not really mobile friendly... Aug 04 17:38:13 GodGinrai it should work, but should use Tables rather than DIVS Aug 04 17:38:46 hrmmm Aug 04 17:39:19 trex005: The mobile market is so fractured and messed up right now.... Aug 04 17:39:42 but SOMEONE is a genius gluing it together :) Aug 04 17:40:01 I don't really care too much about filename Aug 04 17:40:26 but no safari mobile, means I have no iOS right? Aug 04 17:40:53 trex005: For getting local file access on mobile, your best bet is to use cordova: http://docs.phonegap.com/en/2.1.0/cordova_file_file.md.html#FileTransfer Aug 04 17:41:48 this would require you package it as an app, tho' Aug 04 17:41:55 dmanderson: Can you make a fiddle for an example? Aug 04 17:43:18 GodGinrai: With Enyo, can I detect iOS and say "for this feature you need to install the App version" Aug 04 17:43:30 and can I somehow make them the same codebase?! :) Aug 04 17:43:56 trex005: Yea, you should be able to do something like that Aug 04 17:43:59 I don't even have an apple device to test on.... yuck. Aug 04 17:44:33 Yeah for sure. Aug 04 17:44:58 but it's images I'm letting them upload, so it'd be cool if I could let them pick from a library if I have to go native anyway Aug 04 17:45:44 Alright.... well for now I don't even have phonegap compile on my radar. Aug 04 17:46:48 so, with enyo.FormData ....... I guess I have to detect if that's going to be available. Aug 04 17:47:48 The only thing I see in the documentation is : enyo.FormData = FormData Aug 04 17:48:33 enyo.FormData will work as a polyfill if it doesn't detect the existance of the FormData object Aug 04 17:49:46 bbl, grabbing lunch Aug 04 17:49:53 enjoy lunch Aug 04 18:08:06 Ohhh, I was thinking I could pull the attached file FROM the FormData.... Aug 04 18:08:15 it looks like I can only append to it Aug 04 18:08:34 yup Aug 04 18:09:03 man... I was all excited :) Aug 04 18:09:04 back Aug 04 18:09:09 wb Aug 04 18:09:10 ?_? Aug 04 18:09:26 you should only be appending the file to the formdata and then sending it to the server Aug 04 18:10:06 My problem is not the transmission, it's accessing the file Aug 04 18:10:25 so you're not talking about file uploads, but local file access? Aug 04 18:10:58 well... sorta. I AM talking about uploads, however I already have a socket.io connection I can do the upload through Aug 04 18:11:08 so if I can just somehow touch the file, I can do the rest Aug 04 18:11:23 https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications Aug 04 18:12:00 that looks stupid easy :) Aug 04 18:12:29 Google-sensei is here to help you ;) Aug 04 18:13:31 Thank you! :) Aug 04 18:15:20 well how simple it is makes me feel pretty stupid :) Aug 04 18:17:45 but how would I do this? :) onchange="handleFiles(this.files)" Aug 04 18:18:05 can I use this.files in enyo? Aug 04 18:18:16 if you use enyo.bindSafely Aug 04 18:18:58 trex005: you can get the node w/ this.hasNode(); and call .files on that Aug 04 18:20:27 btw, dmanderson, can you use the generic get method to grab the node? I feel that would help code clarity more than using "has"Node to "get" a node Aug 04 18:21:06 he didn't like the question Aug 04 18:21:25 I like getNode better than hasNode as well Aug 04 18:23:43 That's one of the few things that always left a bad taste in my mouth in Enyo Aug 04 18:23:59 getNode? Aug 04 18:24:07 trex005: Using hasNode to get a node Aug 04 18:24:32 well... now you don't have to :) Aug 04 18:24:49 trex005: it's what all the official Enyo code uses to get a node Aug 04 18:30:52 when you create a Component and pass a published key with a value in, does it call the keyChanged() method? Aug 04 18:30:55 this.getNode is apparently not a function Aug 04 18:31:45 oh hey Zectbumo! Aug 04 18:32:02 GodGinrai: Hey there, you remembered me :) Aug 04 18:32:24 Zectbumo: No, it doesn't. That's why you should overwrite your create method to call the xChanged Aug 04 18:32:56 I logged in this weekend but at odd times of the days so I didn't catch you online. Aug 04 18:33:42 I worked on a bar chart for fun. Just wondering, what if I did do the project in Enyo. I have to say I am kicking myself now. Enyo makes dev so much fun Aug 04 18:34:00 ikr? Aug 04 18:34:13 I really enjoy coding stuff w/ the enyo framework Aug 04 18:35:03 As soon as I can sell off my LG Google TV so I can buy one of the WebOS TVs, I will do more Enyo dev Aug 04 18:35:08 My code feels clean and trying to get stuff done feels simple Aug 04 18:37:31 oh yes, my photographic memory is kicking in. I can read now in my mind the docs saying it is case by case weather to not call changed on properties or not so it's up to the developer to make the call. Aug 04 18:38:14 the only thing I've found about Enyo that I don't like is the event system. It might be because I don't know how eventing works in the DOM, but it's always bothered me that Enyo events are synchronous. Aug 04 18:38:44 or, at least, appear to function synchronously in the version I'm using Aug 04 18:39:07 Zectbumo: the Changed method will always be called whenever it is changed using an enyo-provided getter or setter. Otherwise, it is not called. Aug 04 18:39:33 GodGinrai: right, but I mean when creating the component Aug 04 18:40:36 Zectbumo: When creating the component, the changed methods are only called for things that had changed methods called in the create method of the parent kinds Aug 04 18:41:02 Zectbumo: Anything you publish yourself in your kind will not have its Changed method called on create unless you tell it to Aug 04 18:41:30 I believe DashCode solved the problem by calling the changed method on instantiation with a null as the oldValue. Aug 04 18:43:53 I remember it being kind of annoying. It also bit me in the butt when I wanted a null value (for some reason). Aug 04 18:44:32 Zectbumo: that is why I do if(not set to default value) call Changed Aug 04 18:44:46 I do that in the create Aug 04 18:46:01 of course, I didn't read what you were talking about before I spoke :) Aug 04 18:46:08 lol Aug 04 18:47:16 oh oh, I'm having trouble setting a component's value in my create() method. It appears it doesn't exist yet. Aug 04 18:48:23 Zectbumo: why are you setting the value in the create method? Aug 04 18:48:55 well, my valueChanged() does Aug 04 18:49:31 hrmmm Aug 04 18:49:42 can you put this up in a fiddle? Aug 04 18:49:45 oh, I see I have to handle that value in the child component. hmm, I have a situation where I just have a simple inside my component. I just want to set the content. Aug 04 18:50:38 I would rather not have this span, but I want to position the text within the div, so I put a span child in it. Aug 04 18:51:31 sometimes it would be nice to be able to refer to the text object as if it were an object in the DOM. Aug 04 18:51:55 GodGinrai: yes, so I was going to ask how to share my code with you Aug 04 18:52:06 http://www.jsfiddle.net Aug 04 18:52:16 k Aug 04 18:52:35 Also, Zectbumo, if you need to simply justify the text, you can do that w/o a span Aug 04 18:52:48 I'm floating it Aug 04 18:53:30 for what purpose, tho? Aug 04 18:53:58 how do I buildt my project (I'm in Ares) so it can go in jsfiddle? Aug 04 18:54:08 GodGinrai: I'll show you in the code Aug 04 18:54:25 for the purpose of labeling a bar, but floating it above the bar Aug 04 18:54:30 I don't use Ares, dmanderson might be able to help w/ that Aug 04 18:55:15 dmanderson: so my problem is that I hit Build, but then it wants PhoneGap credentials (even though I asked for no PhoneGap when creating the project) Aug 04 18:56:12 it would be cool to see Ares have a Build to jsFiddle feature Aug 04 18:58:47 I’m not too familiar with Ares Aug 04 18:58:58 It needs some love though Aug 04 18:59:55 I'm really liking Ares, but I can see why you don't use it if building non-phonegap apps is an issue :P Aug 04 19:00:03 what are you guys using? Aug 04 19:01:57 Zectbumo: I just use vim, firebug, and Firefox Aug 04 19:02:07 how do you build? Aug 04 19:02:10 And test in other browsers after implementing large features Aug 04 19:02:18 Zectbumo: It's javascript, there is no building Aug 04 19:02:42 so you deploy the debug source? Aug 04 19:03:41 oh, I guess I don't want to build anyways because then you won't be able to see the code if it minifies it. I'll just copy and paste blocks Aug 04 19:05:37 +1 to vim Aug 04 19:05:41 I jhust build using grunt Aug 04 19:08:01 dmanderson: oh, I used to use grunt. The new enyo seemed to have the grunt build file missing I thought. Aug 04 19:08:24 It does right now, yeah. Aug 04 19:08:36 I’m pushing for better open web tool use Aug 04 19:08:50 Zectbumo: I don't use the bootplate Aug 04 19:08:57 https://www.npmjs.org/package/grunt-enyo-builder Aug 04 19:09:12 works pretty well, just depends on a deploy.json in the root of the source. Aug 04 19:12:46 Is jsFiddle slow? I'm sitting here waiting for it to save and run code for a long time Aug 04 19:15:30 oh, "waiting for nighly.enyojs.com" I guess the enyojs server is slow Aug 04 19:41:05 whats really slow is the unpacked code thats on jsfiddle Aug 04 19:41:11 hopefully we will get that changed soon too Aug 04 20:09:03 sorry guys, this is just not going through. I'm going to try a different browser Aug 04 20:14:02 k Aug 04 20:15:07 Hey, I'll be back in ~ 2 hours. Leaving work Aug 04 20:15:17 maybe you guys have better luck http://jsfiddle.net/tZD88/ Aug 04 20:16:35 arg! it finally came up. okay GodGinrai, catch you in 2 hrs Aug 04 20:16:40 k Aug 04 20:25:47 I’ll look soon, in a planning meeting right now Aug 05 00:31:49 does Enyo store all properties as strings? My ints seem to be coming back as strings Aug 05 00:42:51 No, enyo stores them however you store them. Aug 05 00:43:00 how are you setting them? Aug 05 00:49:13 Yup, nothing goofy going on. Aug 05 00:53:42 oh okay, the string is coming from the input box Aug 05 00:56:23 yup, that would make sense Aug 05 00:56:46 are you binding the value from the input box to a variable that you want to be an int? Aug 05 00:56:59 if so, I would put a transform function that performs the parseInt for you Aug 05 00:59:25 I would like that Aug 05 00:59:38 ok time for constructive feedback! I got this working http://jsfiddle.net/XwLL9/ Aug 05 00:59:51 k, just a sec Aug 05 00:59:51 I have problems in a couple of areas Aug 05 01:00:21 as you suspected GodGinrai, I need to do a binding and transform Aug 05 01:00:36 * Zectbumo getting his todo list out Aug 05 01:02:07 another problem was where do I put the maxHeight so I'm not reaching into this.owner.owner Aug 05 01:23:36 and then he pinged out :\ Aug 05 01:36:22 lol Aug 05 01:51:27 And I had a suggestion for his owner.owner problem Aug 05 01:53:41 dmanderson: AFAICT, it looks like he is trying to use this.owner.owner to do something he should just do w/ events Aug 05 01:54:02 I’ll look soon, off to home, and pizza, :) be back in a bit! **** ENDING LOGGING AT Tue Aug 05 03:00:00 2014