I have been trying to make my own password eXcell but am running into some issues. The main problem is retrieving the actual password from the field.
My code so far:
function eXcell_password(cell)
{
if(cell)
{
this.cell = cell;
this.grid = this.cell.parentNode.grid;
}
this.setValue = function(val)
{
this.setCValue(Array(11).join( "*" ), val );
}
this.getValue = function(){ return this.cell.innerHTML; }
this.edit = function()
{
this.val = this.getValue();
this.cell.innerHTML = "<input type='text' value='" + this.val + "'>";
this.cell.childNodes[0].onclick=function(e){ (e||event).cancelBubble=true; }
}
this.detach = function()
{
this.setValue( this.cell.innerHTML ); //set the new value
return this.val!=this.getValue();
}
}
I am unsure how to get the actual users input on change. Currently I will get “” when doing getValue();.
Any help?