This answer might raise more questions than a solution?You are right, but without information (ajax mode used, js library used) Nobody can’t give a correct answer. Unfortunately conflicts between js library are possible. This point has been corrected for jquery with the next release 1.9.0
(been holidaying).