Click here to Skip to main content
15,891,136 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Variables not showing correctly in HTML Pin
dusty_dex24-Jun-13 9:45
dusty_dex24-Jun-13 9:45 
GeneralRe: Variables not showing correctly in HTML Pin
tristarterror24-Jun-13 10:16
tristarterror24-Jun-13 10:16 
GeneralRe: Variables not showing correctly in HTML Pin
dusty_dex24-Jun-13 10:55
dusty_dex24-Jun-13 10:55 
Questionhow make a skype call by getting a phone number from textbox Pin
Pasqualissimo23-Jun-13 12:20
Pasqualissimo23-Jun-13 12:20 
QuestionMSN style links Pin
Bart23-Jun-13 10:20
Bart23-Jun-13 10:20 
AnswerRe: MSN style links Pin
thanh_bkhn23-Jun-13 16:09
professionalthanh_bkhn23-Jun-13 16:09 
GeneralRe: MSN style links Pin
Bart25-Jun-13 10:22
Bart25-Jun-13 10:22 
QuestionHow to show info marker google maps when clicked in outside map? Pin
Akbarblack22-Jun-13 4:12
Akbarblack22-Jun-13 4:12 
i have problem to display info of google maps, when click in outside of map. but if inside of map when i click a marker, info of google maps can display.

JavaScript
function onload() {
       var st=getURLParameters("man");
       var kd_link=getURLParameters("kd");

   if (window.XMLHttpRequest)
     {
     xmlhttp=new XMLHttpRequest();
     }
   else
     {
     xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
     }
     var dt="";


   xmlhttp.open("GET","hasil.xml",false);
   xmlhttp.send();
   xmlDoc=xmlhttp.responseXML;


     var tbl=xmlDoc.documentElement.getElementsByTagName('page');

   var map = new google.maps.Map(document.getElementById('map'), {
     zoom: 15,
     center: new google.maps.LatLng(-7.8711188835883945, 112.52471923828125),
     mapTypeId: google.maps.MapTypeId.ROADMAP //ROADMAP //HYBRID

   });

   var infowindow = new google.maps.InfoWindow();
   var gmarkers=[];
   var marker, i;

     function Linkclicked(i) {
       GEvent.trigger(gmarkers[i], "click");
     }

   var kde;var nm;var l1;var l2;var bk;
   for (i = 0; i < tbl.length; i++) {

   kde=xmlDoc.getElementsByTagName("kode")[i].childNodes[0].nodeValue;
   nm=xmlDoc.getElementsByTagName("nama")[i].childNodes[0].nodeValue;
   l1=xmlDoc.getElementsByTagName("lat")[i].childNodes[0].nodeValue;
   l2=xmlDoc.getElementsByTagName("long")[i].childNodes[0].nodeValue;
   bk=xmlDoc.getElementsByTagName("bk")[i].childNodes[0].nodeValue;

      marker = new google.maps.Marker({
   position: new google.maps.LatLng(l1, l2),animation:an, icon:bk,map: map
     });

      google.maps.event.addListener(marker, 'click',(function(marker, i) {
       return function() {
         infowindow.setContent(xmlDoc.getElementsByTagName("nama")[i].childNodes[0].nodeValue);

         infowindow.open(map, marker);
                          }
     })(marker, i));

       gmarkers[i]=marker;

   }
   }

that's my code, when i try to call one of the google maps info marker .
HTML
<a href="javascript:Linkclicked('0')">try</a>

it couldn't be displayed... please give me solution??
AnswerRe: How to show info marker google maps when clicked in outside map? Pin
Dan Randolph23-Jun-13 8:55
Dan Randolph23-Jun-13 8:55 
GeneralRe: How to show info marker google maps when clicked in outside map? Pin
Akbarblack10-Dec-13 20:32
Akbarblack10-Dec-13 20:32 
QuestionShopping Cart Qty Button - I need to make it faster Pin
jkirkerx21-Jun-13 11:16
professionaljkirkerx21-Jun-13 11:16 
AnswerRe: Shopping Cart Qty Button - I need to make it faster Pin
enhzflep24-Jun-13 11:19
enhzflep24-Jun-13 11:19 
GeneralRe: Shopping Cart Qty Button - I need to make it faster Pin
jkirkerx24-Jun-13 11:38
professionaljkirkerx24-Jun-13 11:38 
GeneralRe: Shopping Cart Qty Button - I need to make it faster Pin
enhzflep24-Jun-13 12:15
enhzflep24-Jun-13 12:15 
GeneralRe: Shopping Cart Qty Button - I need to make it faster Pin
jkirkerx24-Jun-13 12:33
professionaljkirkerx24-Jun-13 12:33 
GeneralRe: Shopping Cart Qty Button - I need to make it faster Pin
enhzflep24-Jun-13 12:53
enhzflep24-Jun-13 12:53 
QuestionJavascript, KnockoutJS (and possibly TypeScript) Pin
_Maxxx_19-Jun-13 18:32
professional_Maxxx_19-Jun-13 18:32 
AnswerRe: Javascript, KnockoutJS (and possibly TypeScript) Pin
AlphaDeltaTheta19-Jun-13 19:00
AlphaDeltaTheta19-Jun-13 19:00 
GeneralRe: Javascript, KnockoutJS (and possibly TypeScript) Pin
_Maxxx_20-Jun-13 1:29
professional_Maxxx_20-Jun-13 1:29 
GeneralRe: Javascript, KnockoutJS (and possibly TypeScript) Pin
AlphaDeltaTheta20-Jun-13 1:37
AlphaDeltaTheta20-Jun-13 1:37 
AnswerRe: Javascript, KnockoutJS (and possibly TypeScript) Pin
Payrok17-Jul-13 5:45
Payrok17-Jul-13 5:45 
GeneralRe: Javascript, KnockoutJS (and possibly TypeScript) Pin
_Maxxx_17-Jul-13 13:01
professional_Maxxx_17-Jul-13 13:01 
GeneralLooking for team Pin
ashkanpower17-Jun-13 23:03
ashkanpower17-Jun-13 23:03 
GeneralRe: Looking for team Pin
Richard MacCutchan17-Jun-13 23:35
mveRichard MacCutchan17-Jun-13 23:35 
GeneralRe: Looking for team Pin
ashkanpower18-Jun-13 0:49
ashkanpower18-Jun-13 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.