Solved

Validate form in a template-based page

Posted on 2000-04-20
5
135 Views
Last Modified: 2010-04-25
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???
0
Comment
Question by:shishirk
  • 3
5 Comments
 
LVL 1

Expert Comment

by:cybernietic
ID: 2735054
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."
0
 
LVL 3

Expert Comment

by:davlun20080
ID: 2740860
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
0
 
LVL 3

Expert Comment

by:davlun20080
ID: 2758178
Do you have an update for us on your problem.  If you fixed, how did you resolve???
0
 

Accepted Solution

by:
tohanley earned 100 total points
ID: 2894109
Make all of your <HEAD> content an editable region in your master template .DWT file by placing:
<!-- #BeginEditable "headcontent" --> right after the <HTML> tag.  Then close the editable region right before the <BODY> tag with:
 <!-- #EndEditable -->

Everything between these tags will then become editable including scripts, META tags, doc title, etc.
0
 
LVL 3

Expert Comment

by:davlun20080
ID: 2895895
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
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now