Post request using JQuery??
-
-
JQuery.getJSON(...) uses GET method. Since my query is recursive and very long, it seems not working with GET method if depth of the recursive query is very long. So, I tried Jquery.post(...) like the following: jQuery.post("http://api.freebase.com/api/service/mqlread?callback=?", {query: JSON.stringify(envelope)}, callback, 'json'); but, it is not working. am I doing something wrong? any suggestion or solution? messy source code is available here: https://graphics.stanford.edu/~namwkim/freebase/js/genealogy.js Thanks!
-
I can't help with the POST vs. GET part of the question, but have you considered simplifying your query and doing it in pieces? If the problem is that the query is timing out, I doubt that changing the way your submit it is going to help.
Also, you might consider posting your question to the developers list. That tends to get viewed by more people.
-
Thanks for your advice!
-