Skip to content

Instantly share code, notes, and snippets.

@ajitbohra
Created May 25, 2015 18:49
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajitbohra/e0bb2f430894e62eaff4 to your computer and use it in GitHub Desktop.
Save ajitbohra/e0bb2f430894e62eaff4 to your computer and use it in GitHub Desktop.
jQuery: SweetAlert throws error logStr is not defined
// 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"
});
@saikiranmarripati
Copy link

Thanks it's saved me :)

@jgentes
Copy link

jgentes commented Aug 23, 2015

thanks, I was using "danger"

@malthejorgensen
Copy link

👍 Did the exact same thing as @jgentes 😄

@santosh-x
Copy link

Thank you (y)

@PradipShrestha
Copy link

You are lifesaver dude.

@groundbreaker08
Copy link

Thanks

@jhonnyoliveira
Copy link

Thanks

@v-radev-stanga
Copy link

Thank you!

@sagar-synergenie
Copy link

Thank You!

@dumptyd
Copy link

dumptyd commented May 24, 2018

Thanks.

@aulttd01
Copy link

Late to the party but thank you much. saved big time

@dreanmer
Copy link

ty saved me!

@ArunEdathadan
Copy link

danger is not supported , user error, in my case

@kamleshwebtech
Copy link

Thanks ajit :)

@ramrasi
Copy link

ramrasi commented Apr 30, 2020

thanks

@Riowaldy
Copy link

Riowaldy commented Jul 7, 2020

Thank you!

@kishan980
Copy link

thank you all

@revenantreturns
Copy link

Thanks

@PaolitaGalarza
Copy link

Gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment