KHTML part & window.open

David Faure dfaure at klaralvdalens-datakonsult.se
Sun Mar 7 21:14:58 GMT 2004


On Friday 05 March 2004 21:04, Rasta Freak wrote:
> I'm writing small KDE browser, using KDE 3.1.1, and can't get to work window popups. Javascript is enabled, popup policy is "always", I connected my function to KParts::BrowserExtension createNewWindow(KURL, KParts::URLArgs, KParts::WindowArgs, KParts::ReadOnlyPart*) signal, but in my function (slot) i receive empty url !!! If i connect to shorter version (createNewWindow(KURL, URLArgs)), slot doesn't get called !.
> 
> When web page wants to open new window (window.open in javascript), how can I find out requested URL ? Please help...

First the window is created with an empty url, _then_ openURL is called in that window.

This is necessary for many reasons, which I of course forgot, but the comments
in the source and/or the cvs logs contain the reasons :)

-- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions




More information about the kfm-devel mailing list