i have 3 marker.. can i load example1.html to div1 when clicked to marker1? and example2.html to div1 for marker2..
here is my modified demo by @kjy112 http://jsfiddle.net/rD8U6/198/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What I am doing is adding an iframe inside your div1. With that in place, I replaced the third item of your myPoints array to the name of the html file or hyperlink you want. (Note you might run into “display forbidden” under x-frame-options, I get that with google.com and am unable to place it into the div/iframe). It should work inside your own domain.
Make two (simple) static htmls called static_a.html and static_b.html to test the code below. The middle marker should go to New York University’s homepage.
Given the link for each marker, the div is changed indirectly, from the change in the iframe’s src with
$("#myiframe").attr('src', html);in the marker’s click listener.