Re: Re: idiot proofing
| From: | Manuel Lemos | Date: | Fri, 26 Jun 2009 07:39:24 +0000 |
| Subject: | Re: Re: idiot proofing | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294635@lists.php.net to get a copy of this message | ||
Hello,
on 06/24/2009 09:24 PM Shawn McKenzie said the following:
>> What about placing the contents in different divs and showing hiding
>> those divs on submit? Then using AJAX to update the server / database
>> with the requested operation?
>>
> That's a good one, however I'm assuming you haven't been following PJ's
> posts :-) Once he tries AJAX, I feel for the js.general and
> ajax.general folks!
Not necesssarily. You may want to try this scaffolding component that
lets you create CRUD (Create, Read, Update, Delete) forms without
writing a single line of Javascript, all with AJAX support, so it
submits the forms to the server without page reloading.
Actually this a plug-in of the Forms Generation and Validation class,
that generates all the necessary Javascript transparently for you. You
can compose any forms with any custom inputs, and save data to databases
or any other type of storage.
Take a look at this live example:
http://www.meta-language.net/forms-examples.html?example=test_scaffolding_input
The main forms class and the optional plug-ins are available from here:
http://www.phpclasses.org/formsgeneration
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/