**** BEGIN LOGGING AT Wed Apr 10 02:59:58 2013 Apr 10 13:54:13 Hello. Apr 10 13:54:32 I'm trying to do a ajax post with enyo.ajax but I keep getting "'JavaScript component does not have a method named: "available"' when calling method: [nsIInputStream::available]" Apr 10 13:54:37 Where to search? Apr 10 14:00:02 I'm not sure, I've never seen that before Apr 10 14:00:46 Can't find much on the internet about it either, only some internal Firefox bugs :-( Apr 10 14:02:06 Seems to be related to postBody. Apr 10 14:02:49 When I use postBody I get this error when I put the content off postBody in the .go() call it works ? Apr 10 14:02:52 have you tried a different browser? Apr 10 14:03:28 I'll try in chromium, mom. Apr 10 14:04:48 mom? Apr 10 14:05:12 Shorthand for "One moment please" :-) Apr 10 14:05:33 hah, oh, I've never seen that before Apr 10 14:05:46 Could be a dutch thing :-) Apr 10 14:05:54 "gosh! I'll do it already! geez Mom!" Apr 10 14:05:58 is what I was assuming Apr 10 14:06:02 :-P Apr 10 14:06:04 :-D Apr 10 14:06:23 I haven't said that in more than 30 years :-) Apr 10 14:06:37 Tried it in chromium, chromium does send the post but the postBody is not recieved in chouchdb. Apr 10 14:07:08 weird Apr 10 14:07:28 I don't use the postBody attribute, but you might start there and see if you can find a tutorial about how to use it properly Apr 10 14:07:37 Could be a firefox-nightly thing but that does not explain chromium. Apr 10 14:08:01 I'll stick to putting the postBody in the .go() call for now. Apr 10 14:08:03 I wonder if you've stumbled onto a weird bug, or if you're just not using it properly Apr 10 14:08:14 I suspect the latter ;-) Apr 10 14:08:19 can you show me the syntax of the 2 different ways you're doing it? Apr 10 14:08:26 Sure. Apr 10 14:08:59 I've gotta take off in a couple minutes, FYI Apr 10 14:09:11 No problem. Apr 10 14:09:22 The error way: http://pastebin.com/pRyfiUFi Apr 10 14:09:34 "inParams will not be converted into a POST body, it will always be used as part of the URL query string if provided. Use the postBody property for specifying a body. Apr 10 14:09:37 " Apr 10 14:09:53 so, the parameters you're passing to go() aren't being made into a POST body Apr 10 14:10:53 Working: http://pastebin.com/Dd7hzVVz Apr 10 14:11:10 I read that, that is why I tried using postBody. Apr 10 14:11:14 http://enyojs.com/api/#enyo.AjaxProperties makes it look like you need to pass either an explicit string, or specific objects, and specify the contentType Apr 10 14:11:48 I tried all three contentTypes mentioned there but all had the same result. Apr 10 14:11:53 line 4 of the error way is misspelled Apr 10 14:11:55 contentType: "application/x-www-urlencoed", Apr 10 14:12:21 contentType: "application/x-www-urlencoded", is what you want Apr 10 14:12:31 I got that straight from the enyo source :-) Apr 10 14:12:56 wait Apr 10 14:13:03 that's what the api says too Apr 10 14:13:08 that seems... wrong Apr 10 14:13:21 yeah, the API and the source are probably typos Apr 10 14:13:30 earlier in the same doc it says x-www-urlencoded Apr 10 14:13:33 I think so too. Apr 10 14:13:54 that _might_ be your issue Apr 10 14:14:13 Nope, same thing. Apr 10 14:14:35 weird Apr 10 14:14:43 Yep. Apr 10 14:14:53 I've gotta take off, if you're still here in a while, I can check back in, maybe Apr 10 14:15:16 I leave in about 45min. as well. Apr 10 14:15:22 Thanks for your help. Apr 10 18:13:35 does anyone know how closures interact with enyo events? Apr 10 20:04:45 summatusmentis: In what way? Apr 10 21:10:13 if I launch an event in a closure, does the closure stay on the call stack until the call chain finishes? Apr 10 21:10:49 I'm running into an issue where a relatively long string of function calls is triggered by an event, and breaking the call stack Apr 10 21:29:22 summatusmentis: I would think that the closure wouldn't be gone until after the event processing is done. Apr 10 21:31:21 :-/ Apr 10 21:31:36 basically, I've got a chain of things that need to happen in order **** ENDING LOGGING AT Thu Apr 11 02:59:59 2013