Jump to content

[SOLVED] Ajax Request Retrieve Multiple Data


Lautarox

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.