Skip to main content
26 events
when toggle format what by license comment
Jun 18, 2010 at 20:37 history edited Nathan Osman CC BY-SA 2.5
added 51 characters in body
Jun 16, 2010 at 2:26 comment added Nathan Osman @code: I think I'm going to start a new answer for my app now :) These comments would detract from it anyway.
Jun 16, 2010 at 1:42 comment added Sky Sanders yeah, that is weird. i consciously write unobtrusive code. there should be NO conflicts with jquery. in any case, that tidbit will be added as a troubleshooting note in the documentation when it gets generated.
Jun 16, 2010 at 1:29 comment added Nathan Osman @code: Hey! Guess what - when I include the jQuery library directly before Soapi.js, it works in Chrome! Weird.
Jun 15, 2010 at 23:32 comment added Nathan Osman @code: Sorry for all of the trouble. Guess it was my browser all this time :) Hopefully you can figure out what the problem is quickly. I'll work with Firefox in the meantime.
Jun 15, 2010 at 23:29 comment added Sky Sanders @works in chrome on windows. sounds like the soapi.generated.js code is not being executed properly. it builds the routemaps at runtime from metadata. I will fire up my linux test farm later tonight and give it a once over.
Jun 15, 2010 at 23:13 comment added Nathan Osman @code: Don't worry about it :) I guess the problem is with Google Chrome on Linux (my browser). Let me try it in Firefox. Edit: Yup, it works :P I wonder why it doesn't work in Chrome...
Jun 15, 2010 at 23:11 comment added Sky Sanders I just clicked on the url in your answer, stackoverflow.quickmediasolutions.com/stackad , and I get an alert of '9' - seems to be working. and disregard my snide remark about apiVersion above, I misread the comment. I don't know why you are not getting a valid instance of RouteFactory but your online example is working just fine. Use it as a point of reference.
Jun 15, 2010 at 22:27 comment added Nathan Osman @code: Okay. I just updated the 'Soapi.Generated.js' file to the latest version on your site. Still have the same problems :(
Jun 15, 2010 at 22:24 comment added Nathan Osman @code: I know. My mobile client went crazy last night too and I had a feeling in the back of my mind that that's why your code wasn't working either. As for copying code, I just copied and pasted what you edited into my question above. Well, I'll get the new versions of the files and see what I can do.
Jun 15, 2010 at 22:10 comment added Sky Sanders And whatever you copied likely wasn't mine. or wasn't copied verbatim.
Jun 15, 2010 at 22:08 comment added Sky Sanders Also - you will probably the reason you cannot find apiVersion on stats is that there is no member of that name. try api_version. Ok? If you have questions about a member of the api in it's running state look @ soapi.info/Services/Watch.aspx and see if you can figure it out.
Jun 15, 2010 at 22:02 comment added Sky Sanders @george - the api had some drama last night. check twitter.com/soapiwatch and twitter.com/soapigen and then download new js files from soapi.info/Services/CodeGeneration.aspx - I suggest that if you want to write code against an evolving beta api that you take advantage of the notification and discovery tools i have provided on soapi.info. You gotta keep up, dude. ;-)
Jun 15, 2010 at 21:55 comment added Nathan Osman @code: I have copied your code verbatim and I get: Uncaught TypeError: Cannot set property 'apiVersion' of undefined. Uncaught TypeError: Object [object Object] has no method 'QuestionsByIdAnswers'
Jun 15, 2010 at 1:52 comment added Nathan Osman Never mind. I didn't see that you edited my answer :)
Jun 15, 2010 at 1:47 comment added Nathan Osman @code: Of course not, it's just that I have no idea where the problem even is - once we can find it, I can probably fix it no problem.
Jun 15, 2010 at 1:37 comment added Sky Sanders what? you want me to write your code and then post it in comments? ;-) work with me dude.
Jun 15, 2010 at 1:35 comment added Nathan Osman @code: This? What is "this?"
Jun 15, 2010 at 1:22 comment added Sky Sanders @george - this is what you are looking for.
Jun 15, 2010 at 1:22 history edited Sky Sanders CC BY-SA 2.5
added 588 characters in body
Jun 15, 2010 at 0:47 comment added Nathan Osman And I am having trouble translating API calls to SOAPI calls, though I'm starting to get the hang of it now.
Jun 15, 2010 at 0:46 comment added Nathan Osman @code: I changed my code to QuestionsByIdAnswers already. It still doesn't work.
Jun 15, 2010 at 0:44 comment added Sky Sanders And did I mention that I spend a LOT of time in soapi-explore. You don't use visual studio so soapi-explore can save you a lot of time with the parameter tooltip documentation. you can build requests and test them, see the results, and then very easily translate the url in to soapi.JS
Jun 15, 2010 at 0:41 comment added Sky Sanders and to answer your other question, yes, the api supports (but does not properly document) the ability to all of the answers for a specific question with a score of 6 or higher. Here is the raw url, api.meta.stackoverflow.com/0.8/questions/53346/… I will leave it to you to translate that into soapi.JS. (hint, the soapi was generated directly from the api)
Jun 15, 2010 at 0:36 comment added Sky Sanders george, i already addressed this - you are trying to query an 'answer' source with a question id. try 53466, which is an answer id to see what I mean. AnswersById gets answers specifically requested. If you want all of the answers to a specific question, use QuestionsById or QuestionsByIdAnswers
Jun 15, 2010 at 0:17 history answered Nathan Osman CC BY-SA 2.5