list.js icon indicating copy to clipboard operation
list.js copied to clipboard

ajax load list.js

Open da1nonly opened this issue 12 years ago • 3 comments

hi i am trying use list on ajax pages, i have managed to get it to work but it gives me this error on pages that does not have the list class, any help thanks

error: Cannot read property 'childNodes' of undefined

da1nonly avatar Apr 06 '14 17:04 da1nonly

Are you doing indexAsync option? I modified line 1396 of list.js https://github.com/javve/list.js/blob/master/dist/list.js to say "parseAsync(itemElements, valueNames)" instead of "init.items.indexAsync(itemElements, valueNames);"

curseagain avatar Jun 03 '14 20:06 curseagain

yeah the issue I was facing is i load pages via ajax so on some pages list.js was not required so it would give a error message On 3 Jun 2014 21:37, "Rebecca" [email protected] wrote:

Are you doing indexAsync option? I modified line 1396 of list.js https://github.com/javve/list.js/blob/master/dist/list.js to say "parseAsync(itemElements, valueNames)" instead of "init.items.indexAsync(itemElements, valueNames);"

— Reply to this email directly or view it on GitHub https://github.com/javve/list.js/issues/230#issuecomment-45017001.

da1nonly avatar Jun 03 '14 20:06 da1nonly

Sounds like an implementation problem to me. I'll close this issue.

javve avatar Feb 26 '16 20:02 javve