Welcome Guest, Not a member yet? Register   Sign In
AJAX request path
#7

[eluser]ptvw2011[/eluser]
I tried this implementation but using

Code:
function sendRequest() {
    new Ajax.Request(base_url + "test/deactivate/",
        {
            method: 'post',
            postBody: 'name='+ $F('da'),
            onComplete: showResponse
        });
}

It seems that the data never gets posted to the deactivate method/function within the test controller.

I have tried printing the post array on the resulting page but its always blank.

I have tested by just writing a simple controller and function to echo out a test message.

The test only works if i make a .php file in a folder and echo out.


Messages In This Thread
AJAX request path - by El Forum - 04-15-2011, 02:40 AM
AJAX request path - by El Forum - 04-15-2011, 06:57 AM
AJAX request path - by El Forum - 04-15-2011, 07:29 AM
AJAX request path - by El Forum - 04-15-2011, 07:54 AM
AJAX request path - by El Forum - 04-15-2011, 07:55 AM
AJAX request path - by El Forum - 04-15-2011, 08:03 AM
AJAX request path - by El Forum - 04-15-2011, 09:41 AM
AJAX request path - by El Forum - 04-15-2011, 02:09 PM
AJAX request path - by El Forum - 04-15-2011, 03:24 PM
AJAX request path - by El Forum - 04-16-2011, 10:13 AM
AJAX request path - by El Forum - 04-18-2011, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB