dqwr32867 2019-05-03 05:23
浏览 51
已采纳

在注销期间显示在Codeigniter 3里面的bootstrap模态箱子的网站视图

In my web application, when I press log out then there is a bootstrap popup comes to ask about log out or not. Its working fine everywhere but not when the page is of edit. Means while edit page there is a parameter in address bar. Due to that bootstrap modal box of log out showing entire website view inside modal box. I am confused how's this possible. This is not the fault of codeigniter coding. Since, the page is working very fine.

On the same page if I remove the parameter from address bar then it works fine. Can't understand this weird error in codeigniter and bootstrap. Is there anyone here who faced same kind of issue before?

Image below of normal modal box that's how modal box should look and working on other pages. enter image description here

Here below is the screenshot of the issueenter image description here

  • 写回答

1条回答 默认 最新

  • 普通网友 2019-07-14 23:03
    关注

    I found the solution. I was making a mistake. On log out link a href I was putting the link to and index.html page like below

    <li><a href="index.html" data-toggle="modal" data-target="#logoutModal"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
    

    Then I removed the index.html link inside a tag. Now it's like below and the issue is resolved.

    <li><a href="" data-toggle="modal" data-target="#logoutModal"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部