Grid doesn't reload after form submitted

If I use this:

if(id=="addcatalogue"){
form_1.send("url", "post", function(){
	grid_1.clearAndLoad("url");
});
}

The grid reloads. But if

if(id=="addcatalogue"){
	document.getElementById("realFormAdd").submit();
				
	grid_1.clearAndLoad("url");
}

i use this for multipart/form-data.

If I use the second code it doesn’t reload.

The grid reloads for me well.
but the second code variation is incorrect anyway.
You are reloading the grid’s before it’s actually sent from the form, so you will send no data or incorrect one.
Please, try to use the solution with a callback.