This is really fucking frustrating me. Can someone do a quick sanity check on this for me please?
<script>
function SrchSubmit() {
var valu = $("#valu").val();
var url1 = "";
url1 += "https://www.blahblahblah";
url1 += "?act=API_DoQuery";
url1 += "&query={56.EX." + valu + "}";
url1 += "&clist=3";
url1 += "&options=num-1";
$.get(url1, function(xml1) {
alert("Success");
var rid = $("record_id_", xml1).text();
var url2 = "";
url2 += "https://www.blahblahblah";
url2 += "?a=dr";
url2 += "?rid=" + rid;
document.location.href = url2;
});
}
</script>
Everything works fine until the "$.get(url1, function(xml1) {" line, but this section seems to be just stepped over. The url1 is valid because I can grab it in Chrome's development tools (thank you Google!). It feels like a dumb syntax problem, but I just can't see it, and I don't know how to proceed.
SrchSubmit is called from some HTML.