[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: Bug#23387: javascript object accessing problem
From: medisoft () alohabbs ! org ! mx
Date: 2001-03-31 6:39:35
[Download RAW message or body]
Package: khtml
Version: 3.0 (using KDE 2.1.9 >= 20010310)
Severity: normal
Installed from: compiled sources
Compiler: gcc version 2.95.3 19991030 (prerelease)
OS: Linux (i686) release 2.2.17-21mdk
OS/Compiler notes:
(I had reported this problem before, but now i found it isn't dhtml problem, but \
javascript)
The "practic" sample for this problem is on my page: http://www.ranma.org.mx, but \
here i put some lines that gives the same problem.
Looking at the kdelibs messages on the latest CVSup release of kde2.1 i found
the line that gives problems, i make a small modification and works, so it
isn't DHTML problem, but javascript.
I have this code (extracted from my site), konqueror was detected as Internet
Explorer 4 or better. Then the if condition runs the IE4 functionality
if(NS4)
document.layers[m].visibility="show";
if(IE4)
document.all.tags("div")[m].style.visibility="visible"; <- this line
don't work
but if i replace that line with :
document.pics.style.visibility="visible"; <- this line works
it works! all the DHTML code works, but i need to pass the name directly on
the code, it can be as another variable like on IE or NS.
so if i have X number of divs or layers i need to make a switch { } with that
number of conditions (i don't want to do that, i think a lot of sites don't
use that).
I hope this information make easy to fix the problem. Anyway i will try to
get it working hacking the CVS release i have.
Mario
(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic