magritton
11/21/2016 - 3:46 PM

This uses jQuery to do an ajax post to a sharepoint application page. The application pages takes on the value key pairs and uses the data.

This uses jQuery to do an ajax post to a sharepoint application page. The application pages takes on the value key pairs and uses the data.

function saveForm()
{
	var myKeyVals = { ListName:"TestQPSList", QPS_doc_id:"Field_Title"}
	
	var saveData = $.ajax({
	      type: 'POST',
	      url: "http://spsvde001/_layouts/qpslistexport/qpsexport.aspx",
	      data: myKeyVals,
	      dataType: "text",
	      success: function(resultData) { alert("Save Complete") }
	});
	saveData.error(function() { alert("Something went wrong"); });
}