jsdbi (Ajax stuff ---beware)

0 views
Skip to first unread message

Ian Holsman

unread,
Nov 16, 2005, 10:26:04 PM11/16/05
to django-d...@googlegroups.com
this ajax conversation is getting long, and my apolagies for continuing it.


has anyone seen/heard of JSDBI ?

http://scottyallen.com/code/jsdbi.js

it looks like it would produce a pretty easy to use way of getting the
data to/from the client.



--
I...@Holsman.net -- ++61-3-9877-0909
If everything seems under control, you're not going fast enough. -
Mario Andretti

Eugene Lazutkin

unread,
Nov 17, 2005, 12:28:30 AM11/17/05
to django-d...@googlegroups.com
I didn't see it before. It looks like it implements CRUD-type manipulator
with predefined RESTful API --- a few lines of code on top of prototype.js.

This approach is a form of remoting and be complimented by automatic object
publishing from server side.

Usefulness of remote CRUD depends on application. If your app consists of
constant CRUD --- it's a godsend. If it does something different, e.g., a
lot of searches, filling out elaborate forms with complex validation, or
visualization of data (tables/maps/whatever) --- you will spend all your
development time in different places.

Depending on app type some security expert will advise against remote CRUD
even with authorization in place. That's why I think it should not be a
default feature. But it is nice to have anyway.

Thanks,

Eugene


"Ian Holsman" <kry...@gmail.com> wrote in
message news:2a627cd20511161926k43...@mail.gmail.com...

Ian Holsman

unread,
Nov 17, 2005, 5:31:23 AM11/17/05
to django-d...@googlegroups.com
Thanks Eugene.

I didn't end up using it.
I have implemented some *basic* JSON outputer's and using ajax
(mochikit) to render them.

the code makes use of json.py and is here
http://svn.zilbo.com/svn/django/snippets/json/

I *doesn't* do datetimes. a demo of the code being used on the 'polls'
app is on http://demo.zilbo.com

regards
ian
Reply all
Reply to author
Forward
0 new messages