Solved

Validate form in a template-based page

Posted on 2000-04-20
5
141 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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