weixin_33721427 2016-07-18 00:30 采纳率: 0%
浏览 9

请求代码按钮,

I run an amazon review site, and I need a button that will request a code from a text file that is uploaded by the seller.

What I am needing to know is how can this be done using HTML if possible.

I am trying to use this example:

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

But instead of the pre-filled text. It will display only the code that is in the txt file that was upload by the seller. Only that members can see and be issue a random code.

</div>
  • 写回答

1条回答 默认 最新

  • weixin_33720956 2016-07-18 00:42
    关注

    If I understand your question, you're trying to request data from an external site after a button was clicked.

    In this case, HTML can't really do this on it's own since it's just a layout and markup language.

    What you're looking for is something along the lines of an AJAX request which is used with javascript or some jQuery.

    评论

报告相同问题?

悬赏问题

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