Problems with response of the form after upload file
I have a form that have an input file inside and when i receive the response of the server just in Chrome insert the data inside the target all the other browsers opens a new tab and insert the response there how i can avoid this?

Here is the code of the form.
   
    <div>
      <form id='uploadFrm' action='/'enctype='multipart/form-data' method='POST' target='frame_trgt'>
	<input id='1_inp' name='upfile' type='file' />
	<input id='pathFile' type='input' name='path' />
	<input id='uploadFile' type='submit' /><br />
     </form>
     <iframe id='frame_trgt' name='frame_trgt' />
    </div>

Here is the code of the JavaScript that handle the upload file.

    $('[name=upfile]').change(function(event){
			$("#pathFile").attr('value', getData('carpet'));
			$("#uploadFile").trigger('click');
		});






Problems with response of the form after upload file
===

I have a form that have an input file inside and when i receive the response of the server just in Chrome insert the data inside the target all the other browsers opens a new tab and insert the response there how i can avoid this?

Here is the code of the form.
   
    <div>
      <form id='uploadFrm' action='/'enctype='multipart/form-data' method='POST' target='frame_trgt'>
	<input id='1_inp' name='upfile' type='file' />
	<input id='pathFile' type='input' name='path' />
	<input id='uploadFile' type='submit' /><br />
     </form>
     <iframe id='frame_trgt' name='frame_trgt' />
    </div>

Here is the code of the JavaScript that handle the upload file.

    $('[name=upfile]').change(function(event){
			$("#pathFile").attr('value', getData('carpet'));
			$("#uploadFile").trigger('click');
		});





