I haven't tested that (I was about to by these days) but I guess it's just include [1] instead of plasmoid.include ...
[1] http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API#Access_To_Packaged_Files Sorry if I'm saying silliness ... Cheers, -- J (|´:¬{)» --------------------------------------------- "Eu sou a ressurreição e a vida. Quem crê em mim, ainda que morra, viverá; e todo o que vive e crê em mim não morrerá, eternamente. Crês isto?" O Senhor, Jesus Cristo - Jo.11:25-26 --------------------------------------------- 2010/1/14 Amos Kariuki <amoskah...@gmail.com> > I’m trying to create a javascript plasmoid with multiple modules. My > main.js file includes another script file; my problem is that I’m unable to > reference the variables and functions declared in the included file. > Example: > > [lib.js] > var name = “Amos”; > > > [main.js] > plasmoid.include(“lib.js”); > print(name); > > When I run the plasmoid, I get a message stating that x is undefined. I’m > I referencing the variables incorrectly or is there some other way to > achieve what I want? > > Thanks, > Amos Kariuki > > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel