Thanks for the help, I''ve spent some time debugging and the problem is
indeed that the browser is trying to use functionality that isn''t yet
loaded.
Even when loading the needed libraries explicitly it still happens most of
the time. And this when loading the files locally from my machine in the
same directory rather than across the network
I''ve thought of a possible solution, at least for my case.
I propose to modify mxn.js such that when called w/ the parameter
''none'' -
ie src="mxn.js?(none)" - no files are loaded on demand.
It''s then up to me to load them as I want and take care of ensuring
everything is set up before calling new mxn.Mapstraction
The code change is trivial, see attached diff
As a newer member to the list I''m not sure what the protocol for
changes
like this, should I send an explicit RFC, just check it in, or what?
let me know what you think, happy to check things in along w/ a demo page,
etc
ciao,
Ed
On Wed, Sep 2, 2009 at 14:24, Rob <mapstraction at thegecko.org> wrote:
> This could be the DOM load problem Derek and I were discussing a while
> back. I was due to investigate but have run very low on spare time
recently.
>
> The problem is that webkit-based browsers read ahead too quickly when using
> the load-on-demand functionality.
> If this is the issue, a way around it for now would be to load each library
> required individually rather than the autoload - mxn.js?(provider,
provider)
> - method.
>
> Kind regards,
>
> Rob
>
> 2009/9/2 Ed Freyfogle <edf at sloan.mit.edu>
>
>> Hi,
>>
>> when I look at
>>
>> mapstraction-svn/test/index.htm
>>
>> in safari I get no map, but rather a "TypeError: Result of
expression
>> ''mxn.Mapstraction'' [undefined] is not a
constructor." error. Of course in
>> Firefox all is well.
>>
>> I''m no Safari expert, so before I dive deeper I thought
I''d ask if anyone
>> knows of any solution. A search of the internet didn''t turn up
anything
>> useful.
>>
>> thanks for your help
>> Ed
>>
>> _______________________________________________
>> Mapstraction mailing list
>> Mapstraction at lists.mapstraction.com
>>
http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20090902/199cd944/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mxnnone.diff
Type: application/octet-stream
Size: 1500 bytes
Desc: not available
URL:
<http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20090902/199cd944/attachment.obj>