This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Signals in Plasmoids with Javascript. How?

Tags: None
(comma "," separated)
gosku
Registered Member
Posts
3
Karma
0
Hello,

Since there isn't a DOM that I can work with, I'm tryng to get the html code of a page with the webView html atribute:


Code: Select all
var web = new WebView();
web.url = Url("http://www.example.com");
var a = web.html;
print(a);


This code doesn't work because I have to wait for the url to finish loading. I know I have to use the signal loadFinished, but I don't know how.

My objective is to modify the html code, but whithout a DOM I'll have to work with strings treatment. Do you know if it is possible to manipulate the html code more easily with python or another interpreted language?

Thank You in advance!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient