yes, we still talking about http://businessexchange.ca/map_locations_backup.php load() - loading the map. So, what I need to change? It was working after I put the script before </body> as you told me. But now - nothing
On May 15, 10:47 am, Tali <[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
