I am trying to inject the value from my link_field10 into this google script. I included this script in my link_summary.tpl and enclosed it in {literal} tags, as recommended in the forum. Here is the google script from my link_summary.tpl
{literal}
<script src="http://maps.google.com/maps?file=api&v=2&key=mysecret key" t ype="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallZoomControl());
map.setCenter(new GLatLng(37.4419, -122.1419), 15);
}
}
//]]>
</script>
{/literal}
Basically the value stored in my link_field10 consist of 2 integers seperated by a comma, eg. 37.4419, -122.1419
If I enter the numbers directly into the above script, as I have shown above, it displays fine. If I replace the above numbers with $link_field10, it does not work. I want to dynamically load the value of $link_field10 into this script when the story page loads
Can someone tell me what I need to do?
Ash?
Thx




Linear Mode




