iOS: posting data to server that uses Lift as backend

66 views
Skip to first unread message

Kevin Lau

unread,
Oct 10, 2012, 7:22:46 AM10/10/12
to lif...@googlegroups.com
Hi,

//if it is in HTML, we can use the tags to post the data to the server
e.g. <form id='login-form' data-lift='RegisterLogin.registerOrLogin?form=post' novalidate>

If it is in iOS environment, can we use something similar? If so, how?

Otherwise, is using Lift REST as web service is the best alternative?

e.g. 
https://groups.google.com/forum/?fromgroups=#!searchin/liftweb/ios/liftweb/s86s_OZZL7A/Kfipg-57JOoJ

Thanks,
K.

Diego Medina

unread,
Nov 3, 2012, 9:44:05 AM11/3/12
to Lift
> Otherwise, is using Lift REST as web service is the best alternative?

This is how I would do it.

Diego
> --
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code
>
>
>



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com

Franz Bettag

unread,
Nov 3, 2012, 1:41:31 PM11/3/12
to lif...@googlegroups.com
Dear Kevin,

i always went with the REST way, since you can simply dispatch/parse incoming JSON. There is a nice JSON Lib for iOS, forgot the name tho.

best regards!

Kevin Lau

unread,
Nov 3, 2012, 4:33:44 PM11/3/12
to lif...@googlegroups.com

Thanks.


I used these libraries.

#import "AFJSONUtilities.h"

#import "AFNetworking.h"

#import "JSONKit.h"


They work very well with Lift. 

Reply all
Reply to author
Forward
0 new messages