javascript - Is it possible to pass parameters to html template in cartodb -


i want pass value obtained using featureclick option customized infowindow template.

   sublayer.on('featureclick', function(e, latlng, pos, data, layer) {      var hello=data.name;      alert("mouse clicked polygon data: " + hello);       });        sublayer.infowindow.set('template', $('#infowindow_template').html()); 
      }).on('error', function() {         console.log("some error occurred");       }); 

i want pass value of variable 'hello' info-window template. possible?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -