I haven't tested that (I was about to by these days) but I guess it's just include [1] instead of plasmoid.include ...<br>
<br>
[1] <a href="http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API#Access_To_Packaged_Files">http://techbase.kde.org/Development/Tutorials/Plasma/JavaScript/API#Access_To_Packaged_Files</a><br>
<br>
Sorry if I'm saying silliness ...<br>
<br>
Cheers,<br clear="all">--<br>J (|´:¬{)»<br>---------------------------------------------<br>"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?"<br>
O Senhor, Jesus Cristo - Jo.11:25-26<br>---------------------------------------------<br>
<br><br><div class="gmail_quote">2010/1/14 Amos Kariuki <span dir="ltr"><<a href="mailto:amoskahiga@gmail.com">amoskahiga@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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:<br>
<br>[lib.js]<br>var name = “Amos”;<br><br><br>[main.js]<br>plasmoid.include(“lib.js”);<br>print(name);<br><br>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?<br>
<br>Thanks,<br><font color="#888888">Amos Kariuki<br>
</font><br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br>