On Jan 21, 2:57 pm, CG <[email protected]> wrote:
>
> I was experimenting and did this and somehow it worked in Firefox. I
> don't know how. Is there a way to call the script from within the HTML
> of an infowindow?

You can try something similar to this:
http://maps.forum.nu/gm_adsense_infoWindow.html
(View with Firefox only!)

It loads the ads from adsense into a hidden DIV and then clones that
div into the infoWindow.
It used to work in different browsers, but last time I tried it only
worked in Firefox, and I believe that it must be because of something
that changed in AdSense, but since it is only a demo, I am not in a
hurry to fix it.

--
Marcelo - http://maps.forum.nu
--



>
> The twitterCallback2 function is located in the blogger.js which is
> linked from twitter.com. There must be a better way to do this. Could
> you recommend a workaround for this or do you know any example similar
> to this?
>
> On Jan 21, 1:43 pm, Mike Williams <[email protected]> wrote:
>
>
>
> > It's my understanding that putting a <script> into the HTML of an
> > infowindow doesn't call that script. Opening an infowindow is like
> > setting the innerHTML of a div.
>
> > Also, I can't seem to find the code for your twitterCallback2 callback
> > function. In order for JSONP calls to work, you must have a callback
> > function to receive the data.
>
> > --
> > Mike Williams
-- 
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