AW: [mapserver-users] javascript & mapserver
Janosch.Skrobek at trier.de
Janosch.Skrobek at trier.de
Tue Apr 1 01:19:05 PDT 2008
Sorry for the second post. I seem to have gotten one step further, I think maybe my path was wrong? When using the same path as all the other files in my template ("/tutorial/js/") there is a new output error: 'host' is undefined, 'img' is undefined. How can I get the js to work with the mapserver variables? Or am I on the wrong way here?
Thanks
Janosch
-----Ursprüngliche Nachricht-----
Von: Skrobek, Janosch
Gesendet: Dienstag, 1. April 2008 09:46
An: 'John Daly'
Cc: 'mapserver-users at lists.osgeo.org'
Betreff: AW: [mapserver-users] javascript & mapserver
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
--------------------------------------------------------------------------------
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