rem: field	= d.getElementById(editor_id); 
add: field	= FA.getObj(editor_id); 
context: function setSendPostPreview(form_url, editor_id) {	// try to get the form object	var form = d.getElementById('savepost_form');	// define several possible required fields to get values	// from to pass to the request	var fields = ['forum_id','post_id','parent_id','post_id','poster_name','name','posticon','to','cc'];		// if everything is good sofar	if(form) {				// loop through the above defined fields		var query_string = '&submit_type=preview';		for(var i = 0; i < d.sizeof(fields); i++) {						// if the field exists and had a value, add it to the query string			field = d.getElementById(fields[i]);			if(field && field.value != '') {				query_string += '&' + fields[i] + '=' + escape_str(field.value);			}		}		// get the textare field		field	= d.getElementById(editor_id);				// if the value of the textare is not null, add it to the query string		if(field && textarea_value(field) != '') {			query_string += '&message=' + escape_str(textarea_value(field));		}				var preview_holder	= d.getElementById('ajax_post_preview');		var k4_http = FAHttpRequestsFactory.createInstance();		k4_http.Request('POST', form_url + '&use_ajax=1' + query_string, (function(){FAHTTP.loadingState(preview_holder,'preview');}), false, (function(){getPostPreview(k4_http);}));	}}
meta: 8193	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8193/d55368118dec4a8f237e8e432dd97304d21083d6/http_requests.js/buggy/trunk/upload/js/http_requests.js