Bug#540226: plasma-scriptengine-javascript: scripted-image plasmoid fails to display image
Package: plasma-scriptengine-javascript
Version: 4:4.2.4-1+b1
Severity: normal
I recently installed the "scripted image" plugin to display
a weather forecast as described in:
http://hanswchen.wordpress.com/2009/07/30/plasma-a-nice-weather-plasmoid-in-4-easy-steps/
I used
http://www.yr.no/place/Austria/Upper_Austria/Linz/meteogram.png
as "Image Url", Scale applet to content, and an update time of 30 minutes.
When I do a "killall plasma && plasma" I see the following error:
JS CONSOLE MESSAGE: line 1 : "ReferenceError: Can't find variable: init"
When I click configure and apply I get a similar error:
JS CONSOLE MESSAGE: line 1 : "ReferenceError: Can't find variable: configChanged"
Excerpt from script.js (part of the code of "scripted image"):
function init()
{
//alert("init")
g_img = new Image();
g_img.onload = widhtHeightReady;
constraintsEvent(FormFactorConstraint);
configChanged();
}
configChanged is defined in this script too.
As others commented on the Blog post, that it works for them, I guess
it is not a bug of the "scripted image" plasmoid.
regards,
Martin Maurer
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30.1 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=de_AT (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages plasma-scriptengine-javascript depends on:
ii kdebase-runtime 4:4.2.4-2 runtime components from the offici
ii kdelibs5 4:4.2.4-1 core libraries for all KDE 4 appli
ii libc6 2.9-12 GNU C Library: Shared libraries
ii libgcc1 1:4.4.0-5 GCC support library
ii libplasma3 4:4.2.4-1 library for the KDE 4 Plasma deskt
ii libqt4-script 4:4.5.2-1 Qt 4 script module
ii libqtcore4 4:4.5.2-1 Qt 4 core module
ii libqtgui4 4:4.5.2-1 Qt 4 GUI module
ii libstdc++6 4.4.0-5 The GNU Standard C++ Library v3
plasma-scriptengine-javascript recommends no packages.
plasma-scriptengine-javascript suggests no packages.
-- no debconf information
Reply to: