aizat12345

Printing query/search result from map via javascript; How to????

Discussion created by aizat12345 on Dec 14, 2010
Latest reply on Dec 20, 2010 by lowgas
Hi I have designed a web mapping application that have some data search/query function. The result comes from the data that had been overlayed with the map and will be displayed on the map in the form of icons. I also had created a button to print the search result together with the map. The button will call another file which i named as print.html, where it will invoke the print function to print the map id together with the search/query result. My problem is that only the map is printed but not the search results.
-------------------------------------------------------------------------------------------
This is my print.html

<h4> Printed Ver.</h4>

<script language="javascript">



var contents2 = window.opener.document.getElementById("map");

document.write(contents2.innerHTML);



window.print();
</script>
----------------------------------------------------------------------------------------------


I would appreciate if anybody can help me with this issue.

I have attached also my web mapping script for reference

Attachments

Outcomes