forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: rev 22672 - forrest/trunk/src/core/context/skins/common/scripts
Date Wed, 07 Jul 2004 12:24:27 GMT
Author: thorsten
Date: Wed Jul  7 05:24:26 2004
New Revision: 22672

Modified:
   forrest/trunk/src/core/context/skins/common/scripts/getBlank.js
Log:
added ASF licence


Modified: forrest/trunk/src/core/context/skins/common/scripts/getBlank.js
==============================================================================
--- forrest/trunk/src/core/context/skins/common/scripts/getBlank.js	(original)
+++ forrest/trunk/src/core/context/skins/common/scripts/getBlank.js	Wed Jul  7 05:24:26 2004
@@ -1,3 +1,26 @@
+/*
+* Copyright 2002-2004 The Apache Software Foundation
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/**
+ * This script, when included in a html file, will set the value of a form text to ""
+ * if the text value is the standard value. Besides that is has to be called from the text
field
+ *
+ * Typical usage:
+ * <script type="text/javascript" language="JavaScript" src="getBlank.js"></script>
+ * <input type="text" id="query" value="Search the site:" onFocus="getBlank (this, 'Search
the site:');"/>
+ */
 <!--
 function getBlank (form, stdValue){
 if (form.value == stdValue){

Mime
View raw message