Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Null or not an object Error

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...


 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic