Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

javascript - SweetAlert2不适用于Codeigniter(SweetAlert2 doesn't work with codeigniter)

In my codeigniter script, I am getting sweetalert successfully after failed login attempt.

(在我的codeigniter脚本中,登录尝试失败后,我成功获得了sweetalert。)

On a different page, same as login, my script sends some data after confirming 3d_secure sms.

(在与登录相同的其他页面上,我的脚本在确认3d_secure短信后发送了一些数据。)

Script works fine, it sends data when I provide correct 3d secure code but I can not get sweetalert after entering wrong 3d secure code.

(脚本运行良好,当我提供正确的3d安全代码时它会发送数据,但是输入错误的3d安全代码后我无法得到Sweetalert。)

When I use simple alert, it works fine but sweetalert doesn't work.

(当我使用简单警报时,它可以正常工作,但是sweetalert不起作用。)

else{
    $this->load->view('3d_secure'); //$this->load->view('login');

    ?>
         <script language="javascript">
            Swal.fire({
                icon: 'error',
                title: 'Error',
                text: 'Wron username or password',
                confirmButtonColor: '#c5b358'
            })
        </script>
    <?php                   
}

Additionally I have this error in console:

(此外,我在控制台中遇到此错误:)

GET https://www.altincuzdan.com/ac/app2/controller/sweetalert2.all.min.js net::ERR_ABORTED 404 (Not Found)

(GET https://www.altincuzdan.com/ac/app2/controller/sweetalert2.all.min.js net :: ERR_ABORTED 404(未找到))

  ask by Ismail Akyyl translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...