Bug Tracker

Opened 10 years ago

Closed 10 years ago

#13595 closed bug (notabug)

type.indexOf is not a function (type: websocket, browser: Firefox)

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:


Using jquery-1.9.1 and either Firefox 19.0.2 or Firefox 18.0.1.

Line 2920: if ( type.indexOf(".") >= 0 ) {

When type is websocket, Firebug Console complains TypeError: type.indexOf is not a function. Communication is not successful.

Assumedly, this affects line 2926 too.

I am sorry that I can't think of a sufficiently minimal demonstration of this for jsfiddle.

Change History (4)

comment:1 Changed 10 years ago by dmethvin

Owner: set to anonymous
Status: newpending

Honest, we need a repro. You don't need to *think* of one, just reduce the code causing the error. If you can't provide one we'll just close this because it sounds like the caller is misusing the API.

comment:2 Changed 10 years ago by [email protected]

The issue is when an HTML table and td ID's characters are too long. If you use datatables with ASP.Net webforms, it is possible to have html element id's that are more than 60 characters.

I encountered the error with a 148 character Id, generated by ASP in an ASP.Net Webforms nested Repeater.

comment:3 Changed 10 years ago by [email protected]

I created a jsFiddle example to recreate this error.


Again, the error is caused by html element id's that contain "too many" characters. (a common occurrence with Microsoft's interesting implementation of ASP.Net WebForms)

I do not know what the character limit is.

comment:4 Changed 10 years ago by dmethvin

Resolution: notabug
Status: pendingclosed

The error is being thrown from within the dataTables plugin. Please contact them.

Note: See TracTickets for help on using tickets.