Code:
 function process(){
        if(isValid()){
            var vParameters = new Object();
            vParameters["pvDispoCode"] = $("#pvDispoCode").val();
            vParameters["pvDispoDesc"] = $("#pvDispoDesc").val();
            vParameters["pvActive"] = $("#pvActive").val();
            vParameters["pvTimeStamp"] = new Date().getTime();

            $.ajax({
                url: "mkt_disp_setup_pkg.save_dispo_setup",
                data:vParameters,
                success: function(retVal){
                    retJSON = eval("(" + retVal + ")");
                    alert(retJSON.message)
                    if(retJSON.status == "success"){
                        window.location = window.location
                    }
                },
                error: function(retVal){
                    alert("Error submitting request. Status: " + retVal.status + " " + retVal.statusText)
                },
                async:false
            });
        }
    }
im new to learning javascript , first post here, and i want to know what is going on , why use ajax here? and if is success does it return the vparameters(data)thanks guys for help