PatrickDunn
6 years agoQrew Assistant Captain
Prevent iframe redirection?
Hi all,
In a QB form, I have a rich text field that I use to i-frame in an internal (i.e. internal to my company) website (see formula below). This company website requires that users log in and has a 90-minute idle time out. If a user has NOT recently logged into the internal site and that user opens the aforementioned QB form, the entire browser tab (i.e. not just within the rich text field) automatically changes from the QB form to the company website login page. Upon logging in, the user is then in the company site (i.e. the tab doesn't navigate bag to the QB form). Pressing the back button doesn't take the user back to the QB form, but rather to the page that preceded the QB form.
Is there a way I can have the QB form prevent the entire tab from redirecting to the company page login? Thanks!
FORMULA:
"<img data-url='" & $iFrameAddress & "'" &
" src onerror='\n(async () => {\n var url = this.dataset.url;\n this.outerHTML = `<iframe src=${url} width=1800px height=600px></iframe>`;\n})();\n'>"
------------------------------
Patrick Dunn
------------------------------
In a QB form, I have a rich text field that I use to i-frame in an internal (i.e. internal to my company) website (see formula below). This company website requires that users log in and has a 90-minute idle time out. If a user has NOT recently logged into the internal site and that user opens the aforementioned QB form, the entire browser tab (i.e. not just within the rich text field) automatically changes from the QB form to the company website login page. Upon logging in, the user is then in the company site (i.e. the tab doesn't navigate bag to the QB form). Pressing the back button doesn't take the user back to the QB form, but rather to the page that preceded the QB form.
Is there a way I can have the QB form prevent the entire tab from redirecting to the company page login? Thanks!
FORMULA:
"<img data-url='" & $iFrameAddress & "'" &
" src onerror='\n(async () => {\n var url = this.dataset.url;\n this.outerHTML = `<iframe src=${url} width=1800px height=600px></iframe>`;\n})();\n'>"
------------------------------
Patrick Dunn
------------------------------