So, imagine having a string variable that is passed to a JavaScript function using the following code.
Chart1.Series["Series1"].Points[counter].MapAreaAttributes = "onmouseover=\"showAlert("+tempString+",event);\"";
The JavaScript function looks like this:
function showAlert(stringVal,ex) {
//var temp = document.getElementById("HTxtFieldPopIp").value;
// temp = "testing";
// alert(temp);
alert(stringVal);
}
Surprisingly, this setup does not trigger an alert box. Even running the commented pieces of code sans parameter leads to the same outcome. Any ideas on how to fix this?