preSubmit then submitSuccess events fired repeatedly

preSubmit then submitSuccess events fired repeatedly

dynasoftdynasoft Posts: 422Questions: 67Answers: 3

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem: Has anyone had this problem? It's completely random, sometimes the event gets fired once, other times 4 or 5 or more times. The only thing I can think of is I iterate through the data under preSubmit before it gets sent under via this:

$.each(data.data, function (key, values) {
....
});

Just asking if anyone might have seen this and if they know what to look out for there. Thanks.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583
    Answer ✓

    I think it must be something to do with that loop. Could you update this example here, please, hopefully we'll be able to see the issue there,

    Colin

  • dynasoftdynasoft Posts: 422Questions: 67Answers: 3

    Thanks. I have changed my code so it's simplified and all is well.

This discussion has been closed.