Hello,
The code below assigns a value to the Latitude and to the Longitude table cells when the submit button is pressed.
I would like to have these values appear in text boxes instead. Obviously I need to amend onclick=”javascript:usePointFromPostcode(document.getElementById(‘postcode’).value, placeMarkerAtPoint)”
to make this work but I can’t seem to.
Assuming two text boxes with names lng and lat, how would I amend the line?
Thanks
[CODE] <p align=”left”>
<table bgcolor=”#FFFFCC” width=”300″>
<tr>
<td width=”100″>
<b>Latitude</b></td>
<td id=”lat”>
</td>
</tr>
<tr>
<td width=”100″>
<b>Longitude</b></td>
<td id=”lng”>
</td>
</tr>
</table>
</p>
<p>
Postcode:
<input type=”text” id=”postcode” size=”10″ value=”IG3 8PY” /><br />
<input type=”submit” value=”Find” onclick=”javascript:usePointFromPostcode(document.getElementById(‘postcode’).value, placeMarkerAtPoint)” /><br />
<div id=”map” style=”width: 500px; height: 500px”>
</div>
<p>
<script src=”http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAA43oi4HUU6ay_KI5aLlgqqxRs1CMn3rnBr6PSR_9LSokba_k_xRRX9T_bJ1PRZQ_1n4nF3EOK”
type=”text/javascript”></script>
<br />
<script src=”http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAA43oi4HUU6ay_KI5aLlgqqxRs1CMn3rnBr6PSR_9LSokba_k_xRRX9T_bJ1PRZQ_1n4nF3EOK”
type=”text/javascript”></script>
<br />
<script src=”gmap.js” type=”text/javascript”></script>
</p>
</body>
</html>