need help on my javascript plasmoid

Patrick Aljord patcito at gmail.com
Wed Jul 22 08:38:30 CEST 2009


Hey all,

I've been following the Getting Started tutorial on techbase and it works great.
Since then, I've been trying to use QHttp and other Qt classes in my
main.js file but the plasmoid fails. I'm trying to download an xml
file such as in this amarok script example:
http://amarok.kde.org/forum/index.php?topic=17084.0

Something like that:


Importer.loadQtBinding( "qt.core" );
Importer.loadQtBinding( "qt.xml" );

xmlUrl = new QUrl( "http://ws.audioscrobbler.com" );
http   = new QHttp;

Any idea why it fails? By the way, how do I get any debugging? When I
do "plasmoidviewer ." I just get the plasmoid with the "Script
initialization failed" message, nothing more.

Thanks in advance

Pat


More information about the Plasma-devel mailing list