pklauzinski / jscroll

An infinite scrolling plugin for jQuery.

Home Page:http://jscroll.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use of contentSelector parameter causes loaded scripts to not be executed.

neobonzi opened this issue · comments

When using the "contentSelector" parameter, jQuery's "load()" method is used with a suffixed selector expression which causes script tags to be stripped prior to dom being updated. This causes all loaded scripts to not be executed.

See "Script Execution" under http://api.jquery.com/load/

Executing scripts from the loaded HTML does not fall within the scope of jScroll. If you need to execute javascript upon loading the next page, use the callback option.