Preferred method of using Xataface with Ajax to display and edit related record

181 views
Skip to first unread message

James Berghout

unread,
Sep 21, 2014, 8:26:52 PM9/21/14
to xata...@googlegroups.com
I have an application I'm developing in which I want to display notes related to a given record in a section below the record. (this part is straight forward. I'm already doing this.)

In addition I want these related notes to be able to be added and edited without leaving the parent record screen via ajax. I'm sure I can implement methods found around the web to do this, but I want to use any existing Xataface resources that already exist for this purpose. This seems like a fairly straight forward and not uncommon exercise.

I'm not super familiar with Ajax, but I understand the basics. And I know where and how to find help. Any direction to using Xataface's built in resources including JQuery is appreciated. 

-james

Steve Hannah

unread,
Sep 22, 2014, 1:01:38 PM9/22/14
to xata...@googlegroups.com
I have done some work in this area, but it is not documented well (or even at all really).

I developed a module that includes two key components for performing AJAX stuff:

UITable : A table to list records, but using Ajax to feed the content of the table.
UIForm : A dynamic form to edit a record using AJAX.  Actually it uses a combination of iframes and AJAX for this.

The github repo:

A demo action showing how to use it:
And associated template:
And associated Javascript using both UITable and UIForm

There is also a lower level API for just loading and saving records.  This is part of the Xataface core:

Steve


--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/2d5073ab-6b1d-4edc-a9b3-ffc41c84e4c9%40googlegroups.com.



--
Steve Hannah
Web Lite Solutions Corp.

James Berghout

unread,
Sep 22, 2014, 2:18:51 PM9/22/14
to xata...@googlegroups.com
Awesome! I'll dig into this info!
Reply all
Reply to author
Forward
0 new messages