The proper way of doing this in wordpress is posting it directly to admin-ajax.php. Before you do that you will need to register your scripts and create a function that will be used in the "Action" call in jquery example
jQuery.ajax ({
url: ajaxurl,
type: "POST",
data: {
postCommentNonce: postCommentNonce,
//this is your action function that wp will used for your call
action: "stg_AjaxRetRequestl",
//used to pass a var this can be anything
typekey: "cgetList",
});
Here is a tutorial for the rest of the stuff that you will need. http://www.andrewmpeters.com/blog/how-to-make-jquery-ajax-json-requests-in-wordpress/. In case you are wondering what is ajaxurl, you get that by localizing your script like so..
wp_localize_script ("stgjsfiles", "stgjs", array ("ajaxurl" => admin_url ("admin-ajax.php"),
"postCommentNonce" => wp_create_nonce ("stg-post-nonce")));
search google, there are plenty of examples