Hi Guys,

I'm trying to use the Request.HTML of Mootools and I've got it working
on the DropDown onchange event. Really great indeed. I just noticed an
error when I was trying to implement it in the edit action.

Ok, so.. my JS request is like this

function clientTypeChange(value) {
        var req = new Request.HTML({
                method: 'get',
                url: 'get_groups/'+value,
                update: $('IndividualIndividualGroup'),
                onComplete: function(response) {
                        ...
                }
        }).send();
        return true;
}

the url works perfect in the "add" action

link : http://localhost/b2/individuals/add
requested url : http://localhost/b2/individuals/get_groups/C

but when I use the same code in the "edit" action

link : http://localhost/b2/individuals/edit/3
requested url: http://localhost/b2/individuals/edit/get_groups/C

see.. the "edit" action in the link is not removed and the action is
now directed to the edit. Also, when I try to pass a variable also to
add, say .../add/4, the requested url also retains the action "add".

How so? Can someone please help me..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to