Query template + javascript?

Xiaopeng Xiong xpxiong at PURDUE.EDU
Mon Oct 16 15:44:30 EDT 2006


I tried to add javascript to query templates. But it stops working by even declaring to use javascript. 

As in the following example:



-----Header.html-------

<html>

<head></head>

<body>

<script language = "javascript">  //* after adding this statement, the result page becomes empty

document.write("Just hello");  //* this does not work neither...



----Template.html-------

<tr><td>[LABEL]</td><tr>



----Footer.html------

</script>

</body>



It returns the query results correctly if the * statements are not inserted. But after adding the * statements, the result page becomes blank. 

Can anyone give a hint?



Thanks,

Xiaopeng




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061016/72569c13/attachment.html


More information about the mapserver-users mailing list