Monday, 15 June 2015

slidedown - jquery: manipulating divs and adding effects causes endless loop of uncaught TypeErrors -



slidedown - jquery: manipulating divs and adding effects causes endless loop of uncaught TypeErrors -

i trying perform 3 tasks in sequence:

a) load html-content via ajax hidden div.

b) traverse content , insert elements existing divs.

c) add together slidedown animation each newly appended div.

when this, endless loop of errors

uncaught typeerror: property 'undefined' of object # not function

here code:

for(var step=1;step<=total_steps;step++) { add_target=$('#content'); add_entry=$('#response_hidden').find('.slide :eq('+ step +')'); add_entry.hide(); add_entry.prependto(add_target); add_entry.slidedown("slow"); }

any clues? using ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js

try this

add_entry=$('#response_hidden').find('.slide:eq('+ step +')'); -----^--- have space here

jquery slidedown dom-manipulation

No comments:

Post a Comment