[Project_owners] listbox delete, not deleting!?

Michael Johnston special.michael at gmail.com
Sat Sep 3 22:44:26 EDT 2005


i have this:
				<listbox id="sig_list" rows="10" flex="1" 
					ondoubleclick="sig_opts_edit();"
					onkeypress="sig_list_keypress(event);"
					suppressonselect="true"   
					onselect="sig_opts_preview();">
	
					<!--  onselect=""-->
					<listcols>
						<listcol flex="1" minwidth="50"/>
					</listcols>
					
					<listitem disabled="true" hidden="true">
						<listcell label=""/>
					</listitem>
				</listbox>

----------------------
and this is done onload
---------------------
//initialization
	function sig_opts_init(){

 	    //this is what we want to insert them into
	    var l= document.getElementById("sig_list");

	    //a bug occurs if we insert when it's selected	  
	    l.clearSelection();
	
	    var len = mySignatures.names.length;
	    for(var i= 0; i<len; i++){
	    	var n= mySignatures.names[i];
	    	var s= mySignatures.signatures[i];
	        l.insertItemAt(i,n,s);
	    }//for
	
	    //this should work, but in older versions (pre deer park alpha)
	    //it's not soing it's job.
		l.removeItemAt(len); // the last hidden node.
		
		//turn on the select events now everything is loaded.
		l.setAttribute('suppressonselect','false');

	    window.sizeToContent(); 
		
    }


as the js comment says in deerpark alpha this works fine. in
firefox1.06 however it doesn't delete the object, and i consequently
have an extra hidden node in my list.

can anyone tell me what's happening here? is this a bug that was fixed
in deerpark?
i had a look in bugzilla, but nothing caught my eye.

mike


More information about the Project_owners mailing list