**** BEGIN LOGGING AT Sat Aug 09 02:59:59 2014 Aug 09 03:02:25 I'll take a look at it in a bit Aug 09 03:02:44 you want to turn the image into an image tag? Aug 09 03:03:58 I’ve been making changes to the code. I guess I’ll put a new link up shortly. I get the image name from a list and I want to turn it into a source. assets/img/ImageName.JPG Aug 09 03:04:26 a URL link or do you want to display the image? Aug 09 03:05:38 http://jsbin.com/nozovobi/2/edit Aug 09 03:06:02 For now all the images are local. Aug 09 03:06:14 Just want to display the image Aug 09 03:13:49 http://jsbin.com/fezuxomu/1/edit?html,js,output Aug 09 03:13:55 ^ Is that what you want? Aug 09 03:16:31 Yes, how would I call that name into the src:”(in here)” in the “Image” kind? Aug 09 15:38:36 morning all Aug 09 17:07:02 morning Aug 09 20:23:37 it's sad to see projects with nightly enyo, but still using the old Repeater/List instead of the way more awesome DataRepeater/DataList Aug 09 20:23:52 you guys should really make the switch Aug 09 21:29:21 sugardave: I made the switch as soon as 2.4 came out. :P Aug 09 21:29:46 i2y4n: did you ever figure out what you were trying to figure out last night? Aug 09 21:31:55 If you made another comment last night my computer went to sleep and i didn’t see it. So I was waiting for the latest logs to come out so I can check. No I haven’t figured out how to do it. I found something called this.$.img.setSrc(); that I thought might do the trick but I haven’t figured out how to use it. Aug 09 21:32:29 the latest message I saw was this: "<11:16:29 PM> Yes, how would I call that name into the src:”(in here)” in the “Image” kind?" Aug 09 21:33:03 oh whoops Aug 09 21:33:16 I didn't realize that the jsbin I sent you didn't use setSrc Aug 09 21:33:30 yea, setSrc will set the src variable for the enyo Image kind Aug 09 21:33:56 yes, the enyo.Image kind is just a wrapper for an tag and mimics the "src" property. So, you do just what you said this.$.theImage.set("src", "imageSrc.jpg"); or something Aug 09 21:34:32 Okay, I think I have that part right, but then how do I call it in the code? Aug 09 21:34:53 i2y4n: same way you called setContent, but use setSrc Aug 09 21:35:06 this is where using DataList, Collections, Models, and Bindings would be better, IMO Aug 09 21:36:24 Yea, all the tutorials just go right over my head so I’m not sure where to even start with the DataList, Collection, Models, and Bindings Aug 09 21:37:25 i2y4n: you just need a couple of simple examples...like Enyo, once it clicks you'll never want to change :D Aug 09 21:38:49 i2y4n: here's how it would work w/ setSrc: http://jsbin.com/fezuxomu/2/edit?html,js,output Aug 09 21:39:14 But like sugardave said, this becomes much easier w/ bindings Aug 09 21:39:22 and DataList Aug 09 21:41:38 Beautiful, so I just needed to put the name: “img” inside the kind. Aug 09 21:42:26 Eventually I hope to figure out the bindings and datalist Aug 09 21:42:40 i2y4n: kind of. Since you wanted to set the src of the Image kind, you needed a name to reference it with. Since you didn't need to use the FittableColumns for anything, I just took its name and gave it to the Image kind since it made sense semantically (img = Image) Aug 09 21:42:41 I'm working on converting your code so you can see how it works Aug 09 21:42:53 sugardave: Great minds think alike :P Aug 09 21:43:41 I was thinking I needed the FittableColumns so that the image would be resizable based on the width of the column. It’s not working like that though Aug 09 21:44:37 nah, FittableColumns is for making the columns themselves resize, not their contents Aug 09 21:45:41 i2y4n: in fact, fittables do not work in List or DataList Aug 09 21:45:51 but do in Repeater/DataRepeater Aug 09 21:46:49 That would be why it worked in my last sample attempt and not this one. Ha, back to the search engine. Aug 09 21:54:47 Alright, i2y4n, here is a very literal conversion to use a DataList: http://jsfiddle.net/1goo27yd/ Aug 09 21:55:13 What sugardave is working on may come out cleaner, because I basically just converted as-is instead of cleaning it up Aug 09 21:55:51 brb Aug 09 22:10:40 I took GodGinrai's image transform and added it to my version here: http://jsfiddle.net/sugardave/83pp8/ Aug 09 22:10:56 and yes, I kinda cleaned up the inline styles and such Aug 09 22:12:04 we have a different take on how to load the data into the collection, but the end result is the same Aug 09 22:14:42 back Aug 09 22:15:35 that's some interesting code you have there Aug 09 22:16:18 Is start a special function that is called for enyo.Applications? I've never seen it used before Aug 09 22:16:22 I thought the same thing about your binding to make the collection Aug 09 22:16:28 :) Aug 09 22:16:46 yes, start is a method of ViewController (if that's still a thing) Aug 09 22:17:07 neat. Aug 09 22:17:14 I'll show you something even cooler Aug 09 22:19:31 Thank you for your help guys. I’ve got to go but I’ll check out both examples when I can and try to figure them out Aug 09 22:20:16 yw Aug 09 22:21:01 http://jsfiddle.net/sugardave/83pp8/3/ Aug 09 22:21:22 that one shows how you can both change where the app renders and how to make sure your collection is done before you actually render it Aug 09 22:21:48 super simple, but very nifty stuff Aug 09 22:21:59 neat Aug 09 22:22:41 this enyo.inherit thing still throws me for a loop... I need to get a better understanding of it Aug 09 22:23:12 yeah, it was confusing for me at first Aug 09 22:23:20 but, I just memorized the pattern Aug 09 22:24:02 inside that function you return, sup.apply(this, arguments) is exactly the same as the older this.inherited(arguments); Aug 09 22:24:12 is renderTarget part of enyo.Control? Aug 09 22:24:24 ViewController (or Application) Aug 09 22:24:29 ah, ok Aug 09 22:24:42 that's pretty cool Aug 09 22:24:43 I guess I need to dive through the source, I've been buried in 2.3.x forever Aug 09 22:24:53 lol Aug 10 00:42:55 When I try that code on my local build the only thing that renders is the header. Aug 10 00:57:50 i2y4n: That code requires enyo >= 2.4 Aug 10 00:58:06 Oh, whoops Aug 10 00:58:09 :) Aug 10 00:59:18 Getting a heavy thunderstorm right now, so I may lose my connection... But I'll be in here as long as that doesn't happen :P Aug 10 01:01:13 What’s the best way to start an app from scratch? I downloaded the bootplate, so just open up the app.js file and start typing away? Aug 10 01:03:56 IMHO, the bootplate has too much cruft Aug 10 01:04:08 I tend to extract the files I need from the bootplay Aug 10 01:04:10 *bootplate Aug 10 01:04:50 Yes, I agree. I think it’s confusing. Aug 10 01:05:51 btw Aug 10 01:06:02 use this copy of enyo.js: http://enyojs.com/enyo-2.4.0/enyo.js Aug 10 01:06:08 instead of the one in the bootplate Aug 10 01:06:30 There are some bugs w/ DataLists in the minified enyo.js that is in the 2.4 bootplate Aug 10 01:07:11 Is it supposed to download when I click that link? Aug 10 01:07:32 That will probably just show up as text in your browser Aug 10 01:07:42 just use file>Save as and save it as enyo.js Aug 10 01:12:40 Happy Saturday Enyoers Aug 10 01:13:27 hey dmanderson :) Aug 10 01:16:02 Howdy! Aug 10 01:16:12 Just got back from watching Star Lord get upgraded to a read super hero! Aug 10 01:16:18 *real Aug 10 01:16:27 lol Aug 10 01:19:41 :) Aug 10 01:20:00 I'm currently making myself a Baja Blast slushie :) Aug 10 01:20:05 NICE! Aug 10 01:20:08 that baja blast :) Aug 10 01:20:19 better never leave the shelves if Mt Dew knows whats good for them Aug 10 01:20:30 it's impossible to find it over here Aug 10 01:20:35 I'd be sad if they caged it back up inside TB Aug 10 01:20:50 I can never find White Out either Aug 10 01:20:53 I feel ya :( Aug 10 01:21:02 oh, we always have White Out over here Aug 10 01:21:11 but no Livewire :( Aug 10 01:21:23 HA! :) Aug 10 01:22:08 IMHO, if KFC was smart, they would make a deal w/ Pepsi that the canned and bottled versions of Baja Blast could be sold only at Taco Bells Aug 10 01:22:18 people would come to Taco Bell just to buy the stuff Aug 10 01:22:41 I would agree with that. Aug 10 01:22:52 Is border foods still under ownership of Pepsi? Aug 10 01:23:18 don't know Aug 10 01:24:18 wb Aug 10 01:52:39 So since lists don’t support fittables can you suggest another method of getting the images to scale dynamically based on column size? Aug 10 01:53:51 i2y4n: width: 100% Aug 10 01:53:57 CSS Aug 10 01:55:11 Super simple, thanks Aug 10 01:56:49 yw Aug 10 02:09:53 GodGinrai: when i try your method only the first two list items load. when i try sugardave’s code I get a blank page Aug 10 02:10:24 yeah use enyo fittables sparingly Aug 10 02:10:39 hrm Aug 10 02:11:13 I have no idea why you are only getting the first 2 items w/ my method Aug 10 02:12:25 i2y4n: try with the enyo.js and enyo.css in this folder: http://nightly.enyojs.com/latest/enyo-nightly/ Aug 10 02:12:49 for both my method and sugardave's code Aug 10 02:13:09 Also, are you checking your console output to see if any errors are being thrown? Aug 10 02:13:22 especially by sugardave's code, which is giving you a blank page? Aug 10 02:14:13 Note that sugardave's code was targetting an empty div rather than the document body, so if you don't have that div in your html code, that might be why it did not display Aug 10 02:16:13 That’s probably what was wrong with sugardave’s code. I’ll try to look at it again closer Aug 10 02:16:22 alright Aug 10 02:16:36 The new enyo.js and css worked. I changed both so I’m not sure which one made the difference Aug 10 02:16:49 probably the new enyo.js Aug 10 02:17:05 the CSS file is just good to update as well, because it will have any new styles that were added Aug 10 02:23:53 EnyoJS is the best! Aug 10 02:23:54 ;-) Aug 10 02:29:34 Working on anything fun? Aug 10 02:30:56 Hey dmanderson, when did the canvas stuff get separated into a whole library? (and when was there enough Canvas stuff in Enyo to *demand* a whole library?) Aug 10 02:32:51 Hmm, I'm not really sure, a couple years ago. Aug 10 02:33:31 I'm not really sure what the decision was to split it off - if it was due to there being enough to make a new library, or if it was more a - keep that out of the core, because not everyone needs it, type of decision Aug 10 02:34:17 wait, a couple of years ago? Aug 10 02:34:52 Yeah 2012 Aug 10 02:34:58 I don't remember seeing an extra canvas library until just recently o.o Aug 10 02:36:17 0.o Aug 10 02:36:44 2.0-beta4 Aug 10 02:36:49 hrm... weird Aug 10 02:36:59 do you even enyo bro Aug 10 02:36:59 ;-) Aug 10 02:37:08 Maybe I just never noticed it because the documentation never talked about it Aug 10 02:37:13 I'm looking through the commit/tagging history honestly Aug 10 02:37:43 https://github.com/enyojs/canvas/releases?after=2.4.0-pre.2 Aug 10 02:39:04 I haven't had a big use for the library my self (yet) Aug 10 02:39:12 Now that I'm a Wii U developer, that will be changing Aug 10 02:39:32 oh nice! Aug 10 02:39:36 you finally got it? Aug 10 02:39:43 Yeah! Aug 10 02:39:47 cool cool :D Aug 10 02:40:03 I'm excited :) Aug 10 02:41:43 ooh Aug 10 02:42:18 I see something that can be made cleaner in enyo.canvas.Image Aug 10 02:42:42 srcChanged can be replaced with a binding from this.src to this.image.src Aug 10 02:43:35 nice! Aug 10 02:43:44 I smell a patch being submitted ;-) Aug 10 02:44:09 Maybe later if I actually sit down w/ enyo's canvas libraries Aug 10 02:44:37 I was going to try to learn the standard canvas stuff this weekend (although I totally just read my book all day <.<) Aug 10 02:45:28 what book? Aug 10 02:45:29 a good book? Aug 10 02:45:40 a very good book Aug 10 02:46:25 Madan no Ou to Vanadis - volume 9 :) Aug 10 02:49:05 Nice! Aug 10 02:49:20 is it bound right to left> Aug 10 02:49:22 ? Aug 10 02:50:00 It's a light novel (although there is also a manga for the series) Aug 10 02:50:55 ah ok Aug 10 02:51:15 it has some pretty awesome war tactics Aug 10 02:51:25 and the main character is an archer Aug 10 02:51:30 and a very good one at that ;) Aug 10 02:54:31 Nice! I've been looking for some new reading material **** ENDING LOGGING AT Sun Aug 10 02:59:59 2014