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

List:       kde-devel
Subject:    Re: Using khtml_part and meta refresh headers
From:       David Faure <faure () kde ! org>
Date:       2004-12-22 20:37:02
Message-ID: 200412222137.03275.faure () kde ! org
[Download RAW message or body]

On Wednesday 22 December 2004 21:25, John Morton wrote:
> >  >     doc->setMetaRefreshEnabled(useMetaRefresh);
> >
> >  Which is true I assume?
> 
> Yes :-) Toggling the control for the javascript support works as expected.

Sounds unrelated. I would make double sure that it's true before debugging anything else.

> I see that around about Feb 2003 a patch was added to make the refresh stuff 
> work, but that's what I see in the body of khtml_part.cpp linked from the 3.2 
> documentation, so I assume debian's 3.2.3 version libraries include it. I 
> might be wrong...

Fixes happen all the time - surely there were other fixes since Feb 2003. 
Anyway, check that your webpage works in konqueror first, so that you know if
the bug is in khtml or in your code.

> Time to figure out how to get debugging work :-) Give the amount of time I've 
> spent fighting the build system, can you give me some pointers to get me 
> started?

Compile kdelibs yourself (without --disable-debug) and then
1) to see what KHTML is doing, start konqueror from a terminal and watch the stderr output
2) to see what your program is doing... well I'm not sure if a screensaver can be started
from a terminal. If not (i.e. KDE starts it), then you can probably find its output in
~/.xsession-errors, assuming that you use xdm or kdm. If you use startx, redirect
its output :)

> Same thing, apparently. show and hide are just an alias for view()->show(). I 
> was following the example code in the description of khtml_part.

Ah, I never noticed those (unusual) helper methods. OK.

-- 
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
 
>> 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