rem: ajaxGet(stdAjaxPrefix + '&_mode=getstyles&id=' + id, function() { if ( ajax.readyState == 4 ) 
add: ajaxGet(stdAjaxPrefix+'&_mode=pagediff&diff1='+id1+'&diff2='+id2, function() { if(ajax.readyState==4) 
context:   ajaxGet(stdAjaxPrefix + '&_mode=getstyles&id=' + id, function() {      if ( ajax.readyState == 4 )      {        // IE doesn't like substr() on ajax.responseText        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;        }                // Build a selector and matching label        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);                // Stick it onto the messagebox        var div = document.getElementById('messageBox');        var kid = div.firstChild.nextSibling;                kid.appendChild(p_parent);              }    });
meta: 3765	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3765/d7141bbfd35c2b2bc6e3720f56cfebedaeb26b35/ajax.js/clean/includes/clientside/static/ajax.js