rem: button.className = "content-small"; button.onClick =  "function() { im_mapServerURL($('im_wmsservername').value);}"; 
context: function im_mapServersLoaded(req){    // setup WB    clearNode('im_whiteboard');        var WB = $('im_whiteboard');    var wbtitle = im_createWBTitle('Add a layer'); //FIXME i18n    WB.appendChild(wbtitle);    var closer = im_getWBCloser();    WB.appendChild(closer);    Event.observe(closer, 'click', im_closeWhiteBoard);    // fill contents    var servers = req.responseXML.documentElement.getElementsByTagName('mapServers')[0].getElementsByTagName('server');    var div = document.createElement('div'); // main box    div.id = "im_serverList";    div.className = 'im_wbcontent';    WB.appendChild(div);    var h1 = document.createElement('h1');    h1.textContent = "Server list " ; //FIXME i18n me!    h1.id = "im_serverList_title";    div.appendChild(h1);    var ul = document.createElement('ul');    ul.id = "im_serverList_list";    div.appendChild(ul);            $A(servers).each(        function(server)        {            var id=server.getAttribute('id');            var name =server.getAttribute('name');                     var li = document.createElement('li');            ul.appendChild(li);                        var a = document.createElement('a');                        a.textContent = name;            a.id = "im_mapserver_" + id;            a.setAttribute("onClick", "im_mapServerSelected("+id+",'"+name+"');");            li.appendChild(a);//            Event.observe(li, 'click',  function(){ imc_loadServices(id, im_servicesLoaded )} );                    }    );        // add a textbox to enter a server directly            var li = document.createElement('li');            li.textContent = 'Other WMS server'; // FIXME i18n            ul.appendChild(li);            var input = document.createElement('input');            input.id= "im_wmsservername";            input.className = 'content';            input.setAttribute("type", "text");             input.setAttribute("size", "50");                         li.appendChild(input);/*            <input class="content" type="text" name="url" size="60"/>*/           var button  = document.createElement('button');           button.className = "content-small";           button.onClick =  "function() { im_mapServerURL($('im_wmsservername').value);}";           button.textContent = "Connect"; // FIXME i18n           li.appendChild(button);           }
meta: 6986	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6986/89c44cd74f750c14597ab0be12fc5a5a913a0982/etj.js/buggy/web/intermap/scripts/etj.js