View Full Version : Conflicting JScripts?

Apr 28th, 2008, 08:54 PM
hi everyone. not sure if i should bring this question here first. or bug the guys that made the scripts i'm working with. O_o (i'll bug em anyway) but maybe i can get some ideas or info if any incase i'm doing something wrong.

i know nothing of javascript. i just use whatever is online. so maybe someone who is very knowledgable, could prolly just help me by being able to identify the CAUSE of the problem. i don't really need a solution. just need help to make sure i "blame" the right developer. (or kick myself for being noob)

here's my page


i'm trying to get this to work on my site here

and it works great for the first two boxes (divs) as you can see. (where the game goes, and where the rating system goes) both ie and FF too which is great.

but the minute i try to implement it to the 3rd box. (the comment box). FF refuses to load the page. (ie works) it might load for a split second but then it goes all white on me.

for a little background info. the comment box is powered by js-kit

very simple and easy to impliment.

i am not exactly sure who it is i should ask help from the two. (both?) who is causing the problem? does js-kit-comment interfere with slayer gradient? or does slayer gradient interfere with js-kit?

OR, (why i came here) am i doing something wrong?

here's my source code if anyone would like to analyze it.

<?php require('_drawrating.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="gradient.js"></script>
<script type="text/javascript" language="javascript" src="js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="js/rating.js"></script>
<link rel="stylesheet" type="text/css" href="css/rating.css" />
<link rel="stylesheet" type="text/css" href="apoc.css" />


<div id="apocheader">
<img src="apocalypse.jpg" id="apocimage" alt="Apocalypse" />

<br />

<div id="apocgame" class="gradient 9e0b0f 000000 vertical">
<div class="apoccat"><div class="titletext">Apocalypse</div></div>



<br />

<div id="apocrating" class="gradient 9e0b0f 000000 vertical">
<div class="apoccat"><div class="titletext">Rate!</div></div>
<div id="rating"><center>
<?php echo rating_bar('Apocalypse'); ?></center></div>

<br />

<div id="apoccomment">
<div class="apoccat"><div class="titletext">Comment</div></div>
<br />
<div class="js-kit-comments" style="display:none"
backwards="yes" thread="no" paginate="15"></div>
<script src="http://js-kit.com/comments.js"></script>
.js-singleCommentKarma {color:#ffffff;font-size:10px;}
.js-singleComment {border:1px solid #ffffff;font-size:14px;}
.js-LeaveComment a {color:#ffffff;}
.js-singleCommentComMod {color:#ffffff;}


i tried to be as neat as possible.

i am so stumped on why this doens't work, that i dont' even know how to approach the devs without sounding noobish. "hey guys, this don't work and idk why, fix plz". idont' think they'll help me out if i don't at least know enough to give them info that could kickstart possible solutions or workarounds. >.<

the way i see it, it's one thing if one of the two refused to work where desired. (maybe gradient doesn't load but comment does) or maybe the comment dissapears but the gradient shows perfectly. or both do nothing and leave a empty divbox.

but for the whole page to NOT LOAD?? that just stumps me.

so i hope you guys dont' mind.

sorry if i took this problem to the wrong place. i just always assume i did something wrong or don't know something.) hehe.

thank you very much for your time.