Jump to content

jquery stops another script


GRooVeZ

Recommended Posts

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>

Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.