cvs: phpdoc /scripts/quickref originalafter.js processafter.php

From: Date: Wed, 31 Dec 2003 16:07:12 +0000
Subject: cvs: phpdoc /scripts/quickref originalafter.js processafter.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357775@lists.php.net to get a copy of this message
goba Wed Dec 31 11:07:12 2003 EDT Modified files: /phpdoc/scripts/quickref originalafter.js processafter.php Log: use setAttribute() instead of setting the JS attribute, since it is DOM1, and reported to work with IE Index: phpdoc/scripts/quickref/originalafter.js diff -u phpdoc/scripts/quickref/originalafter.js:1.7 phpdoc/scripts/quickref/originalafter.js:1.8 --- phpdoc/scripts/quickref/originalafter.js:1.7 Tue Dec 30 14:29:56 2003 +++ phpdoc/scripts/quickref/originalafter.js Wed Dec 31 11:07:12 2003 @@ -187,14 +187,13 @@ function fh_EFocus() { if (f_s.value=="quickref") { - f_p.autocomplete="off"; - _d.forms[0].autocomplete="off"; + f_p.setAttribute("autocomplete", "off"); fh_NewText(); } } function fh_EBlur() { setTimeout("fh_EBlurT()", 200); } -function fh_EBlurT() { f_p.autocomplete="on"; _d.forms[0].autocomplete="on"; fh_HideAll(); } +function fh_EBlurT() { f_p.setAttribute("autocomplete", "on"); fh_HideAll(); } function fh_EKeyPress(ev) { Index: phpdoc/scripts/quickref/processafter.php diff -u phpdoc/scripts/quickref/processafter.php:1.3 phpdoc/scripts/quickref/processafter.php:1.4 --- phpdoc/scripts/quickref/processafter.php:1.3 Fri Nov 21 06:30:17 2003 +++ phpdoc/scripts/quickref/processafter.php Wed Dec 31 11:07:12 2003 @@ -16,7 +16,7 @@ # | Authors: Mitja Slenc <mitja@php.net> | # +----------------------------------------------------------------------+ # -# $Id: processafter.php,v 1.3 2003/11/21 11:30:17 goba Exp $ +# $Id: processafter.php,v 1.4 2003/12/31 16:07:12 goba Exp $ */ $lines=file("originalafter.js"); @@ -24,7 +24,7 @@ $lines[$key]=array_shift(explode("//", trim($line))); } -$leave=array("cpd", "dcp", "for", "document", "forms", "break", "if", "continue", "var", "style", "innerHTML", "value", "getElementById", "autocomplete", "onblur", "onfocus", "onkeyup", "onkeydown", "onkeypress", "display", "pattern", "show", "left", "top", "event", "evt", "ev", "which", "length", "all", "navigator", "userAgent", "toLowerCase", "indexOf", "width", "else", "write", "split", "join", "charAt", "substring", "function", "return", "new", "Array", "switch", "case", "push", "pop", "default", "true", "false", "offsetLeft", "offsetParent", "while", "null", "tagName", "clientLeft", "parseInt", "border", "isNaN", "getAttribute", "charCode", "keyCode", "cc", "setTimeout", "fh_EBlurT"); +$leave=array("cpd", "dcp", "for", "document", "forms", "break", "if", "continue", "var", "style", "innerHTML", "value", "getElementById", "autocomplete", "onblur", "onfocus", "onkeyup", "onkeydown", "onkeypress", "display", "pattern", "show", "left", "top", "event", "evt", "ev", "which", "length", "all", "navigator", "userAgent", "toLowerCase", "indexOf", "width", "else", "write", "split", "join", "charAt", "substring", "function", "return", "new", "Array", "switch", "case", "push", "pop", "default", "true", "false", "offsetLeft", "offsetParent", "while", "null", "tagName", "clientLeft", "parseInt", "border", "isNaN", "getAttribute", "charCode", "keyCode", "cc", "setTimeout", "fh_EBlurT", "setAttribute"); $text=implode(" ", $lines);

« previous php.doc (#969357775) next »