Mark, I think mapserver will pass Javascript, but the templates must be named using a .html (and note the lower case) extension. I had a problem with using upper case .HTML in mapserver 5.2.1 (http://trac.osgeo.org/mapserver/ticket/784).
Depending on the target of the html/javascript, triggering it could get tricky. If its a new window, then onload, etc will work. If its an AJAX framework like GeoMoose then I'm not so sure. With Geomoose 1.6 I used some of the input validation tools to do some calculation, but I haven't looked into similar capability within Geomoose 2.2. Best Regards, Brent Fraser > Hello, > > I have an application that I am working on. The parcel id is in a > xx.xxx.xxx.x format, however I need to change the format to xx-xxx-xxx-x > for > an external tax database application. I will not be updating the data, > and > therefore I will need to make this change through code. I have worked on > previous applications using java. For example I would use parcel = ( > this.substring(0,2) + "-" + this.substring(3,9). However, unless I am > wrong, > mapserver does not appear to pass javascript through templates. > > Is there a way that I can convert the format of numbers directly in the > template? > > Thanks > > Mark Volz > GIS Specialist > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
