rem: alert(ajax.responseText); 
add:  var response = String(ajax.responseText + ' '); response = response.substr(0, response.length - 1); if ( response.substr(0,1) != '[' ) { alert('Invalid or unexpected JSON response from server:\n' + response); return null; }   var data = parseJSON(response); var options = new Array(); for( var i in data ) { var item = data[i]; var title = themeid_to_title(item); var option = document.createElement('option'); option.value = item; option.appendChild(document.createTextNode(title)); options.push(option); } var p_parent = document.createElement('p'); var label  = document.createElement('label'); p_parent.id = 'chtheme_sel_style_parent'; label.appendChild(document.createTextNode('Style: ')); var select = document.createElement('select'); select.id = 'chtheme_sel_style'; for ( var i in options ) { select.appendChild(options[i]); } label.appendChild(select); p_parent.appendChild(label);   var div = document.getElementById('messageBox'); var kid = div.firstChild.nextSibling;  kid.appendChild(p_parent);  
context:   ajaxPost(stdAjaxPrefix+'&_mode=setpass', 'password='+pass, function()    {      unsetAjaxLoading();      if(ajax.readyState==4)      {        alert(ajax.responseText);      }    }
meta: 3765	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3765/4eb6170504b6a773b7532a041856496905816019/ajax.js/clean/includes/clientside/static/ajax.js