Skip to content

Commit

Permalink
First ajax try
Browse files Browse the repository at this point in the history
  • Loading branch information
mconlon17 committed Jan 17, 2017
1 parent 6a11650 commit 6d91a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpftest/ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
url: "http://openvivo.org/tpf/core",
data: {subject: "http://openvivo.org/a/orcid0000-0002-1304-8447", predicate: "", object: ""},
success: function(data, status){
document.getElementById("output").innerHTML = "Data: " + data.replace('<','&lt;').replace('>','&gt;') + "\<br\>Status: " + status;
document.getElementById("output").innerHTML = "Data: " + data.replace(/</g,'&lt;').replace(/>/g,'&gt;') + "\<br\>Status: " + status;
}
});
});
Expand Down

0 comments on commit 6d91a70

Please sign in to comment.