Browse Source

Add iframe and form in webcustody page

master
Vrushali 1 year ago
parent
commit
4873097bbe
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      views/webcustody.pug

+ 8
- 3
views/webcustody.pug View File

@ -49,7 +49,9 @@ html
script(src='/assets/js/main.js') script(src='/assets/js/main.js')
script(src='/assets/js/sweetalert2011.js') script(src='/assets/js/sweetalert2011.js')
body body
iframe#webcustodyiframe(style='height:100%;width:100%;position:fixed;top:0px;left:0px;z-index:40' scrolling='yes' frameborder='0px')
iframe#webcustodyiframe(style='height:100%;width:100%;position:fixed;top:0px;left:0px;z-index:40' scrolling='yes' frameborder='0px' name='webcustodyiframe')
form(id="Form" method="post" action="" target="webcustodyiframe")
input(type="hidden" name="encData")
script. script.
$(document).ready(function() { $(document).ready(function() {
let urlParams = new URLSearchParams(window.location.search); let urlParams = new URLSearchParams(window.location.search);
@ -67,8 +69,11 @@ html
text: data.errormsg text: data.errormsg
}).then(() => location.href="/login"); }).then(() => location.href="/login");
} else { } else {
console.log(data.data,"helllllllllll")
$('#webcustodyiframe').attr('src', data.data)
//- $('#webcustodyiframe').attr('src', data.data)
$('#Form').attr('action', data.data);
$('#Form').attr('target', 'webcustodyiframe');
$('#Form input[name="encData"]').val(data.data);
$('#Form').submit();
} }
}) })
}) })

Loading…
Cancel
Save