New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i click ok button of sweet alert.. send to another page #199
Comments
i think this can be done using this should be called at ok / error button click handler; |
As @technofreaky said, you can redirect using JavaScript. Here's a similar example: #168 |
i can solve it :) only use window.location.href .. here is the code:
}); |
@fabianchoxD Good Job ! |
I need to bind a html page within sweet alert. so that when my sweet alert triggered it should show the html page in its body. |
how can i do the alert when user is trying to close browser/tab with SweetAlert? Please help me out.. |
@fabianchoxD thanks, it works. |
anyone have any idea about the callback function/event triggered on click of |
@fabianchoxD thank you for the solution but it did not work for me. I was able to resolve this issue like this: |
@cnchg many thanks, it's work for me!!! |
If you also have a "Cancel" button in your modal, you'll want to confirm that the "OK" button was indeed pressed:
|
This is my solution for this issue! |
function MesajUyari($mesaj,$text,$icon,$sure,$url){ |
Thanks!! It worked!! |
Mine is redirecting to the page directly without even showing the Alert message. Am using Chrome.
|
Hi, I'm trying to make swal disappear after 5 seconds so I put a
|
Swal.fire({ |
i need go to another page after click at ok or error button...my code:
i use a $(document) because i need show the error when the page is loaded
<script> $(document).ready(function () { swal({ title: "Error", text: "wrong user or password", type: "error" }); }); </script>pls give me a hand ;)
The text was updated successfully, but these errors were encountered: