View Single Post
Old 06-18-2009, 11:23 AM   #2 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Something like the following would work for you:

javascript Code:
FancyForm.start(0, {
        onSelect: makeAjaxCall(chk),
        onDeselect: makeAjaxCall(chk)
    });
   
function makeAjaxCall(chk)
{
    var url = 'schoolPage.php?catID=' + chk.inputElement.getProperty('id') + '&chk=' + chk.inputElement.getProperty('checked');
        var request = new Request({
            url:url,
            method:'POST',
            onRequest: function() {
                alert('making sure it works:: ' + url);
            }
        }).send();
}
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote