SweetAlert 2 inside iframe - positioning and options
up vote
0
down vote
favorite
Ok so i'm using an iframe to a page that has SweetAlert2 and a table. While clicking a button on the table it will return row information (such as title, region etc). Everything works as it should. SWAL2 is centered perfectly and all that.
My problem here is that i am also embedding that page into an iframe on a different page (lets call this parent page). This parent page is non-editable (no css, no JS, its a sharepoint modern page for whoever needs the info).
While clicking the button, SWAL2 will pop-up in the middle of the iframe and the user has to scroll down the table to get to the popup (or up, depending on where he was).
Is there any way to either make the popup show up on parent page (probably not since i can't add JS to it) or at least focus the iframe view on that pop-up on-click ? (something like using IDS and href's for links, #goto) ?
Any help would be appreciated (even a simple "not possible" so i dont waste even more time than i already did trying to find a way to do this).
Edit: Even tho' i don't need this anymore, this is not a duplicate. I mentioned i can't modify the parent page.
jquery iframe sweetalert2
add a comment |
up vote
0
down vote
favorite
Ok so i'm using an iframe to a page that has SweetAlert2 and a table. While clicking a button on the table it will return row information (such as title, region etc). Everything works as it should. SWAL2 is centered perfectly and all that.
My problem here is that i am also embedding that page into an iframe on a different page (lets call this parent page). This parent page is non-editable (no css, no JS, its a sharepoint modern page for whoever needs the info).
While clicking the button, SWAL2 will pop-up in the middle of the iframe and the user has to scroll down the table to get to the popup (or up, depending on where he was).
Is there any way to either make the popup show up on parent page (probably not since i can't add JS to it) or at least focus the iframe view on that pop-up on-click ? (something like using IDS and href's for links, #goto) ?
Any help would be appreciated (even a simple "not possible" so i dont waste even more time than i already did trying to find a way to do this).
Edit: Even tho' i don't need this anymore, this is not a duplicate. I mentioned i can't modify the parent page.
jquery iframe sweetalert2
Possible duplicate of Sweet Alert 2 Open in Parent Frame
– Yasser Akram
Nov 20 at 13:51
Read the edit, not duplicate.
– Dante R.
Nov 20 at 13:54
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Ok so i'm using an iframe to a page that has SweetAlert2 and a table. While clicking a button on the table it will return row information (such as title, region etc). Everything works as it should. SWAL2 is centered perfectly and all that.
My problem here is that i am also embedding that page into an iframe on a different page (lets call this parent page). This parent page is non-editable (no css, no JS, its a sharepoint modern page for whoever needs the info).
While clicking the button, SWAL2 will pop-up in the middle of the iframe and the user has to scroll down the table to get to the popup (or up, depending on where he was).
Is there any way to either make the popup show up on parent page (probably not since i can't add JS to it) or at least focus the iframe view on that pop-up on-click ? (something like using IDS and href's for links, #goto) ?
Any help would be appreciated (even a simple "not possible" so i dont waste even more time than i already did trying to find a way to do this).
Edit: Even tho' i don't need this anymore, this is not a duplicate. I mentioned i can't modify the parent page.
jquery iframe sweetalert2
Ok so i'm using an iframe to a page that has SweetAlert2 and a table. While clicking a button on the table it will return row information (such as title, region etc). Everything works as it should. SWAL2 is centered perfectly and all that.
My problem here is that i am also embedding that page into an iframe on a different page (lets call this parent page). This parent page is non-editable (no css, no JS, its a sharepoint modern page for whoever needs the info).
While clicking the button, SWAL2 will pop-up in the middle of the iframe and the user has to scroll down the table to get to the popup (or up, depending on where he was).
Is there any way to either make the popup show up on parent page (probably not since i can't add JS to it) or at least focus the iframe view on that pop-up on-click ? (something like using IDS and href's for links, #goto) ?
Any help would be appreciated (even a simple "not possible" so i dont waste even more time than i already did trying to find a way to do this).
Edit: Even tho' i don't need this anymore, this is not a duplicate. I mentioned i can't modify the parent page.
jquery iframe sweetalert2
jquery iframe sweetalert2
edited Nov 20 at 13:53
asked Aug 19 at 16:25
Dante R.
21611
21611
Possible duplicate of Sweet Alert 2 Open in Parent Frame
– Yasser Akram
Nov 20 at 13:51
Read the edit, not duplicate.
– Dante R.
Nov 20 at 13:54
add a comment |
Possible duplicate of Sweet Alert 2 Open in Parent Frame
– Yasser Akram
Nov 20 at 13:51
Read the edit, not duplicate.
– Dante R.
Nov 20 at 13:54
Possible duplicate of Sweet Alert 2 Open in Parent Frame
– Yasser Akram
Nov 20 at 13:51
Possible duplicate of Sweet Alert 2 Open in Parent Frame
– Yasser Akram
Nov 20 at 13:51
Read the edit, not duplicate.
– Dante R.
Nov 20 at 13:54
Read the edit, not duplicate.
– Dante R.
Nov 20 at 13:54
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51919665%2fsweetalert-2-inside-iframe-positioning-and-options%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51919665%2fsweetalert-2-inside-iframe-positioning-and-options%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possible duplicate of Sweet Alert 2 Open in Parent Frame
– Yasser Akram
Nov 20 at 13:51
Read the edit, not duplicate.
– Dante R.
Nov 20 at 13:54