06-18-2009, 06:05 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: May 2008
Posts: 36
Thanks: 5
|
Thanks I was really hoping that was going to work. Unfortunately for some reason when i put that code of if i put
Code:
FancyForm.start(0, {
onSelect: function(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 ajax call :: ' + url);
}
}).send();
}
onDeselect: function(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 ajax call :: ' + url);
}
}).send();
}
});
then it gets rid of the styles which is the whole point of using the fancy form checkbox. Plus it doesn't do anything anyways...no alert pops up like its suppose to. That's why i thought maybe i was writing it wrong....or there was another way to do it. I'm not sure why it's acting this way....seems like i can only have select or deselect when i need both.
thanks for your help
|
|
|
|