Yes it is definetly a feasible, and json service support in web2py is
so lean and clean that you will like it for sure.
You could have some troubles if need to do cross domain AJAX for your
use  case, but if you go apache you can  proxy
requests to destination with little effort.

hope that helps
mic

2010/10/8 Magnitus <[email protected]>:
> The concept of "static" pages where you can submit data to the server
> seems a bit weird (means you can submit info to the server, but then
> you never see the result of that info... unless you access the info
> via Ajax requests I guess).
>
> Anyways, concerning the centralized Ajax requests, its definitely
> feasible.
>
> You just need to have a central service running on web2py to receive/
> reply to the requests and then craft the Ajax requests on the static
> pages to make the requests to this service.
>
> A good chunk of the work would be client-side logic rather than server-
> side logic.
>
> Authentication might be a challenge however...
>
> On Oct 7, 2:06 am, guandalino <[email protected]> wrote:
>> Hello, I need your opinion. I have decided that simple web sites for
>> my customers will be done in plain static HTML served directly by
>> Apache, without any web framework. To handle the situation when forms
>> are required (e.g. contact pages), I'd like to have a service running
>> server side that validates data coming from forms.
>>
>> On form submit, an ajax call to the service will be issued: if
>> submitted datas are invalid the server has to reply with a json
>> response pointing out the problem, otherwise incoming data will be
>> stored into db and the user is redirect to the thanks page. Is it
>> possible to do a such thing using web2py, and maybe have it to be
>> multisite?
>>
>> site1
>>     form action="http://service/site1/contact";
>> site2
>>     form action="http://service/site2/contact";
>>     form action="http://service/site2/survey";
>> etc.
>>
>> It seems that now a lot of 3rd party form validation services already
>> exist (jotform, wufoo and many others...), but I'd like to have my
>> own. I don't want to be able to "design" my form layout, just data
>> validation. I'm interested in your opinion on feasibility!
>>
>> Many thanks,
>> best regards.

Reply via email to