I have a JavaScript script:
$("#feedbacksubmit").click(function() {
if($("#frmfeedback").valid()) {
var tname = $("#name").val();
var temail = $("#email").val();
var tphone = $("#phone").val();
var tcontent = $("#content").val();
var tsend = $(this).attr('ts');
$.post ( "bll/index.php",
{ action: 'mailfeedback', name: tname, email: temail, phone: tphone, content: tcontent, send: tsend },
function(data) {
$('.msgbox').html(data);
$("#frmfeedback")[0].reset();
});
return false;
}
});
However, I am trying to see if there is a way to access the class method of bll/index.php
directly from the script, instead of posting parameters, to access it.