add:  var oUTF8 = $( 'UTF8Encoding' ); var hiddenEnc = document.createElement( 'input' ); hiddenEnc.type = 'hidden'; hiddenEnc.name = '__exportEncoding'; if( oUTF8 && oUTF8.checked ) { hiddenEnc.value = oUTF8.value; } else { hiddenEnc.value = $('otherEncoding_input').value; } hiddenForm.appendChild( hiddenEnc );  
context: 	__constructForm : function( )	{		var dialogContent = $( 'simpleExportDialogBody' );		var hiddenDiv = document.createElement( 'div' );		hiddenDiv.style.display = 'none';		var hiddenForm = document.createElement( 'form' );		hiddenForm.method = 'post';		hiddenForm.target = '_self';		var url = document.location.href;		url = url.replace( /[\/][a-zA-Z]+[?]/, '/download?' );		hiddenForm.action = url;				// Pass over current element's iid.		var queryNameInput = document.createElement( 'input' );		queryNameInput.type = 'hidden';		queryNameInput.name = "ResultSetName";		var oSelects = this.__instance.getElementsByTagName( 'select' );		queryNameInput.value = oSelects[0].options[oSelects[0].selectedIndex].text;		hiddenForm.appendChild( queryNameInput );		// Total # of selected columns.		if ( this.selectedColumns.length > 0 )		{			var hiddenSelectedColumnNumber = document.createElement( 'input' );			hiddenSelectedColumnNumber.type = 'hidden';			hiddenSelectedColumnNumber.name = "SelectedColumnNumber";			hiddenSelectedColumnNumber.value = this.selectedColumns.length;			hiddenForm.appendChild( hiddenSelectedColumnNumber );			// data of selected columns.			for( var i = 0; i < this.selectedColumns.length; i++ )			{				var hiddenSelectedColumns = document.createElement( 'input' );				hiddenSelectedColumns.type = 'hidden';				hiddenSelectedColumns.name = "SelectedColumn" + i;				hiddenSelectedColumns.value = this.selectedColumns[i];				hiddenForm.appendChild( hiddenSelectedColumns );			}		}				this.selectedColumns = [];				var tmpSubmit = document.createElement( 'input' );		tmpSubmit.type = 'submit';		tmpSubmit.value = 'TmpSubmit';		hiddenForm.appendChild( tmpSubmit );				hiddenDiv.appendChild( hiddenForm );		dialogContent.appendChild( hiddenDiv );		tmpSubmit.click( );		dialogContent.removeChild( hiddenDiv );	},
meta: 855	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/855/3d53dba994965be4266bfb60b19e0d3d382ced1f/BirtSimpleExportDataDialog.js/buggy/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/dialog/BirtSimpleExportDataDialog.js