Version: 3.5.2 (using KDE KDE 3.5.2) Installed from: Slackware Packages Compiler: gcc 3.4.6 installed (slackware-current), but i don't know with which version is compiled KDE by Pat OS: Linux The simple HTML/JavaScript code: <html> <body> <p align=center><img src="1.jpg" name="main_img" height="480"></p> <table> <tr> <td><img src="1.jpg" name=img0 width="48" onClick="document.images['main_img'].src='1.jpg'"></td> <td><img src="2.jpg" name=img1 width="48" onClick="document.images['main_img'].src='2.jpg'"></td> </tr> </table> </body> </html> is working in IE and Firefox, but does not work in Konqueror. The idea is: by clicking one of two small images at bottom, the upper image must be reloaded with the appropriate jpg-file. It does not work in konqueror but works in IE, Firefox, Mozilla. I tried to replace "document.images['main_img']" with "getElementById['main_img']", "name" with "id" etc., but this does not work too.
Additional information: The code IS WORKING if the jpg-files are in / (root) directory and onClick="document.images['main_img'].src='/2.jpg'" (so, with "/").
The following are working too: onClick="document.images['main_img'].src='img/2.jpg'" (jpg-files in subdirectory) onClick="document.images['main_img'].src='http://img.lenta.ru/news/2006/04/05/lime/picture.jpg'" (absolute URL) NOT working: 1) absolute local path: onClick="document.images['main_img'].src='/tmp/2.jpg'" 2) jpg-files in the same directory: onClick="document.images['main_img'].src='2.jpg'" onClick="document.images['main_img'].src='../tmp/2.jpg'" The standalone statement <script>document.main_img.src="2.jpg";</script> is however working!
The following code works: onClick=" document.images['main_img'].src='02.jpg';document.images['main_img'].height=docu ment.images['main_img'].height-1;document.images['main_img'].height=document.ima ges['main_img'].height+1;" but it is not a good solution. The bug should be fixed anyway.
Unable to reproduce any of the failing behaviour on KDE 3.5.5 / Kubuntu 6.10. Testcase available online at http://www.mutube.com/x/kde/bug124979/index.html for both issue 1 & 2 mentioned in Comment #2. Also tested this locally again with no problems.. Can anyone reproduce this bug?
I see "tick cross > tick" for the 3 cases in the test case. Is that right?
When clicking cross the right tick should change to cross and vice versa. And it does. Tested with 3.3.2a and svn r620k.
WFM too..