On Sun, Jan 24, 2010 at 12:42 PM, Bugman1400
<trae.be...@coachmanridge.com> wrote:
> a href="javascript:void(0);" onclick='$.get("dotest.php",{ cmd: "approve",
> id: "57" } ,function(data){ alert('What the Heck'); });'> Approve /a
> ...
> How come I get no response? Is there a further way to debug? I've heard that
> Ajax errors may be silent unless you specify.

Well, this is gonna piss you off, but the problem with that particular
example is you've got unescaped ticks inside of ticks - check the JS
concole. Change to the following and it works:

        <a href="javascript:void(0);" onclick=
           '$.get("dotest.php",
                       { cmd : "approve", id  : "57" },
                       function(data) { alert("What the Heck\n\n"+data); 
});'>Approve</a>

Nathan

Reply via email to