简体   繁体   中英

Load data in google map info window by ajax

My Code is

var context='<div id="info"><div class="info_content"><div class="info_contentt"><div class="info_contenttt"><b>'+locations[i][0]+'</b></div><div class="info_contenttm"><div class="info_contenttml"><b>IMAGE</b></div><div class="info_contenttmr"><b>'+locations[i][6]+'</b></div></div><div class="info_contenttb">Rainfall, <b>'+locations[i][7]+'</b></div></div><div class="info_contentb"><table><tr><td>Get: </td><td><img src="http://marylandbeaches.mowbi.com/site/images/btn-alert-email.png" onclick="emailFunction('+locations[i][5]+')" /></td><td><img src="http://marylandbeaches.mowbi.com/site/images/btn-alert-text.png" onclick="mobileFunction('+locations[i][5]+')" /></td></tr></table>            </div></div></div>';

My another code

var image='g.jpg';

now how can i append var image in this div IMAGE text

<div class="info_contenttml"><b>IMAGE</b></div>
var context='<div class=info_contenttml><img src="+image+"/></div>';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM