[Mapserver-users] Query : No results

Richard Greenwood rich at greenwoodmap.com
Wed Apr 7 08:28:07 PDT 2004


Sebastien Vincent wrote:
> Hello,
> 
> I run mapserv 4.0.1 without any problems.
> 
> I put the mapserv form and variables in a frame of my webpage. The 
> tools, reference map, scalebar, layers control etc... are in the main 
> page. With javascript I change the values of the hidden vars witch are 
> in the frame and I submit the form. It works pretty fine :)
> 
> I can know doing some querys, but when the query have no results, 
> mapserv return a page, with only a message saying that there is no 
> results. I want to display in this case, another page (saying "In 
> French", for my visitors, that the query failed, and reload the map as 
> it was before the query).
> 
> I searched CGI vars, Templates and Map File references. But without 
> results, searched also and the mailling list archive without more results.
> 
> This is the reason I'm asking you :/
> 
> Thanks in advance if you have any advice for me,
> 
> best regards,
> 
> seb :)


In the WEB section of your .map file, set
    EMPTY "no_results_page.html"
This will display your no_results_page.html (or whatever you choose to 
name it).

-- 
Richard Greenwood
www.greenwoodmap.com



More information about the MapServer-users mailing list