SOURCE SITE: I have a page on a site that generates some HTML - no <head>
or <body>
tags, just <p>
etc. Let's say the URL is here:
http://example.com/warnings-generator.php
TARGET SITE: I'm currently inserting the contents of the above page into my page. Let's say that page is here:
http://example.com/mywarningpage/index.php
EXAMPLE: For this purpose, it looks something like this:
<p>Some text here. Maybe a <a href="">link</a>.</p><p>Multiple paras</p>
What I want to do is to use javascript to grab the contents of the generator.php and update the contents on just that part of the index.php.
I assume I'll need to put the content in a div to make it easier and give that div an id. So let's say when the page loads, that part of the HTML looks like this:
<div id="warnings"><p>Some text here. Maybe a <a href="">link</a>.</p><p>Multiple paras</p></div>
I want to refresh that every, say, 60 seconds.
(I apologize if this has been asked before, but in my searching, I wasn't able to find it.)