rem: pos.appendChild( document.createElement( "a" ) ); pos.lastChild.setAttribute( 'class', 'browser' ); pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(elt.getAttribute( 'path' ))+'\');'); pos.lastChild.appendChild( document.createTextNode( '(select)' ) ); 
add: var item = document.createElement( "a" ); item.setAttribute( 'class', 'browser' ); item.setAttribute( 'href', 'javascript:browse_path(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');'); item.appendChild( document.createTextNode( '(select)' ) ); pos.appendChild( item ); 
context: function parse_browse_dir( ){    if( req.readyState == 4 )    {        if( req.status == 200 )        {            var answer = req.responseXML.documentElement;            var browser = document.getElementById( 'browser' );            var pos = document.createElement( "div" );            var elt = answer.firstChild;            while( elt )            {                if( elt.nodeName == "element" )                {                    pos.appendChild( document.createElement( "a" ) );                    pos.lastChild.setAttribute( 'class', 'browser' );                    if( elt.getAttribute( 'type' ) == 'directory' )                    {                        pos.lastChild.setAttribute( 'href', 'javascript:browse_dir(\''+addslashes(elt.getAttribute( 'path' ))+'\');');                    }                    else                    {                        pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(elt.getAttribute( 'path' ))+'\');' );                    }                    pos.lastChild.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );                    if( elt.getAttribute( 'type' ) == 'directory' )                    {                        pos.appendChild( document.createTextNode( ' ' ) );                        pos.appendChild( document.createElement( "a" ) );                        pos.lastChild.setAttribute( 'class', 'browser' );                        pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(elt.getAttribute( 'path' ))+'\');');                        pos.lastChild.appendChild( document.createTextNode( '(select)' ) );                    }                    pos.appendChild( document.createElement( "br" ) );                }                elt = elt.nextSibling;            }            while( browser.hasChildNodes() )                browser.removeChild( browser.firstChild );            browser.appendChild( pos );        }        else        {            /*alert( 'Error! HTTP server replied: ' + req.status );*/        }    }}
meta: 2294	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2294/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/clean/share/http/js/functions.js