AJAX and Haxigniter

12 views
Skip to first unread message

sledorze

unread,
Jan 10, 2011, 10:40:52 AM1/10/11
to haXigniter
Hello,
I am currently needing to display some data from the database to the
client screen.

Before hacking on the database side, I decided to make a simple
communication test between the client and the server.
In order to test that, I've tried something simple but failed.

I want to use something like that client side:

JQueryS.post('getdatas', { identifier : 'zorba' }, function (data) {
new JQuery("#content").html(data);
}, 'json');

however, I don't know how to do the server side properly and/or
organise the files in order for that to work as expected..
Thanks, any help is welcome..

Stephane

sledorze

unread,
Jan 10, 2011, 3:41:01 PM1/10/11
to haXigniter
Looks like by removing the ending 'json' I am able to make my code
work.
Also, for those interested; here's valuable information:
https://github.com/ciscoheat/haxigniter/wiki/REST-reference

Stephane
Reply all
Reply to author
Forward
0 new messages