Trigger when a button is clicked.
[
Example of triggering function, on clicking a button
]
Example of using post to get data
]
function(data){
ownerpsyrefresh(data);
},
[
Example of triggering function, on clicking a button
]
on(dom.byId('peerseen'),'click',function(){
displayasseen("peer");
});
<input type=button id=peerseen
data-dojo-type="dijit/form/Button"
data-dojo-props="label:'Peer'" />Using post to get json data
[Example of using post to get data
]
on(dom.byId('processpsybutton'),'click',function(){
request.post("http://localhost/yii/g3labs/?r=Group/processowner").then(function(data){
ownerpsyrefresh(data);
},
function(err){
}
);
No comments:
Post a Comment