title: Maps marker link to JQueryMobile dialog
body: <p>Here's my question: i would like that when you click on the marker you dont see the infowindow (i know how to do it) but you see another page shown as a dialog (<a href="http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/page-dialogs.html" rel="nofollow">http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/page-dialogs.html</a>)
  or a popup (<a href="http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/popup/index.html#&amp;ui-state=dialog)in" rel="nofollow">http://jquerymobile.com/demos/1.2.0-alpha.1/docs/pages/popup/index.html#&amp;ui-state=dialog)in</a> jquery mobile, i tried a lot of solutions but it is not working.</p>
  
  <p>Here's the sample code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
      &lt;head&gt;
          &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;Info windows&lt;/title&gt;
          &lt;link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet"&gt;
          &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt;
          &lt;script&gt;
              function initialize() {
                  var myLatlng = new google.maps.LatLng(-25.363882, 131.044922);
                  var mapOptions = {
                      zoom: 4,
                      center: myLatlng,
                      mapTypeId: google.maps.MapTypeId.ROADMAP
                  }
  
                  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  
                  var contentString = 'something html code';
  
                  var infowindow = new google.maps.InfoWindow({
                      content: contentString
                  });
  
                  var marker = new google.maps.Marker({
                      position: myLatlng,
                      map: map,
                      title: 'Uluru (Ayers Rock)'
                  });
                  google.maps.event.addListener(marker, 'click', function () {
                      infowindow.open(map, marker);
                  });
              }
  
              google.maps.event.addDomListener(window, 'load', initialize);
          &lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;div id="map-canvas"&gt;&lt;/div&gt;
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>