Strange - it was working several time, but now stopped working. Just
blank page.
http://businessexchange.ca/map_locations_backup.php


On May 15, 9:14 am, Andrew Leach <[email protected]>
wrote:
> On May 15, 2:05 pm, Tali <[email protected]> wrote:
>
> > So, maybe someone could take a look a say what is wrong with this
> > javascript?
>
> Sometimes things get lost. Thanks for waiting a bit before bumping.
>
> These two lines fail
>
>   var inputProvince = document.getElementById('inputProvince');
>   if (inputProvince.value == "ON"){
>
> because at the time that code runs, the inputProvince input-box has
> not been encountered, so getElementById returns null and there is
> no .value property to test.
>
> You need to put your code at the bottom of the page, just before </
> body>, or run it in an onload function.
>
> Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to