Hi
I am currently building a page that uses javascript to build a googlemap. From this i am allowing a user to enter a postcode and it gives the relevant distances of all the nearest places to that postcode. I just cannot get the results to be shown, I think it is because the page is refreshing? I don't understand why. My ASP.net code is:
<asp:Label ID="lblSearchPostcode" runat="server" CssClass="SubHead" Text="Search by postcode:" /><br />
<input class="postcode" style="width:180px" value="Loading..." onblur="if(this.value=='') { this.value='Enter your postcode'; clearError('postcode'); }" onfocus="if(this.value=='Enter your postcode') { this.value=''; clearError('postcode'); }" id="postcode" type="text" disabled="disabled" />
<input id="btnPostcode" value="Loading..." class="go" onclick=" checkEnter();" type="submit" disabled="disabled" />
<div id="closebar" style="height:130; border: solid 1px grey; overflow: auto; padding: 4px 4px 4px 4px; margin: 8px 8px 8px 8px;" ><h1>Nearest Trusts</h1><p>Postcode not set</p></div>
<div id="mapbar" style="width:100%; height:600px; text-align:center;">
<div id="map" style="width:100%; height:600px; text-align:center;" ></div>
</div>
<div id="resultbar"></div>
I am changing the attributes of the button within the javascript, so that once the page has loaded the user can enter a postcode and click enter. Any tips would be brill.
Thnx
Steve