![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi - Hope someone can help me out. Have spent days now trying to get this running! I am tying tobinda function to a link that is created dynamically in the DOM when a GoogleMapsInfoWindowis fired. Specifically, getting a JQueryCodaSlider 1.1.1 to work. You can see the test site here - [click apply within aninfowindow]http://tinyurl.com/coda-mapsv3-infowindow-test I believe I have 2 options, neither of which i can figure out: 1. GoogleMapsJSV3API fires the event DomReady when aninfowindow is opened:http://code.google.com/apis/maps/documentation/v3/reference.html#Info Use JQuery Live to listen for the DomReady event (maybe a better, lighter weight??) solution? or Add *tb_init('a.cross-link'); *within the google.maps.event.addListener function - I have tried adding this (after the infowindowOption variable) this but cant seem to get it tobind? Here is the listener function (MapsV3) * google.maps.event.addListener(marker, "click", function() { * * var infowindowOptions = { * * * content: html * * }; * * varinfowindow= new google.maps.InfoWindow(infowindowOptions); * * cm_setInfowindow(infowindow); * *infowindow.open(map, marker); * * marker.setIcon(markerImageOut); * }); * google.maps.event.addListener(marker, "mouseover", function() { * * marker.setIcon(markerImageOver); * }); * google.maps.event.addListener(marker, "mouseout", function() { * * marker.setIcon(markerImageOut); * }); * return marker; } Can anyone help. Please! Many thanks Benji |
#3
| |||
| |||
|
|
Hi, no response yet! please can someone try to help me out on this. have spent a week trying to get it working - cheers would the offer of a nice bottle of wiskey help :-) cheers B On 1 Nov, 17:39, benji <bco... (AT) gmail (DOT) com> wrote: Hi - Hope someone can help me out. Have spent days now trying to get this running! I am tying tobinda function to a link that is created dynamically in the DOM when a GoogleMapsInfoWindowis fired. Specifically, getting a JQueryCodaSlider 1.1.1 to work. You can see the test site here - [click apply within aninfowindow] http://tinyurl.com/coda-mapsv3-infowindow-test I believe I have 2 options, neither of which i can figure out: 1. GoogleMapsJSV3API fires the event DomReady when aninfowindow is opened: http://code.google.com/apis/maps/documentation/v3/reference.html#Info Use JQuery Live to listen for the DomReady event (maybe a better, lighter weight??) solution? or Add tb_init('a.cross-link'); within the google.maps.event.addListener function - I have tried adding this (after the infowindowOption variable) this but cant seem to get it tobind? Here is the listener function (MapsV3) google.maps.event.addListener(marker, "click", function() { var infowindowOptions = { content: html }; varinfowindow= new google.maps.InfoWindow(infowindowOptions); cm_setInfowindow(infowindow); infowindow.open(map, marker); marker.setIcon(markerImageOut); }); google.maps.event.addListener(marker, "mouseover", function() { marker.setIcon(markerImageOver); }); google.maps.event.addListener(marker, "mouseout", function() { marker.setIcon(markerImageOut); }); return marker; } Can anyone help. Please! Many thanks Benji |
#4
| |||
| |||
|
|
I fail to see where you encounter a problem. I'd use $('#any_other_container a.whatever_link').live('click', function() { // here be your code }); Thanks for the bottle but I don't drink much (and I don't think it helps a lot while coding anyway). Michel Belleville 2009/11/4 benji <bco... (AT) gmail (DOT) com Hi, no response yet! please can someone try to help me out on this. have spent a week trying to get it working - cheers would the offer of a nice bottle of wiskey help :-) cheers B On 1 Nov, 17:39, benji <bco... (AT) gmail (DOT) com> wrote: Hi - Hope someone can help me out. Have spent days now trying to get this running! I am tying tobinda function to a link that is created dynamically in the DOM when a GoogleMapsInfoWindowis fired. Specifically, getting a JQueryCodaSlider 1.1.1 to work. You can see the test site here - [click apply within aninfowindow] http://tinyurl.com/coda-mapsv3-infowindow-test I believe I have 2 options, neither of which i can figure out: 1. GoogleMapsJSV3API fires the event DomReady when aninfowindow is opened: http://code.google.com/apis/maps/documentation/v3/reference.html#Info Use JQuery Live to listen for the DomReady event (maybe a better, lighter weight??) solution? or Add *tb_init('a.cross-link'); *within the google.maps.event.addListener function - I have tried adding this (after the infowindowOption variable) this but cant seem to get it tobind? Here is the listener function (MapsV3) * google.maps.event.addListener(marker, "click", function() { * * var infowindowOptions = { * * * content: html * * }; * * varinfowindow= new google.maps.InfoWindow(infowindowOptions); * * cm_setInfowindow(infowindow); * *infowindow.open(map, marker); * * marker.setIcon(markerImageOut); * }); * google.maps.event.addListener(marker, "mouseover", function() { * * marker.setIcon(markerImageOver); * }); * google.maps.event.addListener(marker, "mouseout", function() { * * marker.setIcon(markerImageOut); * }); * return marker; } Can anyone help. Please! Many thanks Benji |
![]() |
| Thread Tools | |
| Display Modes | |
| |