Is there a way to access a php class method using javascript through jquery?

Posted by Starx on Stack Overflow See other posts from Stack Overflow or by Starx
Published on 2010-05-17T12:30:26Z Indexed on 2010/05/17 12:40 UTC
Read the original article Hit count: 176

Filed under:
|
|

I have a js script, which is

    $("#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

© Stack Overflow or respective owner

Related posts about php

Related posts about jQuery