d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Iso Some Help With Jquery > Lmk
Add Reply New Topic New Poll
Member
Posts: 299
Joined: Aug 17 2012
Gold: 200.00
Aug 19 2012 02:53pm
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
Member
Posts: 12,532
Joined: Feb 1 2010
Gold: 140.00
Aug 20 2012 01:34am
i don't understand your problem, pm me
Member
Posts: 24,488
Joined: Jul 11 2011
Gold: 1,272.50
Aug 23 2012 11:26pm
smf is garbage, post your question on their forums
Member
Posts: 299
Joined: Aug 17 2012
Gold: 200.00
Aug 27 2012 01:55am
yeah i fixed it, done deal.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll