AW: [mapserver-users] javascript & mapserver
Janosch.Skrobek at trier.de
Janosch.Skrobek at trier.de
Tue Apr 1 00:45:35 PDT 2008
Good Morning,
first of all thanks for your help!
Now the script works and I don't get any error messages anymore. The image is being created (I can see it in the temp-folder) but there is still one problem: it doesn't show up in the website.
Is there anything else I'm missing here?
This is the current js-file:
document.write('<applet codebase="/js/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>');
And this is how I implement it in the site:
<script src="js/dmap.js"></script>
Thank you
Janosch
-----Ursprüngliche Nachricht-----
Von: John Daly [mailto:jdaly at panix.com]
Gesendet: Montag, 31. März 2008 15:08
An: Skrobek, Janosch
Cc: mapserver-users at lists.osgeo.org
Betreff: Re: [mapserver-users] javascript & mapserver
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.
>
--------------------------------------------------------------------------------
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Der
rechtsverbindliche elektronische Schriftverkehr mit der Stadt Trier ist über diese
E-Mail-Adresse derzeit noch nicht möglich.
--------------------------------------------------------------------------------
More information about the MapServer-users
mailing list