Guest User

Untitled

a guest
Mar 4th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ## open dialog
  2.  
  3. function callDialogFunction(){
  4. var args = {_in:{someInArgument:value}, _out:null};
  5. window.openDialog(url,
  6. "_blank",
  7. "chrome,modal,resizable=no,centerscreen,width=400,height=280", args);
  8. var user = args._out.userName;
  9. var password = args._out.password;
  10. if(!canLogin(user,password)){
  11. callDialogFunction();
  12. }
  13. }
  14.  
  15. ## inside dialog, on accept function
  16.  
  17. window.arguments[0]._out = {userName:user, password:password};
Add Comment
Please, Sign In to add comment