AJAX actions?
Archived from the Xataface Users forum.
gorzek — Thu Aug 14, 2008 11:37 am
I have a situation where I want to have some forms on a page, and clicking the submit button on such a form would do a few things:
-
Make an asynchronous call to a particular Xataface action, passing in a couple parameters.
-
Display a message in the page itself to indicate that the action was performed.
Does Xataface support something like this out-of-the-box or will I need to roll my own solution here?
Thanks in advance!
shannah — Mon Aug 18, 2008 9:17 am
Well, Xataface does include an ajax wrapper library to make this easier (see js/ajaxgold.js) . And you can implement custom actions to return in JSON or XML format that is kind to ajax. But other than that you’ll have to stitch the pieces together.
-Steve