[eluser]ptvw2011[/eluser]
I changed the code above to
Code:
new Ajax.Request(base_url + "ajax/deactivate/",
{
method: 'GET',
parameters: {confirm: x}, //where is x is the value of my form element by doing
// var x = document.GetElementById('mycheckbox').value;
onComplete: showResponse
});
it now works.
Thanks for all your help.