Javascript debugger
Koos Vriezen
koos.vriezen at xs4all.nl
Sun Feb 16 16:48:55 GMT 2003
On Sun, 16 Feb 2003, Koos Vriezen wrote:
> I would very much like to see pages that are dynamic created. Typically
> original 'about:blank' documents, replaced with document.open/write/close.
> (Now I have to do 'top.frames[0].document.firstChild.innerHTML' to get it
> contents).
Here is an example of this. Current debugger doesn't work here
<HTML><HEAD><SCRIPT>
function doIt() {
var doc = myframe.document;
doc.open();
doc.write("<html><body onClick='alert(\"Hi\")'></body></html>");
doc.close();
}
</SCRIPT></HEAD>
<FRAMESET onLoad="doIt()">
<FRAME NAME="myframe" SRC="about:blank">
</FRAMESET>
</HTML>
(Break at next statement and click on the frame)
Problem of course is having multible about:blank. Sometime ago I tried
this http://lists.kde.org/?l=kfm-devel&m=103875843801569&w=2
It's more of a hack but that worked for me, all generated documents could
now be selected and debug'ed if it contained JS.
>
> Koos
>
>
More information about the kfm-devel
mailing list