Load a specific div from a webpage inside website

丶灬走出姿态 提交于 2019-12-13 04:17:24

问题


I am seeking help in displaying a specific id div tag through iFrame & jQuery and reloading the page every 30 seconds. This is what I have so far.

<!doctype html>
<html>
<head>
  <div id="viva">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
      document.getElementById('#viva').contentWindow.location.reload();
    </script>
  </div>
</head>
<body>
  <script>    
    $('#ctl00_ContentPlaceHolder1_dgTracker').load('https://hit.vivatracker.com/Tracker/Tracker.aspx?StoreID=217&StartDate=2/7/2019&EndDate=2/7/2019&Deacts=Y');
  </script>
</body>
</html>

Thanks in advance.

来源:https://stackoverflow.com/questions/54569594/load-a-specific-div-from-a-webpage-inside-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!