transmoderata
07-24-2012, 08:44 AM
Okay, here is the page: http://www.therabbitshome.com/
Wait for "BROWSE ART" to appear, then click it.
Both "PREV" and "NEXT" should appear toward the bottom of the big black box that expands. But only "PREV" appears. Also, an image of a magnifying glass should appear in the black box, but it doesn't. I get these errors in Iceweasel (Debian rebranding of Firefox):
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://www.therabbitshome.com/ :: appendPrevNext :: line 955" data: no]
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://www.therabbitshome.com/ :: appendZoom :: line 984" data: no]
I've confirmed that the problem exists for FireFox and Chrome users.
The relavent code:
var jPrev=document.createElement("img");
jPrev.src="http://www.therabbitshome.com/images/prev.png";
jPrev.id="prev";
jPrev.onclick=clickPrev;
jPrev.onmouseover=prevMouseover;
jPrev.onmouseout=prevMouseout;
var jNext=document.createElement("img");
jNext.src="http://www.therabbitshome.com/images/next.png";
jNext.id="next";
jNext.onclick=clickNext;
jNext.onmouseover=nextMouseover;
jNext.onmouseout=nextMouseout;
var jZoom=document.createElement("img");
jZoom.src="http://www.therabbitshome.com/images/zoom.png";
jZoom.id="zoom";
jZoom.onclick=clickZoom;
jZoom.onmouseover=zoomMouseover;
jZoom.onmouseout=zoomMouseout;
function openBrowse(){
isBusy=true;
currImg=0;
inContspaceLong();
setTimeout(appendPrevNext,400);
setTimeout(inPrev,400);
setTimeout(inNext,400);
setTimeout(appendZoom,1000);
// setTimeout(appendImg_0,1000);
setTimeout(function(){isBusy=false;},1000);
}
function appendPrevNext(){
var jStuffspace_back=document.getElementById("stuffspace_back");
jStuffspace_back.appendChild(jPrev);
jStuffspace_back.appendChild(jNext);
jStuffspace_back.appendChild(jBlock_prevnext);
}
function appendZoom(){
var jStuffspace_back=document.getElementById("stuffspace_back");
jStuffspace_back.appendChild(jZoom);
}
As you can see, I'm creating, setting the properties for, and appending the "PREV" image, the "NEXT" image, and the magnifying glass image, all the same way. So why is the "PREV" image working and not the others? Help greatly appreciated.
Wait for "BROWSE ART" to appear, then click it.
Both "PREV" and "NEXT" should appear toward the bottom of the big black box that expands. But only "PREV" appears. Also, an image of a magnifying glass should appear in the black box, but it doesn't. I get these errors in Iceweasel (Debian rebranding of Firefox):
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://www.therabbitshome.com/ :: appendPrevNext :: line 955" data: no]
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://www.therabbitshome.com/ :: appendZoom :: line 984" data: no]
I've confirmed that the problem exists for FireFox and Chrome users.
The relavent code:
var jPrev=document.createElement("img");
jPrev.src="http://www.therabbitshome.com/images/prev.png";
jPrev.id="prev";
jPrev.onclick=clickPrev;
jPrev.onmouseover=prevMouseover;
jPrev.onmouseout=prevMouseout;
var jNext=document.createElement("img");
jNext.src="http://www.therabbitshome.com/images/next.png";
jNext.id="next";
jNext.onclick=clickNext;
jNext.onmouseover=nextMouseover;
jNext.onmouseout=nextMouseout;
var jZoom=document.createElement("img");
jZoom.src="http://www.therabbitshome.com/images/zoom.png";
jZoom.id="zoom";
jZoom.onclick=clickZoom;
jZoom.onmouseover=zoomMouseover;
jZoom.onmouseout=zoomMouseout;
function openBrowse(){
isBusy=true;
currImg=0;
inContspaceLong();
setTimeout(appendPrevNext,400);
setTimeout(inPrev,400);
setTimeout(inNext,400);
setTimeout(appendZoom,1000);
// setTimeout(appendImg_0,1000);
setTimeout(function(){isBusy=false;},1000);
}
function appendPrevNext(){
var jStuffspace_back=document.getElementById("stuffspace_back");
jStuffspace_back.appendChild(jPrev);
jStuffspace_back.appendChild(jNext);
jStuffspace_back.appendChild(jBlock_prevnext);
}
function appendZoom(){
var jStuffspace_back=document.getElementById("stuffspace_back");
jStuffspace_back.appendChild(jZoom);
}
As you can see, I'm creating, setting the properties for, and appending the "PREV" image, the "NEXT" image, and the magnifying glass image, all the same way. So why is the "PREV" image working and not the others? Help greatly appreciated.