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 994526f commit 57ea859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tpftest/ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
$(document).ready(function(){
$("button").click(function(){
$.ajax({
headers: {Accept : "text/turtle; charset=utf-8"},
headers: {Accept : "application/rdf+xml; charset=utf-8"},
url: "http://openvivo.org/tpf/core",
data: {subject: "http://openvivo.org/a/orcid0000-0002-1304-8447", predicate: "", object: "", page: "2"},
data: {subject: "http://openvivo.org/a/orcid0000-0002-1304-8447", predicate: "", object: "", page: "1"},
success: function(data, status){
document.getElementById("output").innerHTML = data.replace(/</g,'&lt;').replace(/>/g,'&gt;');
}
Expand All @@ -20,7 +20,7 @@
<body>

<button>TPF request via Ajax of OpenVIVO</button>
<textarea id="output" rows="150" cols="80"></textarea>
<textarea id="output" rows="150" cols="150"></textarea>

</body>
</html>

0 comments on commit 57ea859

Please sign in to comment.