qt-interest@trolltech.com
[Top] [All Lists]

re:apply tidy directly for the page loaded with webkit without saving it

Subject: re:apply tidy directly for the page loaded with webkit without saving it on the disk
From: "medi m"
Date: Tue, 10 Jun 2008 10:39:58 +0100
thank's André
I did read the documentation on addToJavaScriptWindowObject but it is not detail,
I think that the explacation of addToJavaScriptWindowObject on the site http://doc.trolltech.com/4.4/qwebframe.html # addToJavaScriptWindowObject is
very short (we can understand a function in just two words!!!!!!!!!!!!!!!!!!),


brief

I was put  this  part as comment:

    /*if (!m_dataObject) {
        m_dataObject = new TestObj();
        f->addToJavaScriptWindowObject("dataOutput", m_dataObject);
      }*/

and i change script like this:
   var anchorList = document.getElementsByTagName("a") ;
   alert(anchorList[1].href);


Please I want to know What's the role of  addToJavaScriptWindowObject function? If it is possible I want to know what it make exactly!!

Cheers.
Sanaa
<Prev in Thread] Current Thread [Next in Thread>