rem: var fields = new Array('forum_id','post_id','parent_id','post_id','poster_name','name','posticon','to','cc'); 
add: var fields = ['forum_id','post_id','parent_id','post_id','poster_name','name','posticon','to','cc']; 
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 = new Array('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 = k4XMLHttpRequestFactory.createInstance();		k4_http.Request('POST', form_url + '&use_ajax=1' + query_string, (function(){k4Ajx.loadingState(preview_holder,'preview');}), false, (function(){getPostPreview(k4_http);}));	}}
meta: 8193	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8193/782215d5fb6697f8e778f8800b0a6eb59e168226/http_requests.js/clean/trunk/upload/js/http_requests.js