Displaying 2 results from an estimated 2 matches for "fortostr".
Did you mean:
fortstr
2005 Sep 22
5
Prototype lib : for-each loops and DontEnum
...ument.writeln("<br /><br /> Prototype Object Test ");
var TestClass = Class.create();
TestClass.prototype =
{
initialize: function(arg1,arg2,arg3)
{
this.a = arg1;
this.b = arg2;
this.c = arg3;
},
showMessage: function(msg)
{
alert(msg);
},
forToString: function()
{
document.writeln("<br /> c style for loop");
for (var i = 0; i < this.length; i++)
{
document.writeln("<br /> i["+i+"] = ["+this[i]+"]");
}
},
forEachToString: function()
{
document.writeln(...
2005 Oct 13
3
Tweaks of Array.prototype
Hi all,
I encountered a big problem when trying to use Scriptaculous and
Htmlarea in the same page.
The Htmlarea code uses a lot of "for (var i in array_variable)" to
iterate on array elements. Problem is that prototype.js augments
Array.prototype, which then show up in the iteration, severely breaking
htmlarea.
The easy workaround is for sure to use "for (var i = 0; i <