使用ajax变量

Hi I am trying to turn this example into something more usable, it works speaks to the server changes the status of c8 and it's logged.

("#div1").load("http://127.0.0.1:81/tenHsServer/tenHsServer.aspx?t=ab&f=ToggleDevice&d=c8");

I am trying to break it down a little so I can change different devices c7,c6,c1 etc. it logs onto the server but doesn't fire the device, have I done something silly in how I construct this statement and populate the variables?

thanks for all help

$.ajax({
type: 'POST',
url: "http://127.0.0.1:81/tenHsServer/tenHsServer.aspx",
data: { 
    t: "ab", 
    f: "ToggleDevice" ,
    d:"c8"
}
});