How to make a rest service call using dojo? -


can tell me how call rest service using dojo.io.script.

try {   dojo.io.script.get({     url: "http://search.twitter.com/search.json",     content: {       q: "#dojo"     },     callbackparamname: "callback"   }).then(function(data) {    }); } catch (e) {   alert(e); } 

i tried using above code, didn't response. problem?

you can call http below:

// "xhrget" method executing http dojo.xhrget({     // url request     url: "get-message.php",     // method handles request's successful result     // handle response way you'd like!     load: function(result) {         alert("the message is: " + result);     } }); 

for more information check documentation here.

another example here.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -