Thanks, got it working. Never thought of doing it that way On Apr 2, 8:10 am, Nick D <[email protected]> wrote: > JavaScript doesn't work in the InfoWindow. Your best option is to > insert an iframe instead. > > Looks like the business ID you're inserting is to get this > URL:http://lookaly.com/widgets/rating/161B2v8xxg6x > > So write to the info window an iframe with src = "http://lookaly.com/ > widgets/rating/" + business_id > make it the right height and width to store the rating widget > use CSS to make border:none if you want to hide that it is an iframe > > On Apr 1, 2:51 pm, Andrew <[email protected]> wrote: > > > I want to add JavaScript within a Google Maps InfoWindow, below is a > > link to the Google Map: > > >http://andrewmccrum.com/maps/look/ > > > I want to add this Script to the the InfoWindow and pull the > > 'business_id' from the SQL Database. > > > <script type="text/javascript">business_id = '161B2v8xxg6x';</script> > > <script type="text/javascript" src="http://lookaly.com/widgets/ > > rating.js"></script>
-- 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.
