Widget:ApiTesting: Difference between revisions

Jump to navigation Jump to search
Matt Pijoan (talk | contribs)
Created page with "<includeonly> <script type="text/javascript"> $( "#go" ).click(function (){ var api = new mw.Api(event); api.get({ action : 'wbrgetrating', }); } </script> <form> <input type=..."
 
Matt Pijoan (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<script type="text/javascript">
<script type="text/javascript">
$(document).ready(function(){
$( "#go" ).click(function (){
$( "#go" ).click(function (){
var api = new mw.Api(event);
var obj = {'WBR105': {r1:'5',r2:'5',r3:'5'},'WBR106': {r1:'5',r2:'5',r3:'5'}};
api.get({
alert(JSON.stringify(obj));
action : 'wbrgetrating',
});
});
});
}
</script>
</script>
<form>
<form>

Latest revision as of 15:15, 9 August 2013