Hi, It's me again.. am I the only one needing help around here or what! ;)
My problem now, is with Arrays.
when I'm in the browser, adding nodes to my tree works fine this way :
this.childNodes[this.childNodes.length] = node;
(since in javascript, array are automatically resized)
but when I'm using HTTPUnit, I get an arrayoutofbound exception coming from this script. Could this be because the javascript tools don't support the
"this.childNodes[this.childNodes.length] = node;"
mechanism that automatically reallocate space to fit new items??
Help would be appreciated.. at least on that one.. please.. because it works great in IE5+ and in Netscape 6+... and not in HTTPUnit.. I really like that tool.. but it kind of lacks on a "What HTTPUnit can't handle" documentation.. maybe this is a known issue.. just tell me if it is so.. and if plans are done to fix this.
TIA!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-02-20
Ok.. this was'nt what was happening.. judging by the exception and the code that was executed, I assumed it came for the arrays, but it's in fact from something else: the javascript document.createRange() method. I guess this is another javascript feature that is not yet supported..
it works in IE 5+ and Netscape 7 for sure... will it be supported in HTTPUnit any time soon?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-02-20
if it can help, here's the call that makes the ArrayOutOfBound exception.
var r = oElement.ownerDocument.createRange();
where oElement is an element retrieve with:
document.getElementById();
I want to use the range object.. so how could this be done with HTTPUnit while waiting for an update that would make this work as it does in N7 and IE5+...
thanks..... I guess...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, It's me again.. am I the only one needing help around here or what! ;)
My problem now, is with Arrays.
when I'm in the browser, adding nodes to my tree works fine this way :
this.childNodes[this.childNodes.length] = node;
(since in javascript, array are automatically resized)
but when I'm using HTTPUnit, I get an arrayoutofbound exception coming from this script. Could this be because the javascript tools don't support the
"this.childNodes[this.childNodes.length] = node;"
mechanism that automatically reallocate space to fit new items??
Help would be appreciated.. at least on that one.. please.. because it works great in IE5+ and in Netscape 6+... and not in HTTPUnit.. I really like that tool.. but it kind of lacks on a "What HTTPUnit can't handle" documentation.. maybe this is a known issue.. just tell me if it is so.. and if plans are done to fix this.
TIA!
Ok.. this was'nt what was happening.. judging by the exception and the code that was executed, I assumed it came for the arrays, but it's in fact from something else: the javascript document.createRange() method. I guess this is another javascript feature that is not yet supported..
it works in IE 5+ and Netscape 7 for sure... will it be supported in HTTPUnit any time soon?
if it can help, here's the call that makes the ArrayOutOfBound exception.
var r = oElement.ownerDocument.createRange();
where oElement is an element retrieve with:
document.getElementById();
I want to use the range object.. so how could this be done with HTTPUnit while waiting for an update that would make this work as it does in N7 and IE5+...
thanks..... I guess...