[mapserver-users] javascript & mapserver
John Daly
jdaly at panix.com
Mon Mar 31 06:08:08 PDT 2008
Not sure what your replacement url looked like, but I'd check out an interpolation problem first. Maybe something like:
document.write('<param name="image" value="http://' + [host][img] + '">');
JD
>
> In the js-file:
> document.write('<applet codebase="/tutorial/java/jBox"
> archive="jBoxPNG.jar,png.jar" code="jBoxPNG.class" width="450"
> height="450" name="jBox"');
> document.write('<param name="image" value="http://[host][img]">');
> document.writeln('</applet>');
>
> In the template:
> <script src="/js/dmap.js"></script>
>
> The script is being loaded but I get the following error:
>
> "Applet error. Malformed image url"
>
> I tried replacing the image url with a direct image url to an existing
> image but still the same error.
>
> Unfortunately I'm completely new to javascript and can't seem to solve
> this.
> Any help would be appreciated.
>
More information about the MapServer-users
mailing list