Click to See Complete Forum and Search --> : One more simple answer for cookies


JacenSkye
09-17-2004, 10:05 AM
When I use the following cookie "ID Tracker" script on my webpage here:

http://www.cellarboy.com/members.htm

I get the following error:

'document.id.idform' is null or not an object.

I think it is because I am using a FrontPage form handler, because it works when the id field is NOT in the form, but is a form by itself.

If you or anyone else could elighten me on how to code around FrontPage in this particular circumstance. I'm new to javascript, so don't be too cryptic. Hehe.

I'm so thoroughly please that you are helping me.

Jacen Elijah Skye

HaganeNoKokoro
09-17-2004, 10:25 AM
document.idform.id is giving errors because you don't have an element named idform anywhere in your document. Your form is named "FrontPage_Form1" so maybe it will work if you use document.FrontPage_Form1.id

PS You may want to change the "id" to something else, since what might happen is it will try to get the id of the form element instead of a reference to the input.