Custom Password Cell

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?

You need to return the value of a cell but not the inner html of the cell in your getValue and setValue functions

You may try to use the ready password column type: “passw”.

What do you mean ready password type? using passw throws a configuration error.

Ignore that previous post. I had a brain malfunction. Just having problems getting the value from the field onEditCell. It doesn’t fire.

What do you mean ready password type? using passw throws a configuration error.
Please, make sure that the dhtmlxgrid_excell_passw.js extension is included on the page.

Ignore that previous post. I had a brain malfunction. Just having problems getting the value from the field onEditCell. It doesn’t fire.
Could you clarify your actual problem