Hey, Eric.

I think I've tried everything, but what works. :) I can definitely
generate the click event by moving the event lines into the
addLoadEvent function at the end. No JS errors occur either. But while
the click event is generated, it doesn't result in the map having the
focus which is, ultimately, what's desired.

I'll continue to play with it and investigate. If I get it working,
I'll be sure and post the solution.

Jason

On Oct 6, 11:59 am, Eric Roberts <[email protected]>
wrote:
> I have been getting the same error from essentially copying the code from
> one of the samples and only making minor changes to the code, like making
> the latlng dynamic...
>
> http://devint.meaningfulfunerals.net/fh/facilities/facilities/address...
>
> In FF I get "a is null" and the error is on line 25.  same js file.
>
> Eric
>
>
>
> On Wed, Oct 6, 2010 at 9:24 AM, Jason Jonas <[email protected]> wrote:
> > Just bumping this up one time...
>
> > On Oct 4, 9:18 pm, Jason Jonas <[email protected]> wrote:
> > > After the page is loaded I'm trying to generate a click event so the
> > > map has the focus. In V2 we used:
>
> > > var event = {srcElement: map_canvas, target: map_canvas, nodeType: 1};
> > > GEvent.trigger(document, "click", event);
>
> > > And it works perfectly. I made what seems like the appropriate v3
> > > substitutions in the following file:
>
> > >http://spotwalla.com/event-01.html
>
> > > There are no errors in either FireFox or Chrome, but it doesn't work.
> > > So I tried to generate a click event on the map itself using a null
> > > MouseEvent in the following file:
>
> > >http://spotwalla.com/event-02.html
>
> > > FireFox generates the following error:
>
> > > Error: a is undefined
> > > Source File:
> >http://maps.gstatic.com/intl/en_us/mapfiles/api-3/2/7/main.js
> > > Line: 20
>
> > > Chrome generates the following error:
>
> > > Uncaught TypeError: Cannot read property '__e3_' of undefined
> > > U.Qc   main.js:20
> > > U.trigger main.js:21
> > > (anonymous function) event-02.html:112
>
> > > So I thought it might be the null MouseEvent and tried:
>
> > >http://spotwalla.com/event-03.html
>
> > > The same error is generated in both FireFox and Chrome. Not sure if
> > > this is a bug in v3 API or if it's something I've done incorrectly.
> > > Ideas? Thanks.
>
> > > Jason
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-maps-js-api-v3%2B 
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to