File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Null or not an object Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Null or not an object Error" Watch "Null or not an object Error" New topic
Author

Null or not an object Error

Sree Mami
Ranch Hand

Joined: Jul 13, 2006
Posts: 75
Hi all

Can anyone guide me whenever I am opening a web page I am getting error: Null or not an object with some form elements, which worked fine previously.

I am stuck with this problem as my web page has become non-functional with these script errors.

Please help me out...


Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well you are probably looking or calling something that is not fully loaded yet.

Eric
Sree Mami
Ranch Hand

Joined: Jul 13, 2006
Posts: 75
Hi Eric

I looked at my javascript coding and removed all the function which I wrote except the one which will be called at Page Loading. In this function I am setting current date into a text field. When I am printing alert it's working properly but when I am setting this value into text field then I am getting problem of document.formname.textfield is null or not an object.

When I click on that TextField it will call NewCal function of datetimepicker tool and will open a popup window of calender. Which is working properly. But the only problem is with setting default current date in that text field which is bothering me a lot. When I tried this in another page it is working properly. Though I removed all function from my page it is still showing error on Page Load... document.formname.textfield is null or not an object..

One more thing what I noticed is when I removed entire JSP code from the page I am able to set the current date in the textfield through the function at page load, but still I am having problem with Radio Button's length property. I am getting error "length" is null or not an object.

Please help out me..
[ September 07, 2006: Message edited by: Sree Mami ]
 
GeeCON Prague 2014
 
subject: Null or not an object Error