Welcome Guest, Not a member yet? Register   Sign In
speed issue
#1

(This post was last modified: 03-06-2022, 08:59 AM by richb201.)

I am using CI3. I am also using SweetAlert2 to popup a "busy working" popup during one particularly slow procedure in my code. What I'd like to do is run the popup direct from within my controller. Here is the popup I am trying to run.
<script type="text/javascript">
Swal.fire({
title: 'Sweet!',
text: 'Modal with a custom image.',
imageUrl: 'https://unsplash.it/400/200',
imageWidth: 400,
imageHeight: 200,
imageAlt: 'Custom image',
})
</script>

How can I call this directly in the middle of the CI3 code?
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB