_Q_
12-05-2005, 06:20 AM
Hi,
I have an infuriating 'object expected' error, that I just cant find. Perhaps a new perspective could shed light on it. I have two images (left and right arrows) to which I have attached onclick commands. But when I click on them, I get the 'object expected' error on the following lines:
<img src="./?f=101103" onclick="moveSlideLeft(); return true;"/>
<img src="./?f=101104" onclick="moveSlideRight(); return true;"/>
The onclick commands should jump to the commands below. I put in some alerts at this point. Its not even reaching these functions, so I dont think the immeadiate error lies within updateSlide(), so I wont crowd you with the code here. I guess that the problem must be how I'm calling the moveSlideLeft/Right functions from the onclick property.
<script>
function moveSlideLeft(){
updateSlide(-1);
}
function moveSlideRight(){
updateSlide(1);
}
</script>
-->
I have an infuriating 'object expected' error, that I just cant find. Perhaps a new perspective could shed light on it. I have two images (left and right arrows) to which I have attached onclick commands. But when I click on them, I get the 'object expected' error on the following lines:
<img src="./?f=101103" onclick="moveSlideLeft(); return true;"/>
<img src="./?f=101104" onclick="moveSlideRight(); return true;"/>
The onclick commands should jump to the commands below. I put in some alerts at this point. Its not even reaching these functions, so I dont think the immeadiate error lies within updateSlide(), so I wont crowd you with the code here. I guess that the problem must be how I'm calling the moveSlideLeft/Right functions from the onclick property.
<script>
function moveSlideLeft(){
updateSlide(-1);
}
function moveSlideRight(){
updateSlide(1);
}
</script>
-->