I've continued to get a "not well formed" error when processing the response to this request.
function getFilterValues()
{
$.get("/get_IrTempFilt?id=" + Math.random(),function(responseText,status){
var splitstring = responseText.split("~");
document.getElementById("FilterOn").innerHTML = "<div>" + splitstring[0] + "</div>";
document.getElementById("currentVal").innerHTML ="<div>" + splitstring[1] + "</div>";
document.getElementById("value0out").innerHTML = "<div>" + splitstring[2] + "</div>";
document.getElementById("value1out").innerHTML = "<div>" + splitstring[3] + "</div>";
},"text");
}
The response is plain text which looks like this:
false~0~0~0
I took a hint from this question, which clued me in to specifying the dataType, and was able to figure out the syntax specific to $.get()
from w3schools but the problem remains. Perhaps there is some nuance specific to this scenario that I have not figured out.