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 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)