nickarthur
11/20/2013 - 5:44 PM

HTML DIALOG CUSTOM CLOSE BUTTON cloudparty CLOUDPARTY

HTML DIALOG CUSTOM CLOSE BUTTON cloudparty CLOUDPARTY

var htmlText = '<div id="body">\
<div id=btnGrp>\
  <button id="btnClose">Close the Dialog</button><br>\
</div></div>';
 
 function clickStart() {
  controllerHTMLCreate({
    ent: getMessageEnt(),
    title: 'the winow title',
    
    html: htmlText,
   listeners: [
                  {id: 'btnClose',    message:'close',      command:'close'}
                ],
    messagers: [
                {id:'btnClose',       message:'close'}]
 
  });
 }
 
 handlerCreate({
  name: 'clickStart',
  channel: 'direct',
  message: 'clickStart'
});
 
 
handlerCreate({
  name: 'closeClick',
  channel: 'controller',
  message: 'close'
});var htmlText = '<div id="body">\
<div id=btnGrp>\
  <button id="btnClose">Close the Dialog</button><br>\
</div></div>';
 
 function clickStart() {
  controllerHTMLCreate({
    ent: getMessageEnt(),
    title: 'the winow title',
    
    html: htmlText,
   listeners: [
                  {id: 'btnClose',    message:'close',      command:'close'}
                ],
    messagers: [
                {id:'btnClose',       message:'close'}]
 
  });
 }
 
 handlerCreate({
  name: 'clickStart',
  channel: 'direct',
  message: 'clickStart'
});
 
 
handlerCreate({
  name: 'closeClick',
  channel: 'controller',
  message: 'close'
});
 
 
function closeClick() {
  say('Close clicked. Attempting to Close Dialog');
  //send the controller message to close the window
  controllerMessage({ent: getMessageEnt(), message: 'close', text: 'close'});
}
 
 
function closeClick() {
  say('Close clicked. Attempting to Close Dialog');
  //send the controller message to close the window
  controllerMessage({ent: getMessageEnt(), message: 'close', text: 'close'});
}var htmlText = '<div id="body">\
<div id=btnGrp>\
  <button id="btnClose">Close the Dialog</button><br>\
</div></div>';
 
 function clickStart() {
  controllerHTMLCreate({
    ent: getMessageEnt(),
    title: 'the winow title',
    
    html: htmlText,
   listeners: [
                  {id: 'btnClose',    message:'close',      command:'close'}
                ],
    messagers: [
                {id:'btnClose',       message:'close'}]
 
  });
 }
 
 handlerCreate({
  name: 'clickStart',
  channel: 'direct',
  message: 'clickStart'
});
 
 
handlerCreate({
  name: 'closeClick',
  channel: 'controller',
  message: 'close'
});
 
 
function closeClick() {
  say('Close clicked. Attempting to Close Dialog');
  //send the controller message to close the window
  controllerMessage({ent: getMessageEnt(), message: 'close', text: 'close'});
}