1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to add call appet from javascript ?

Discussion in 'Google API' started by uniojnqoifazy, Jul 11, 2011.

  1. #1
    hi all,
    i have add google map in my site ,but how can i call java applet when click the maker ?

    
    <html>
    <body>
    <div id="mymap" style="width: 500px; height: 500px"></div>
    
    <SCRIPT>
    
    
    
    var map = new GMap(document.getElementById("mymap"));
    
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    
    map.setCenter(new GLatLng(51.6500, 6.1833), 16);
    var marker = new GMarker(new GLatLng(51.6500,6.1833));
    GEvent.addListener(map, "click", function(marker, point) {
       
                 // how to call  applet when user click the marker ?  ????
    });
    map.addOverlay(marker);
    
    
    
    </SCRIPT>
    <APPLET CODE="InJava2.class"
            NAME="myApplet"
            HEIGHT=500 WIDTH=500 >
    </APPLET>
    
    </BODY></HTML>
    
    Code (markup):
    i want to replace the map with the applet when user click the marker ,how to call applet when user click the marker ?
    Someone Please Help Me!
     
    Last edited: Jul 11, 2011
    uniojnqoifazy, Jul 11, 2011 IP