**** BEGIN LOGGING AT Thu Sep 27 02:59:58 2012 **** ENDING LOGGING AT Thu Sep 27 08:14:33 2012 **** BEGIN LOGGING AT Thu Sep 27 08:16:20 2012 Sep 27 16:50:23 anyone there? Sep 27 16:51:48 hey Sep 27 16:54:06 yo. So, my app doesn't use a form, and was just passing info from inputs to the PHP script via the POST method, so I could get the output. So, your suggestion doesn't exactly work :/ Sep 27 16:56:38 and even if it was a form, that still wouldn't work currently, because the data I want to put into a CSV is not editable by the user in that way Sep 27 16:58:07 let me recap, so you want to send some data to server, process it and then send a file to user for download. correct? Sep 27 17:03:54 if so, you can use window.location.href = '/some_script.php?param_y=some_data¶m_x=more_data' and in some_script process the data and then return the file from the server with appropriate headers Sep 27 17:04:27 Basically Sep 27 17:04:40 on the server: app & PHP script Sep 27 17:04:47 on the client: browser Sep 27 17:06:06 also, I have register_globals off, so I'm not sure that method will work :/ Sep 27 17:07:02 long time i do not work with php Sep 27 17:07:23 check this post maybe it helps you: http://stackoverflow.com/questions/5560373/php-create-file-for-download-without-saving-on-server Sep 27 17:28:57 yea, calarval, I'm not having trouble making a dl in PHP. I already have a script that sends the headers and outputs CSV. I need a way to post the data to the PHP script with the user in control, but w/o leaving the app Sep 27 17:31:32 the problem is there is no way to send post data without a form, you can create the form on the fly and populate the data into it before submit, or use jQuery.post function (that probably creates a form on the fly and submits it) Sep 27 17:33:50 so instead of window.location.href = ... use $.post("test.php", { name: "John", time: "2pm" } ) Sep 27 17:44:09 calarval: I am already sending post data using Enyo Sep 27 17:44:58 with enyo.Webservice Sep 27 17:45:18 * enyo.WebService Sep 27 17:45:21 ok, didn't know it existed Sep 27 17:45:47 then the problem is that the page is redirected? Sep 27 17:46:40 well, enyo.WebService does it using a XHR Sep 27 17:47:10 which would mean that the browser would not receive the headers from the script, instead, the app would Sep 27 17:47:27 so the browser wouldn't try to dl the CSV Sep 27 17:50:04 i see, seems is not possible to use XHR to download files Sep 27 17:50:15 check this : http://stackoverflow.com/questions/6668776/download-file-through-an-ajax-call-php Sep 27 17:50:16 yea :/ Sep 27 17:51:32 GodGinrai: usually the way this stuff goes, I think, is that the headers contain a URL for the file, and then you make a second request for the file Sep 27 17:52:11 why don't send the ajax call to post data and instead of sending back a file, send back the file location and in the callback function do a request for download Sep 27 18:02:16 I don't actually make a file on the server, it is generated on the fly Sep 27 18:05:11 save it, and delete it after download Sep 27 18:33:03 then I would have to deal with clobbering if multiple people used the app Sep 27 18:41:58 yup, another way could be using an iframe with a form inside, populated before submit Sep 27 18:50:40 :/ Sep 27 18:55:52 yeah programing is hard Sep 27 19:03:52 lol, not really Sep 27 19:04:10 I just don't like that I have to come up with such an inelegant workaround :( Sep 27 19:08:33 seems the best is use tmpfile php function to save the on the fly generated content to ensure the created file has unique name and will be safe to delete after download Sep 27 21:16:07 anyone know how to escape html entities in Enyo 2? Sep 27 23:13:03 anyone home? Sep 27 23:13:27 How do I get my enyo 2.0 list to scroll in Chrome? Sep 27 23:23:04 how? what's it doing now? Sep 27 23:23:22 you might need to apply enyo-fit class or add the fit: true, property Sep 27 23:23:42 yeah I have fit set to true Sep 27 23:24:31 try giving it a fixed height and see if it scrolls Sep 27 23:24:39 the list populates but I only see the rows that take up the screen Sep 27 23:25:03 check the computed styles in chrome and see if it's rendering below the screen, i'd bet Sep 27 23:25:24 in that case you probably need to put it in a fittable, add the enyo-fit class to that, and pass fit: true, down to the list Sep 27 23:25:31 i think that might have made sense Sep 27 23:25:32 heh, ok Sep 27 23:25:49 setting height with css gave me a scoll bar Sep 27 23:25:56 so I see all rows now. Sep 27 23:26:06 cool, you can add touch: true, to make it .. well, touchy Sep 27 23:26:07 but I want it to work for touch screens Sep 27 23:26:19 there we go :) Sep 27 23:26:57 yeah, fittables is the hardest part for enyo 2. besides well everything else.. def tough to switch from flex Sep 27 23:27:07 we got spoiled w/ flex Sep 27 23:27:14 yeah I miss the flex box model Sep 27 23:27:52 it was pretty great. yo sugardave: when can we get flex back? (: Sep 27 23:34:57 I haven't touch Enyo since early this year. Mucking around with my old code. Sep 27 23:35:49 it's changed a bit, 2 takes some time to get used to but you can do a lot more w/ less, imo. Sep 27 23:36:40 the thing everyone always has trouble with it seems though is with the fittables, nobody can ever get them fitting the way they want off the bat Sep 27 23:37:26 yeah I have a toolbar at the bottom of my screen that's not showing up Sep 27 23:38:09 ya, k so you probably needa tweak the layout Sep 27 23:40:47 probably check the samples to figure it out. best advice i can giv you is to play with fittablerows, fittablerowslayout, fit: true, and classes: "enyo-fit" Sep 27 23:42:09 ok Sep 27 23:45:38 woot. thanks fxspec06 Sep 27 23:45:48 sweet. NP ;) **** ENDING LOGGING AT Fri Sep 28 02:59:56 2012