On Oct 14, 5:31 pm, Rossko <[EMAIL PROTECTED]> wrote:
> From memory, your RentalMap object is set up in an onload function.
> Does the map_properties_table.js try to do things with it before then?
>
> (from memory because the page is timing out today)
>
> cheers, Ross K

Hi Ross. I disabled the forwarded port from my router last night, so
that's why the URL's timing out for you now.

RentalMap was being initialised within this:

window.onload = addCodeToFunction(window.onload,function() {
    ...
    });

So you're right, map_properties_table.js must have been executed
before window.onload, which explains why RentalMap was null. I just
added this to my code:

<script type="text/javascript">
  window.onload = addCodeToFunction(window.onload,function() {
    new Ajax.Request('/javascripts/map_properties_table.js', {method:
'get'});
    });
</script>

And map_properties_table.js now has full access to the initialised
RentalMap variable.

Thanks for the help on this. It's much appreciated, mate!
-Nick
--~--~---------~--~----~------------~-------~--~----~
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