[clug] javascript libraries/frameworks

jm jeffm at ghostgun.com
Mon Oct 27 22:34:49 GMT 2008


Tim Murphy wrote:
> Javascript is a dangerous way to do form validation.  Not only does that cut
> down your audience to those who have javascript enabled (which, admittedly,
> is most people) but validation can easily be sidestepped.  I'm assuming this
> will sit on top of a PHP or ASP application?  If so, you will have to verify
> the data using that application anyway so (in my opinion anyway) it's not
> worth doubling up.
>   

No, no validation was mentioned. If I was to do that I'd have to, as 
another poster mentioned, redo the validation on the server anyway.

The idea is to avoid having two interfaces. Merely have an RPC style 
interface as far as practical with a web interface. This has the 
advantage that automated tasks can use the same interface to control the 
application and the interface is known to work because the web interface 
uses it. Hopefully, it also means less coding overall.

It's not PHP nor ASP. It's mochiweb ( http://code.google.com/p/mochiweb/ 
) with webmachine ( http://code.google.com/p/webmachine/ ) which 
describes itself as "A REST-based system for building web applications."

> If javascript is used to add functionality to a page, the page should also
> be 100% usable and viewable without javascript.
>
>   
Ideally true, but rarely practical.


Jeff.


More information about the linux mailing list