I am currently developing a website and was using strictly PHP, after a few hours of development I am noticing I really need to perform AJAX queries. However I am using CI and slightly confused on how I call Ajax queries - especially to a controllers method. I am looking to post data using the query,I have found the following using Jquery:
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});
but if I had a controller called main and method called postBack() - how would I pass postback() the data?
Could anyone point me in the right direction it would be much appreciated - apologies if this is extremely simple to say I am a newbie is an understatement.