GRooVeZ Posted April 22, 2012 Share Posted April 22, 2012 hi, my website is premade website wich i am editing it has these different blocks, and i want to change them in one of those blocks i want a timer that counts down, ive done this with refreshing a div with jquery on other pages, and thats working now i want a downcounting timer in a block, but when i do that another block stops working a block that has a slider of images that slide over ... now i think it has something todo with the document ready function? that stops the other block from working ? u can see it failing here http://www.acidleague.com and this is the code im using inside the block <script src='http://code.jquery.com/jquery-latest.js'></script> <script> $(document).ready(function() { $('#responsecontainer').load('response.php'); var refreshId = setInterval(function() { $('#responsecontainer').load('response.php'); }, 5000); $.ajaxSetup({ cache: false }); }); </script> <div id="cols-left"> <div class="top_left_block"> <div class="llbg"></div> <div class="top_left_rbg"></div> <div class="rmlbg"></div> <div class="clr"></div> </div> <div style="min-height: 223px;background:#373737;"> <div align="right" style="padding-right:10px;font-size:11px;min-width: 336px;min-height: 44px; background:url(./theme/neo-blue/images/bg/news.png) no-repeat top center transparent;"> <b><span style="color:#055ed5;"><?echo"MINI"?> </span> <?php echo"AGENDA"?></b> </div> <div align="center" style="margin-left:5px; margin-top:-19px;"> <span style="color:#000000;"><b><?php echo"UPCOMING MATCH"?></b></span> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <div id="responsecontainer"></div> </td> </tr> </table> </div> </div> <div class="bot_left_block"> <div class="lbotlbg"></div> <div class="top_bot_lbg"></div> <div class="rbotlbg"></div> <div class="clr"></div> </div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/261396-jquery-stops-another-script/ Share on other sites More sharing options...
idontkno Posted April 22, 2012 Share Posted April 22, 2012 This isn't a PHP error so why did you post it here?... Anyways, your problem is on line 40, there is no .orbit() object loaded from whatever jQuery plugin you're using (From your website, not what you posted). EDIT: Actually, why do you have jQuery loaded twice? Once in the header and once in your "Match starts in xx". Quote Link to comment https://forums.phpfreaks.com/topic/261396-jquery-stops-another-script/#findComment-1339473 Share on other sites More sharing options...
GRooVeZ Posted April 22, 2012 Author Share Posted April 22, 2012 because i was helped here before, is there a specific forum for stuff like this inhere? and im sorry but im really new at this also. dont really understand what u mean by not what u posted, but on your website not line 40 of the script i posted? but what line are you talking about then? and what does the orbit loader do? Quote Link to comment https://forums.phpfreaks.com/topic/261396-jquery-stops-another-script/#findComment-1339474 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.