i am facing a problem in the nerddinner, what i am facing:
in the DinnerForm.ascx there is a javascript code
$(document).ready(function () {
NerdDinner.EnableMapMouseClickCallback();
$("#Dinner_Address").blur(function (evt) {
//If it's time to look for an address,
// clear out the Lat and Lon
$("#Dinner_Latitude").val("0");
$("#Dinner_Longitude").val("0");
var address = jQuery.trim($("#Dinner_Address").val());
if (address.length < 1)
return;
NerdDinner.FindAddressOnMap(address);
});
});
when i run the project, and i insert new Dinner, the longitude and the latitude inserted with value 0;
and when i changed the "0" to any number
$(document).ready(function () { NerdDinner.EnableMapMouseClickCallback();
$("#Dinner_Address").blur(function (evt) {
//If it's time to look for an address,
// clear out the Lat and Lon
$("#Dinner_Latitude").val("12");//
$("#Dinner_Longitude").val("12");//
var address = jQuery.trim($("#Dinner_Address").val());
if (address.length < 1)
return;
NerdDinner.FindAddressOnMap(address);
});
});
it inserts the value 12 for both long and lat to the database
so i knew its inserting this value to the database, but am not sure actually
so i really want to know how i can fix this, plz any one :D