EasyUI Forum
May 20, 2024, 03:33:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: onclick event on button messager like confirm message  (Read 6103 times)
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« on: January 27, 2015, 03:39:54 AM »

hello again,

i want to get onClick event when i click ok button in message like confirm message,
how to do that?

thanks in advance
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 27, 2015, 05:32:54 AM »

What is the 'message'? Please describe your question in more detail.
Logged
Opan Mustopah
Full Member
***
Posts: 164


Indonesia


View Profile Email
« Reply #2 on: January 27, 2015, 06:48:46 AM »

oh i'm sorry stworthy,

i mean, we have messager plugins right? an one of them is messager.confirm that have two default button, ok and cancel.
and i want to get event from that button like onClick from ok button for example.

it is possible to do that?
Logged

-- Bajak Otak --
*** Sorry for my bad english :3 ***
--JeasyUI version 1.4--
arma
Full Member
***
Posts: 110


View Profile
« Reply #3 on: January 27, 2015, 07:44:25 AM »

Code:
$.messager.confirm('Confirm', 'Are you sure to confirm this confirmation?', function(r){
if (r){
// OK click you mean should be here
}
});
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!