Forum OpenACS Q&A: Re: How to insert JavaScript or .js file into ADP

Collapse
Posted by Matthew Geddert on
what type of validations? In most cases it would be a lot easier (and cleaner and more browser independent) to do this via the "-validate" flag in ad_form. If you are talking about server side java then aolserver is probably not your best bet.
Collapse
Posted by Mark Aufflick on
I love client side JavaScript - I once wrote almost an entire shooping cart system with it - but I agree with Matthew that ad_form is your friend.

It's not as funky as doing real-time JavaScript/DHTML validating and alerting, but unless you REALLY need it, then use ad_form - it rocks(tm).

But to answer your question - anything that is not an adp tag just gets pumped out in the html output - so just use client side script tags like you normally would in an html file.