Skip to main content

Bug Tracker

Side navigation

#1724 closed bug (worksforme)

Opened September 24, 2007 09:32PM UTC

Closed September 26, 2007 10:11PM UTC

ajax calls dont work ocasionally with local params variable

Reported by: danielzelisko Owned by:
Priority: major Milestone: 1.2.2
Component: ajax Version: 1.2.1
Keywords: post ajax local variable Cc:
Blocked by: Blocking:
Description

when I define my params and make a call like this:

function test()
{
    var params = [];
    params.push({'name':'data[config][controller]', 'value':'1'});

    $.post('/mycontroller/conview', params, onSuccess);
}

in 7 of 10 attempts it doesn't send any data to the server. I check it in firebug and it shows nothing was sent.

however, if I change it to

function test()
{
    var params = [];
    params.push({'name':'data[config][controller]', 'value':'1'});
    someglobalvariable = params;
    $.post('/mycontroller/conview', someglobalvariable, onSuccess);
}

it works without any problems.

my system is: ubuntu feisty, with firefox 2.0.06

Attachments (0)
Change History (1)

Changed September 26, 2007 10:11PM UTC by john comment:1

resolution: → worksforme
status: newclosed

I can't confirm this. Is it possible that you could provide a test case with this? Having it fail randomly makes me think that it's either a Firebug or a Server issue.