Hey Luke,
  So listening to the domready event works for the first infoWindow however 
subsequent infoWindow do not execute the ShadowBox javascript as expected. 
 How can this be accomplished with multiple infoWindows?  

I am listening to the domready event like this:

google.maps.event.addListener(infowindow, 'domready', function() {
        Shadowbox.init();
    }); 



On Tuesday, May 11, 2010 4:10:19 PM UTC-7, Luke (Google Employee) wrote:
>
> Hi,
>
> If marker.content_ is a DOM node then I suspect you can call 
> Shadowbox.setup(marker.content_), otherwise if it is a string you will need 
> to listen to the 'domready' event that MyInfoWindow files then call 
> Shadowbox.setup('a.movie'):
>
> google.maps.event.addListener(MyInfoWindow, 'domready', function() {
>   ShadowBox.setup('a.movie');
> });
>
> I think this should work, but I'm just doing this off the top of my head :)
>
> Thanks
>
> Luke
>
> On Tue, May 11, 2010 at 3:45 PM, roryreiff <[email protected]> wrote:
>
>> I just realized, the above example under the Shadowbox.setup call
>> should just read "a", but that does not change anything working.
>>
>> On May 11, 3:35 pm, roryreiff <[email protected]> wrote:
>> > Hello,
>> >
>> > I am attempting to initialize shadowbox (http://www.shadowbox-js.com/
>> > index.html) on links inside my infoWindows (so that I can service
>> > image galleries for each marker). I am doing this as follows:
>> >
>> > google.maps.event.addListener(marker, 'click', function() {
>> >         MyInfoWindow.setContent(marker.content_);
>> >         MyInfoWindow.setPosition(marker.position);
>> >         Shadowbox.setup("a.movie");
>> >         MyInfoWindow.open(map, marker);
>> >
>> > });
>> >
>> > But is is not working (i.e., clicking each linked image just opens it
>> > in a new link). Any help would be appreciated. The project is viewable
>> > atwww.pomona.edu/tour
>> >
>> > Currently, the icon that is an outlined square, Turrel Skyspace,
>> > contains images that should open in Shadowbox. Thanks,
>> >
>> > Rory
>> >
>> > --
>> > 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 athttp://
>> 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.
>>
>>
>  -- 
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/cvIl0sG3ND4J.
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