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

List:       kde-devel
Subject:    KHTML and onLoad
From:       Sébastien_Richard <sebastien.richard_kde () m4x ! org>
Date:       2004-09-26 10:23:01
Message-ID: 41569885.3000006 () m4x ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi all,

My question is about hacking around KHTML and I am not sure this 
newsgroup is the best one for this kind of question, if you know THE 
place to ask, please tell me

I am trying to understand how KHTML is working to be able to link with it.
Here is the scenario I had imagined for a request :
openUrl(url)
process event loop
...
until emit (completed) or emit(completed(true))

But, if my web page is

<html>
<head>
<title>TEST</title>

<script language="JavaScript">
<!--
function loadFrames()
{
       upframe.location="page3.html";
}
//-->
</script>
</head>

<frameset rows="50%,50%" onLoad='loadFrames();'>
<frame src="page1.html" name="upframe"/>
<frame src="page2.html"/>
</frameset>
</html>

If I run this with kdedebug enabled, I can see that I get the signal 
completed()  BEFORE the HTTP GET query for page3.html.
And I receive the signal completed() not the signal 
completed(pending=true).
Is this a bug ? Is there any other variable that could indicate me that 
the loading is not finished ?
Konqueror manages to render the page correctly but I can't explain how.
Thanks for help.

Sebastien

[Attachment #5 (multipart/related)]

[Attachment #7 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all,
<br>
<br>
My question is about hacking around KHTML and I am not sure this
newsgroup is the best one for this kind of question, if you know THE
place to ask, please tell me <img
 src="cid:part1.00040201.07060307@m4x.org" alt=":)"
 class="moz-txt-smily" height="19" width="19" align="middle">
<br>
<br>
I am trying to understand how KHTML is working to be able to link with
it.
<br>
Here is the scenario I had imagined for a request :
<br>
openUrl(url)
<br>
process event loop
<br>
...
<br>
until emit (completed) or emit(completed(true))
<br>
<br>
But, if my web page is
<br>
<br>
&lt;html&gt;
<br>
&lt;head&gt;
<br>
&lt;title&gt;TEST&lt;/title&gt;
<br>
<br>
&lt;script language="JavaScript"&gt;
<br>
&lt;!--
<br>
function loadFrames()
<br>
{
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; upframe.location="page3.html";
<br>
}
<br>
//--&gt;
<br>
&lt;/script&gt;
<br>
&lt;/head&gt;
<br>
<br>
&lt;frameset rows="50%,50%" onLoad='loadFrames();'&gt;
<br>
&lt;frame src="page1.html" name="upframe"/&gt;
<br>
&lt;frame src="page2.html"/&gt;
<br>
&lt;/frameset&gt;
<br>
&lt;/html&gt;
<br>
<br>
If I run this with kdedebug enabled, I can see that I get the signal
completed()&nbsp; BEFORE the HTTP GET query for page3.html.
<br>
And I receive the signal completed() not the signal
completed(pending=true).
<br>
Is this a bug ? Is there any other variable that could indicate me that
the loading is not finished ?
<br>
Konqueror manages to render the page correctly but I can't explain how.
<br>
Thanks for help.
<br>
<br>
Sebastien
</body>
</html>

[Attachment #8 (image/gif)]

>> 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