Project Description:
This project will entail creating a raw Javascript (not jQuery) function to POST data to a remote URL without updating the client, or causing a page refresh.
The code should accept keys and data to be transmitted. The current format, using jQuery post, is as follows:
$(document).ready(function(){
var data01 = "data";
var data02 = "data";
var data03 = "data";
$.post("http://domain.com/submit.php", {var1: data01,
var2: data02,
var3: data03},
"text");
});
The code must be flexible enough to work across all browsers and platforms, including mobile. If necessary, mobile browsers can use a separate function, but the preference is for an integrated function that handles each case. Because of this cross-platform requirement, jQuery (and jQuery mobile) is not a suitable implementation.