corbin Posted January 16, 2009 Share Posted January 16, 2009 Hrmmm it seems that there are multiple name scopes in an HTML doc, so maybe it gets them from all scopes. Otherwise, I'm wrong ;p. Hrmmmmm.... The name tag would have to use to me if it weren't supposed to be unique, but hey, I guess that's what ID is for. Anyway, when ever code stops freezing, there is always a reason why. If it freezes during the call to insertBefore, insertBefore is failing for some reason. It's either not a method (because insertHere is not an object) or the parameters are incorrect. I would guess var insertHere = document.getElementsByName('comment_add')[0]; isn't working for some reason. Try doing: alert(insertHere) and the output should be object or element. Link to comment https://forums.phpfreaks.com/topic/140303-solved-ajax-request-retrieve-multiple-data/page/2/#findComment-738789 Share on other sites More sharing options...
Lautarox Posted January 17, 2009 Author Share Posted January 17, 2009 I've made it work, but there was a problem, I don't know why it took all the comments and added it again, well.. I just used the innerHTML property and made it work, thanks! Link to comment https://forums.phpfreaks.com/topic/140303-solved-ajax-request-retrieve-multiple-data/page/2/#findComment-738805 Share on other sites More sharing options...
corbin Posted January 17, 2009 Share Posted January 17, 2009 No prob ;p. Link to comment https://forums.phpfreaks.com/topic/140303-solved-ajax-request-retrieve-multiple-data/page/2/#findComment-738822 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.