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

List:       kfm-devel
Subject:    Re: KHtmlPart caching images, how to disable?
From:       Unai Garro <Unai.Garro () ee ! ed ! ac ! uk>
Date:       2003-07-27 17:25:28
[Download RAW message or body]

>of course you can. check URLArgs for a parameter called "reload".

Hi Dirk, thanks for the hint, but still KHTMLPart doesn't reload the images. I 
tried the following, which I think is the correct way to use it

============
KParts::URLArgs args (dataView->browserExtension()->urlArgs());
args.reload=true; // Do not use cache
dataView->browserExtension()->setURLArgs(args); // set the args to the part

dataView->begin(KURL("file:/tmp/" )); // Initialize to /tmp directory
dataView->write(dataHTML); // Write the html code
dataView->end();


The only way I found so far to reload was:

delete dataView; // Destroy the part
dataView =new KHTMLPart(this); // create new part
dataView->begin(KURL("file:/tmp/" )); // Initialize to /tmp directory
dataView->write(recipeHTML);
dataView->end();
[prev in list] [next in list] [prev in thread] [next in thread] 

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