Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1724 closed bug (worksforme)

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

Change History (1)

comment:1 Changed 13 years ago by john

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.

Note: See TracTickets for help on using tickets.