[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    Bug#33085: Javascript void:newWindow() broken / empty window opens
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-09-29 17:48:17
[Download RAW message or body]

On Samedi 29 Septembre 2001 00:34, frank.kruchio@paradise.net.nz wrote:
> Package: kjs
> Version: KDE 2.2.1 
> Severity: normal
> Installed from:    SuSE RPMs
> Compiler:          Not Specified
> OS:                Linux
> OS/Compiler notes: Not Specified
> 
> Click on the "e-mail to a friend" link here at IBM:
> http://www-105.ibm.com/developerworks/education.nsf/linux-onlinecourse-bytitle/9A31A3C4A0CE683E86256AD400822942?OpenDocument
>  
> and the window opens empty.

JS code:
        emailWindow = \
window.open("","subwindow","HEIGHT=500,WIDTH=600,resizable=yes")  \
emailWindow.document.write(output)  emailWindow.document.close()

Result:
khtml (jscript): Window::get emailWindow
khtml (jscript): Window::get document
KJS: Type error. Null value
KJS: Failed function call attempt on: undefined : Undefined (0x87815c8), line 0
KJS: Was property 'write'

In short, the document of a blank KHTML part can't be accessed. This looks very
much like the "about:blank" problem I was trying to help with.
Dirk ? It seems there no "document" element in an empty KHTML.
Can we, hmm, create it on demand ?

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
http://mail.kde.org/mailman/listinfo/konq-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic