How to automatically code the window after a HREF call

12 views
Skip to first unread message

scott at SAS

unread,
Dec 7, 2009, 8:04:42 AM12/7/09
to KML Developer Support - Getting Started with KML
I have been struggling with this for several weeks now,all I want to
do is close the window automatically when the href is called.The code
called by the hef generates data only there is no output;

I use the following KML code , is there a any functional that will
stop the window from opening:


<?xml version='1.0' encoding='UTF-8'?><kml xmlns='http://
earth.google.com/kml/2.1'>
<Document>
<Style id='red'>
<IconStyle>
<Icon>
<href>http://www.google.com/intl/en_us/mapfiles/ms/icons/red-
dot.png</href>
</Icon>
</IconStyle>
</Style>
<Style id='green'>
<IconStyle>
<Icon>
<href>http://www.google.com/intl/en_us/mapfiles/ms/icons/green-
dot.png</href>
</Icon>
</IconStyle>
</Style>
<Style id='blue'>
<IconStyle>
<Icon>
<href>http://www.google.com/intl/en_us/mapfiles/ms/icons/blue-
dot.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<name>NR1 1BP</name>
<description>
<![CDATA[
<p><A Href= "http://localhost:8080/SASStoredProcess/do?_program=SBIP%3A
%2F%2FFoundation%2FSamples%2FStored+Processes%2FFIRE_RISK&postcode=NR1
1BP'> Claim Details </a></p>

<p><A Href='http://localhost:8080/SASStoredProcess/do?_program=SBIP%3A
%2F%2FFoundation%2FSamples%2FStored+Processes
%2FFIRE_RISK_1&postcode=NR1 1BP'> Risk Accumulation</a></p>
<p><A Href='http://localhost:8080/SASStoredProcess/do?_program=SBIP%3A
%2F%2FFoundation%2FSamples%2FStored+Processes
%2FFIRE_RISK_2&postcode=NR1 1BP'> Risk Analysis</a></p>
]]>
</description>
<styleUrl>#green</styleUrl>
<Point>
<coordinates>1.3074867367,52.628240258,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>


Hope somebody call help me iys driving me mad.

Scott.

todduser

unread,
Dec 17, 2009, 9:40:35 AM12/17/09
to KML Developer Support - Getting Started with KML
Scott,
Try changing <a href= to <img src=
Your code should run without opening the browser window.

Todd
Reply all
Reply to author
Forward
0 new messages