CodeIgniter Forums
speed issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: speed issue (/showthread.php?tid=81461)



speed issue - richb201 - 03-06-2022

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?