Widget:Testbed: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
}); | }); | ||
}); | }); | ||
$("#input2").click(function(){ | |||
var api = new mw.Api(); | |||
api.get({ | |||
action : 'wbrgetrating', | |||
question : 'TestQues', | |||
format : 'json' | |||
}, { | |||
ok : function(res){ | |||
alert('Input 2 Sucess'); | |||
} | |||
}); | |||
}); | |||
}); | }); |