jQuery: The Write Less, Do More JavaScript Library

JSF ids produce error in multi file upload

Project:Multiple File Upload
Version:1.2.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I am using:
- JQuery 1.2.6 (latest)
- MultiFile 1.2.9 (latest)

When using JSF which its structured ids (id1:id2:id3) file multi upload produces the javascript error "fn is not a function" in jquery.js line 1767 which is part of the filter function. The problem seems to be the colons as seperator. When removing them everything works fine. With them the jQuery.grep() is called more than once until finally the callback function ("fn") is undefined resulting in the error.

I have appended a reproducer (html file + both scripts). As it is it produces the error above, when changing the id "form:j_id16:upl_btn_fileselect" from the file input to anything without colons it works. Hoping that I am not mistaken.

Greetz
Christian

AttachmentSize
Reproducer.zip36.07 KB