This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
2012-07-11 15:06:24 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
|
|
|
|
<script type="text/javascript" src="jquery.qs.js"></script>
|
|
|
|
<script type="text/javascript" src="discoquery.js"></script>
|
|
|
|
<script type="text/javascript" src="debug.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
function query() {
|
2012-07-11 16:42:09 +02:00
|
|
|
$.disco_query("coucou", "./store.html", "./response.html",
|
|
|
|
function (entity_id, store, auth) {
|
|
|
|
alert("idp is " + entity_id + " said " + store);
|
|
|
|
}
|
|
|
|
);
|
2012-07-11 15:06:24 +02:00
|
|
|
}
|
|
|
|
function set() {
|
2012-07-11 16:42:09 +02:00
|
|
|
$.disco_set("coucou", $('#idp').val(), "./store.html", "./response.html",
|
|
|
|
function (entity_id, store, auth) {
|
|
|
|
alert("idp has been set to " + entity_id + " on " + store);
|
|
|
|
}
|
|
|
|
);
|
2012-07-11 15:06:24 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<div>
|
|
|
|
<button onclick="query()">Query</button>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label>IdP</label><input type="text" id="idp"></input>
|
|
|
|
<button onclick="set()">Set</button>
|
|
|
|
</body>
|
|
|
|
<html>
|