jQuery load method doesn't work -


can me guys? script doesn't work properly.

$("#submit").click(function(e) { /* ajax stuff */         else if(data=="login"){                 $("#login").remove() // #login first , 1 direct child of body                 $("body").load("includes/adminpanel.php")         } }); 

so, ajax checks username , password , if it's correct script should remove #login (it works) , loads new content contained in "adminpanel.php". script doing same thing every time: #login div disappears, "adminpanel.php" doesn't show , browser acts i'm running infinite loop. (sorry english!)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -