views:

43

answers:

2

On button click I have the simple jQuery post:

$(document).ready(function() {
    $.post("/cgi-bin/stats.exe");
});

However, nothing seems to go through to the server side. Any suggestions?

Thanks.

+3  A: 

You attaching it to the document ready event. Instead, you should attach is to your button.

$(document).ready(function() {
     $('#myButtonId').click(function(){
           $.post("/cgi-bin/stats.exe");
     });
});
Mendy
A: 

you aren't providing any post data either use firebug to debug

Steve H