Jun
1
awarded Tumbleweed
May
25
revised Error: Cannot find module
added 134 characters in body
May
25
revised Error: Cannot find module
added 19 characters in body
May
25
revised Error: Cannot find module
edited title
May
25
revised Error: Cannot find module
deleted 3 characters in body
May
25
asked Error: Cannot find module
Apr
1
revised warning: templates not found /share/git-core/templates | fatal: Unable to find remote helper for 'https'
added 6 characters in body
Mar
28
comment Return AJAX promise's result with jQuery
"you can update a variable outside of the scope ..." that you can't do, the variable will always be undefined, see this question's example
Mar
28
comment Return AJAX promise's result with jQuery
@dystroy yeah I upvoted that ;) And yes, I should have clarify my question with "Can JavaScript do that?".
Mar
28
comment Return AJAX promise's result with jQuery
Yes, I get that, but I still don't understand why "it does not make sense to return anything from the function that you supply to done"? See my response to BenjaminGruenbaum, what if I need to manipulate the data outside the promise "context"?
Mar
28
comment Return AJAX promise's result with jQuery
@BenjaminGruenbaum with your solution, data is stuck inside a function. So if I need to manipulate it I have to do it inside then, not exactly what I need.
Mar
28
asked Return AJAX promise's result with jQuery
Mar
14
awarded Enthusiast
Mar
13
asked Highcharts pie donut with gradient
Mar
6
accepted multiple routes with differents params, calling the same ressource
Mar
5
revised multiple routes with differents params, calling the same ressource
added 143 characters in body
Mar
5
comment multiple routes with differents params, calling the same ressource
Yes, no I mean, forget my code, but when designing a RESTful API, is Peter's solution the way you would tackle this problem ? Retrieving user's data by :id or :username, do you think I should enable this feature ?
Mar
5
comment multiple routes with differents params, calling the same ressource
Thanks for your solution, it's working, but I'm wondering if a completely different workaround exist. I mean, at first, am I approaching the problem the right way? Is that a think to do? What would you really do if you wanted to achieve something like that?
Mar
5
comment multiple routes with differents params, calling the same ressource
Username are limited to 16 chars. whereas user_id is a mongoDB generated hash wish is 24 chars.
Mar
5
asked multiple routes with differents params, calling the same ressource
1 2 3 4 5