#31879 [Opn]: function list suggestion does not work
| From: | eddie at omegaware dot com | Date: | Sun, 27 Feb 2005 02:52:07 +0000 |
| Subject: | #31879 [Opn]: function list suggestion does not work | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-27578@lists.php.net to get a copy of this message | ||
ID: 31879
User updated by: eddie at omegaware dot com
Reported By: eddie at omegaware dot com
Status: Open
Bug Type: Website problem
Operating System: All
PHP Version: Irrelevant
New Comment:
OK I've solved the problem with IE not working correctly.
I actually ran across the same problem while doing my own JS code
dynamically adding elements using the DOM.
IE does not correctly set the 'style' attribute when using the
setAttribute dom function, so you have to explicitly specify any styles
via the
object.style.cssstylename
gotta love firefox's view selected source as it'll show the "current"
source with all DHTML changes, as I disabled the onblur handler
selected the entire page view source and then copied it out to a temp
file and loaded that in IE, where I found that the HTML is not being
generated the same.
This is the lovely comment in my JS code
nodebox.setAttribute('id',this.name+'_box');
nodebox.appendChild(nodesrch);
/* Setting attribute style doesn't work on IE, so manually set the
styles */
nodebox.style.position = 'absolute';
I believe that was committed with a SVN comment of "YASIEH" (yet
another stupid IE hack)
Previous Comments:
------------------------------------------------------------------------
[2005-02-27 02:39:56] dave@php.net
You can find all the source code here:
http://cvs.php.net/phpdoc/scripts/quickref/
------------------------------------------------------------------------
[2005-02-26 21:44:59] eddie at omegaware dot com
Is the *original* source to this code available somewhere? (not the
obfuscated version on the web). As I would be glad to take a look over
it and make it work in a wider set of browsers.
------------------------------------------------------------------------
[2005-02-26 21:35:39] nlopess@php.net
It doesn't work on MSIE 6 now :)
------------------------------------------------------------------------
[2005-02-26 21:06:10] eddie at omegaware dot com
The function search on http://php.net/search.php now works
again,
however it is disabled on all other php.net pages.
------------------------------------------------------------------------
[2005-02-08 01:59:54] eddie at omegaware dot com
Description:
------------
The function list suggestion feature does not work at all.
I've tested IE 6 SP1, mozilla 6, and Firefox 1.0, and all show the same
results, errors in the javascript in functions.js
From the Mozilla/Firefox JS Console
Error: FT has no properties
Source File: http://{mirror}.php.net/functions.js
Line: 2
IE shows
Line: 3
Char 1992
Error: Object Required
Code: 0
url: http://{mirror}.php.net/search.php
I would have debugged the JAvascript and sent a patch, but that code is
so obfuscated it's unrecognizable as Javascript.
Reproduce code:
---------------
goto http://php.net/search.php
Type in a array in the search text input.
Expected result:
----------------
A popup list of array* functions
Actual result:
--------------
nothing except for errors logged to javascript console.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31879&edit=1