Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Null or not an object Error

 
Sree Mami
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you are probably looking or calling something that is not fully loaded yet.

Eric
 
Sree Mami
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic