Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to get rid of 'undefined' is null or not an object error?

Posted on 2008-10-08
2
477 Views
Last Modified: 2008-10-08
I currently have a page with 2 radio buttons to determine if the user is a returning customer or a new customer.  When the page loads it displays the radio buttons with the returning customer selected.  Below it is a login control that is contained in a separate user control.  If the user wishes to then login the page works fine but if they try to select the "new customer" radio button it does nothing and comes up with the following error:  'undefined' is null or not an object.  What should happen when the radio button is clicked is that the login control should be hidden and panel containing the new user fields should appear.
0
Comment
Question by:ciphron
2 Comments
 
LVL 22

Accepted Solution

by:
prairiedog earned 500 total points
ID: 22669684
It seems that you use JavaScript to find the login control and hide it if user selects "new customer". Check your JavaScript to make sure it indeed finds the control before accessing any property/style of the control.
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22670178
can we have a look at your javascript code and the server side code from where you configure your javascript events
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question