Hi, I am attempting to write a GAE application using AJAX. It states:
"In its most generic sense, an AJAX Request will have a function name followed by any optional parameters, the last of which, if it is a function, is an optional OnSuccess callback. So, lets write a function that handles this: ......... (resulting in ......) GET http://localhost:8080/rpc?action=Add&arg0=%221%22&arg1=%222%22&time=1210092948178 ...." Where is the "OnSuccess" callback?? It is missing from the GET URL. Can I assume the following is correct: GET http://localhost:8080/rpc?action=Add&arg0=%221%22&arg1=%222%22&time=1210092948178&OnSuccess=myjavascriptfunction Also, can I assume on the server side: self.response.out.write(simplejson.dumps(result)).......will send the response to myjavascriptfunction?? If I am missing something fundamental, please explain. If not, please update the example to include better documentation on the callback function. P.S. If you help me fine tune your example I will post a Dojo equivalent that would substantially reduce coding the AJAX GET. In Dojo it would be as simple as: dojo.io.script.get({ url: "http://localhost:8080/rpc?", content: { action: "Add", arg0: "1", arg2: "2", time: Date(), OnSuccess: "myjavascriptfunction" }, handleAs: "text/json", preventCache: true, error: function(text){ alert("An error has occurred - " + text); return text; } }); } Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---