[mapserver-users] javascript query template examples

Ted Spradley tspradley at snoogems.com
Fri Oct 23 11:10:06 EDT 2009


Steve, 

Regarding the MIMETYPE directive of OUTPUTFORMAT, I was just reading
RFC-4329 that was marking
the mimetype 'text/javascript' as obsolete, preferring mimetype
'application/javascript'.  Is use of both
mimetypes interchangeable for MapServer?

Thanks, Ted S.

Steve Lime wrote:
> 
> 
> The TEMPLATE keyword is still used to make layers queryable. That may
> change
> in the future. Simple using something like TEMPLATE 'dummy' will suffice.
> 
>>> The OUTPUTFORMAT:
>>> 
>>> OUTPUTFORMAT
>>>     NAME 'county_select_list'
>>>     DRIVER 'TEMPLATE'
>>>     MIMETYPE 'text/javascript'
>>>     FORMATOPTION 'ATTACHMENT=county_select_list.js'
>>>     FORMATOPTION 'FILE=/templates/demo_county_select_list.js'
>>> END
>> 
>> What is the difference in ATTACHMENT and FILE?
> 
> 

-- 
View this message in context: http://n2.nabble.com/Querying-map-using-CGI-tp3138712p3879287.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list