Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jformer ajax form #5

Open
set321go opened this issue Oct 16, 2011 · 1 comment
Open

jformer ajax form #5

set321go opened this issue Oct 16, 2011 · 1 comment

Comments

@set321go
Copy link

hello,

I couldnt find a forum page so i have raised my question as an issue.

I would like to make a form using jformer that is loaded from an ajax request but all of your examples are using html with embedded php. Could you give me an example or a quick explanation of how i could build a json response that i could use to construct the form on the client side, it would be for something basic like a contact form.

thanks
Alex

@detain
Copy link
Contributor

detain commented May 8, 2014

The form is generated from the PHP itself , I dont believe it has the current capability to generate the form from a json string client side, although that might be a neat feature.

The basic reasoning for its current setup seems to be you define the form once in PHP, from there client side JS, and server side PHP validations can be applied automatically . Generating the form client side from a JSON string, while its somethign that could be added, you would still need the server side validations so you would still need some PHP code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants