[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Switching KParts in a web browser
From: Aurélien Gâteau <agateau () dental-on-line ! fr>
Date: 2006-07-21 8:38:04
Message-ID: e9q3pd$sn9$1 () sea ! gmane ! org
[Download RAW message or body]
David Faure wrote:
> On Thursday 13 July 2006 12:37, Aurélien Gâteau wrote:
>> Hello,
>>
>> I am adding browsing support to a PyKDE application. I am using the
>> KHTMLPart class and it works great... for HTML. If I click on a link
>> pointing directly to an image for example, the binary of the image get
>> displayed.
>>
>> I understand I need to switch from the KHTMLPart to another. I tried to
>> determine the url type using a MimeTypeJob, but it's not the way to go
>> because it causes two requests on the server, and this leads to bad
>> results if the url is the action of a form with method="get".
>>
>> How can I know about the url mimetype without using MimeTypeJob?
>
> By using KParts::BrowserRun (based on KRun), which starts to download the
> URL, then puts it on hold, and then when the part wants to download the
> same URL again the download is automatically resumed (Waldo's KIO
> scheduler magic).
>
Thanks a lot, that fixed it!
Aurélien
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic