Link to home
Start Free TrialLog in
Avatar of shishirk
shishirk

asked on

Validate form in a template-based page

i have based my entire site on a template. however, this has prevented me from adding the "validate form" behaviour since the <head> is outside all editable regions. i know i can make the head area editable, but is there any other way???
i use dw3.
any ideas???
Avatar of cybernietic
cybernietic

I think there is no other way.

"Using styles, timelines, and behaviors in templates

Custom styles, timelines, and behaviors are fully supported in templates. To use styles, timelines, or behaviors in a template they
must be defined in an editable region of a document which uses a template."
You can add the form validation as a script link and then once loaded into the users system, would be available on every page that uses the template. This template can then be combined with the other javascript you use in your site to make one common javascript file.  

Other than making the head editable, this would be the only way that I know (with the exception of performing server side processing of your form, but I figure that is out because you would be doing that already if you could).

davlun
Do you have an update for us on your problem.  If you fixed, how did you resolve???
ASKER CERTIFIED SOLUTION
Avatar of tohanley
tohanley

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I had mentioned the possibility of making the head editable in my comment above but did not give details.  But the main stickler here is that shishirk did not want to make the head editable (see the text of his question above).


davlun