PDA

View Full Version : Live Search Ajax


jstestpager92
03-16-2008, 07:11 PM
here are all 4 files I am using something is not working but I cannot figure out what:
http://www.freewebs.com/jstestpage/ajax.htm
http://www.freewebs.com/jstestpage/ajax.js
http://www.freewebs.com/jstestpage/search.js
http://www.freewebs.com/jstestpage/search.php
here is the error message I get in firefox:
Error: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.removeChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: http://www.freewebs.com/jstestpage/search.js :: DisplayResults :: line 23" data: no]
Source File: http://www.freewebs.com/jstestpage/search.js
Line: 23

jstestpager92
03-16-2008, 07:49 PM
It seemed to be a problem with uploading php to freewebs, but it works here::)
http://jstestpager.100webspace.net/ajax.html

jstestpager92
03-16-2008, 07:55 PM
do you think there is anyway to change this to use links????

liorean
03-16-2008, 08:27 PM
The error is in that you're sending a value of null or undefined to removeChild. You must make sure you are actually sending a node.

PS: A while back I filed a bug about replacing this error message with something more appropriate. Nothing has happened so far, though. See Bug 362571 – Some DOM methods throw inappropriate exceptions when passed null or undefined (NS_ERROR_INVALID_POINTER) (https://bugzilla.mozilla.org/show_bug.cgi?id=362571).

Dr.Sergeus
05-07-2008, 10:30 PM
do you think there is anyway to change this to use links????

Join! It may do so, that would be used links?