this.s.columns[iX] is undefined when trying to use Autofill

this.s.columns[iX] is undefined when trying to use Autofill

giorgio79giorgio79 Posts: 43Questions: 0Answers: 0
edited October 2010 in General
Hello,

I am getting this error message when trying to use AutoFill

this.s.columns[iX] is undefined

Here is the part of the code where it fails
/* Check that we are allowed to AutoFill this column or not */
752 var iX = this._fnTargetCoords(e.target).x;
753 if ( !this.s.columns[iX].enable )
754 {
755 return;
756 }
757

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Could you possibly link us to an example please?

    Thanks,
    Allan
  • velovelo Posts: 11Questions: 0Answers: 0
    Hi Allan, I understand that this is old code but wanted to bump it. This problem still exists it can be seen in the following example: http://datatables.net/release-datatables/extras/AutoFill/inputs.html

    Firefox:
    [quote]
    this.s.columns[iX] is undefined
    if ( !this.s.columns[iX].enable )
    [/quote]

    Chrome:
    [quote]
    Uncaught TypeError: Cannot read property 'enable' of undefined
    AutoFill._fnFillerDisplay
    AutoFill._fnInit
    L
    f.event.handle
    f.event.add.i.handle.k
    [/quote]
  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Hi velo,

    Thanks very much for flagging this up again and for the link (somewhat embarrassed that it is in one of my own examples!). I've just committed a fix for the problem to AutoFill which can be downloaded as the "nightly" from the downloads page: http://datatables.net/download/ (v1.1.2.dev).

    Regards,
    Allan
  • velovelo Posts: 11Questions: 0Answers: 0
    edited October 2011
    Wow! Allan, that was amazingly quick. Thanks!
This discussion has been closed.