here i'm using div
function initialize() {
var markers = JSON.parse('<%=ConvertDataTabletoString() %>');
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),
zoom: 15,
mapTypeId: google.maps.MapTypeId.ROADMAP
// marker:true
};
var infoWindow = new google.maps.InfoWindow();
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
for (i = 0; i < markers.length; i++) {
var data = markers[i]
var myLatlng = new google.maps.LatLng(data.lat, data.lng);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: data.title
});
(function(marker, data) {
// Attaching a click event to the current marker
google.maps.event.addListener(marker, "click", function(e) {
infoWindow.setContent(data.description);
infoWindow.open(map, marker);
});
})(marker, data);
}
}
how to hide that div tag when i click on that button
please help me
it's important to me
Riyaz AkhtarPosted Jul 25, 2013, 2:50 AM
add OnClientClick="javascript:return HideMap();" in ur button:
Iftikar HussainPosted Jul 25, 2013, 2:02 AM
try like this
Regards,
Iftikar
Sanjeeb LenkaPosted Jul 25, 2013, 1:53 AM
you can do it using jquery.
refer to this link. if any doubt reply
http://simon-holman.net/2010/03/show-and-hide-a-div-using-jquery/
prathyushaPosted Jul 25, 2013, 1:43 AM
this div
(map_canvas) function will be not working when i click on button.
and for this div no need to write runat="server"
please help me
Sanjeeb LenkaPosted Jul 25, 2013, 1:42 AM
which div you want to hide;
you can do like this in button click event
test.Visible = false;//to hide
prathyushaPosted Jul 25, 2013, 1:34 AM
when i'm using this test.Attributes.Add("style", "display:none");
here i'm attaching rar file please check it once and help me
please help me
Riyaz AkhtarPosted Jul 24, 2013, 5:51 AM
Sanjeeb LenkaPosted Jul 24, 2013, 3:48 AM
test.Visible = false;//to hide
test.Visible = true;//to show