Created
May 25, 2015 18:49
-
-
Save ajitbohra/e0bb2f430894e62eaff4 to your computer and use it in GitHub Desktop.
jQuery: SweetAlert throws error logStr is not defined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code throws error: logStr is not define | |
swal({ | |
title: "Problem", | |
text: "Problem processing request !", | |
type: "Error" | |
}); | |
// This code works perfect | |
// type argument accepts following: error,success,info,warning | |
// type is case sensitive "Error" in place of "error" will throw error | |
swal({ | |
title: "Problem", | |
text: "Problem processing request !", | |
type: "error" | |
}); |
thanks, I was using "danger"
👍 Did the exact same thing as @jgentes 😄
Thank you (y)
You are lifesaver dude.
Thanks
Thanks
Thank you!
Thank You!
Thanks.
Late to the party but thank you much. saved big time
ty saved me!
danger is not supported , user error, in my case
Thanks ajit :)
thanks
Thank you!
thank you all
Thanks
Gracias
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks it's saved me :)