View Single Post
Old 08-18-2008, 01:32 AM   #3 (permalink)
Boogle
v7n Mentor
 
Boogle's Avatar
 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
Hey, you are using the insertBefore method wrong, this is why your argument is invalid:

see here http://groups.google.com/group/comp....9ba423f5adf39c

Code:
var errorlist = document.createElement("UL"); errorlist.setAttribute("id","errormessages"); var targetelement = document.forms["adduserform"]; if (targetelement != null) { targetelement.parentNode.insertBefore(newA, refObj); }
You always need to call the DOM methods insertBefore and appendChild on
the parent node you want to append to or insert into.

HTH's

Boog's
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline   Reply With Quote