Skip to main content

Bug Tracker

Side navigation

#13595 closed bug (notabug)

Opened March 11, 2013 06:59PM UTC

Closed March 14, 2013 08:23PM UTC

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:
Description

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.

Attachments (0)
Change History (4)

Changed March 11, 2013 07:09PM UTC by dmethvin comment:1

owner: → 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.

Changed March 14, 2013 08:10PM UTC by bryanhepburn@boisestate.edu comment:2

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.

Changed March 14, 2013 08:14PM UTC by bryanhepburn@boisestate.edu comment:3

I created a jsFiddle example to recreate this error.

http://jsfiddle.net/vqhYG/20/

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.

Changed March 14, 2013 08:23PM UTC by dmethvin comment:4

resolution: → notabug
status: pendingclosed

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