Basically i'm trying to use
Code
<script type="text/javascript" src="/js/jquery-1.8.0.min.js" ></script>
<script type="text/javascript">
$(document).ready(function() {
$("#targe").load("test.php");
var refreshId = setInterval(function() {
$("#targe").load("test.php");
}, 30000);
});
to update my test.php script dynamically every 30 seconds into the div "targe"
e.g.
Code
<div id=targe></div>
now here is where it gets complicated...
i'm using SMF integration hooking with this so when function template_main() loads from "test.template.php" its spitting out test.php at the top of the page and ignoring my jquery code.
anybody have some experience with this?
This post was edited by Targe on Aug 19 2012 03:12pm