Jump to content

validation without a postback?


liorm

Recommended Posts

Hi

 

I wonder how one can do validation without postback, in PHP. In .NET, ill-validated fields are showing an error on the client browser, using javascript, without any post back (except if it's a custom validator) .

 

Specifically, I'm using Zend. is there a way to do it here? (I mean, using some unified approach, and not by just having included javascript functions customized to every page).

 

any other framework that does it? code samples?

 

thanks so much for _any_ idea

Lior

http://www.lgorithms.com

Link to post
Share on other sites

thanks. actually, i'm looking for something simple based on javascript (that's how its done in .net). no need to use Ajax to talk to the server - there are many types of validation that can be done just on the client. for example, a required field

 

any ideas there?

 

thanks again

Lior

Link to post
Share on other sites

Well yeah, but it's more work: write JavaScript equivalents of the validations in ZF, then, again, use custom decorators to require client side validation before posting.

 

It's not rocket science, but it is work.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.