Adding an onclick event to google.map marker

Make sure the marker is defined outside of initialize(). Otherwise, it will be undefined if you attempt to assign the click listener outside of initialize(). Also, you may have SAME-ORIGIN issues if you attempt to load url www.google.com, but it should work fine with a local url. Updated code var myCenter=new google.maps.LatLng(53, -1.33); var marker=new … Read more

Does closing the inputstream of a socket also close the socket connection?

Yes, closing the input stream closes the socket. You need to use the shutdownInput method on socket, to close just the input stream: //do sth with fromSocket … and close it socket.shutdownInput(); Then, you can still send to the output socket //then write to socket again toSocket.print(“is socket connection still available?\r\n”); //close socket socket.close();

JSON import to Excel

Since this is VBA, I’d use COM to call xmlhttprequest but use it in synchronous manner as not to upset VBA’s single threaded execution environment, A sample class that illustrates a post and get request in this manner follows: ‘BEGIN CLASS syncWebRequest Private Const REQUEST_COMPLETE = 4 Private m_xmlhttp As Object Private m_response As String … Read more

“Container is not defined” Google chart

I’m not a jquery fan, but I think that $(‘#pie_today_div’) returns a set of matched elements. The attribute computation works because (from jquery documentation) it “gets the value of an attribute for the first element in the set of matched elements”. So try chart = new google.visualization.PieChart($(‘#pie_today_div’)[0]); or directly chart = new google.visualization.PieChart(document.getElementById(‘pie_today_div’));

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)