Skip to content

Commit

Permalink
added error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Trame authored and Johannes Trame committed Dec 16, 2012
1 parent c09502f commit a058aad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/jquery_sparql_sesame.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
beforeSend: function(xhrObj){xhrObj.setRequestHeader("Accept","application/sparql-results+json");},
data: request,
url: queryUrl,
success: callbackFunc
success: callbackFunc,
error: function (request, status, error) {
//alert(request.responseText);
$("#error").html(request.responseText);
}
});
};

Expand Down Expand Up @@ -73,7 +77,7 @@
<body>
<textarea id="sparqlQuery" rows="5" class="field span12">Select ?b ?c WHERE {<http://lobid.org/resource/HT017246230> ?b ?c} Limit 10</textarea><br/>
<button type="submit" class="btn btn-primary" onclick="submitQuery()">Submit Query</button><br/><br/>

<div id="error" style="color:red"></div>
<!-- empty html div-element ... placeholder for results (text/canvas/map etc)-->
<div id="resultdiv"></div>
<br/>
Expand Down

0 comments on commit a058aad

Please sign in to comment.