Okay, it is working now after some trials
What I did is to add both <script language = "_javascript_"> and </script> in each header, footer and template html, rather than split them in header and footer html ...
 
 
Regards,
Xiaopeng
 
 
 
----- Original Message -----
Sent: Monday, October 16, 2006 3:44 PM
Subject: [UMN_MAPSERVER-USERS] Query template + _javascript_?

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

 

 

Reply via email to