dqwr32867 2019-05-03 13: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-15 07: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>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 对于知识的学以致用的解释
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败