Version: (using KDE KDE 3.5.4) Installed from: Fedora RPMs Compiler: 3.5.4-0.5.fc5 OS: Linux Konqueror doesn't load the iframe's content with document.write inmediately. The solution is to use setTimeout function to give it an extra time. example: Error function actualiza(){ var cad= '<html><head></head><body>Hello</body></html>'; window.iframe1.document.open(); window.iframe1.document.write(cad); window.iframe1.document.close(); return; } in the html body <body> ... ... <iframe ....> <script languaje="javascript"> actualiza(); //the code fails here </script> </body> Solution: function actualiza(){ var cad= '<html><head></head><body>Hello</body></html>'; window.iframe1.document.open(); window.iframe1.document.write(cad); window.iframe1.document.close(); return; } in the html body <body> <body> ... ... <iframe ....> <script languaje="javascript"> setTimeout('actualiza()', 400); //this is the solution </script> </body> </body>
Can you rewrite this into test case that demonstrates what Konqueror does wrong?
A testcase could be very helpful!
not reproducible