473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What does "member not found" error mean?

110 100+
I want input objects to have a light yellow background when they have focus. Here's how I call my function:

Expand|Select|Wrap|Line Numbers
  1. input name="monthsVacant" id="monthsVacant" disabled="disabled" onFocus="yellowOn('monthsVacant')"
  2.  
And here's my function.

Expand|Select|Wrap|Line Numbers
  1. function yellowOn(vObject){
  2.  var vObject; //object being highlighted
  3.  document.getElementById(vObject).style="background-color:#FFFFCC";
  4.  
When the object gets focus I get an error message that says "member not found". What is it talking about? And how can I get this to work?
Jan 15 '09 #1
3 18216
Dormilich
8,658 Expert Mod 8TB
you are overwriting the function's argument, omit line #2. further, the background colour in JS can be accessed by style.backgroundColor.

nevertheless, a much easier approach would be using the this keyword:
Expand|Select|Wrap|Line Numbers
  1. function myfunction()
  2. {
  3.   this.style.color = "red";
  4. }
Jan 15 '09 #2
andersond
110 100+
Expand|Select|Wrap|Line Numbers
  1. function yellowOn(vObject){ 
  2. document.getElementById(vObject).style="background-color:#FFFFCC"; 
  3.  
which results in "member not found"

and

Expand|Select|Wrap|Line Numbers
  1. function yellowOn(vObject){ 
  2. document.getElementById(vObject).style.backgroundcolor="#FFFFCC"; 
  3.  
which results in nothing at all
Jan 15 '09 #3
Dormilich
8,658 Expert Mod 8TB
@andersond
JS is case sensitive, the property is called "backgroundColor"
Jan 16 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ari Royce Hidayat | last post by:
Dear ALL, Is there some one ever faces this problem? And fix it? The scenario is: There's an html page that hosts a .net object (using object tag), and this page opens the second html page...
8
by: Matt | last post by:
I am migrating from NT 4.0 (IIS 4) to 2003 Server (IIS 6). Our Intranet has numerous applications that utilize the FileSystemObject (FSO) and each one is returning a "Path not found." error. These...
4
by: mattsthompson | last post by:
Im writing a DLL that extends IHttpHandler to intercept requests for a certain file extension and deliver watermarked images. I'm using LeadTools' .NET framework for the image manipulation and it...
1
by: Kirk | last post by:
Hello, I have a very simple application that I am trying to publish to a Windows 2005 server. During my testing, I sucessfully published my application using ClickOnce to my local IIS. I...
2
by: johkar | last post by:
Why does if(win==null || win.closed) return true after one PDF is open. Something very wierd going on with IE 6. I also get a member not found error if a child window is already open. This script...
6
Tarantulus
by: Tarantulus | last post by:
if("dept"=='dept'){ document.getElementById('add').style.display='none'; }; <DIV id="add"> <some html here..> </DIV>
1
by: =?Utf-8?B?UGFsbHZp?= | last post by:
Hello friends, I am facing this problem("MEMBER NOT FOUND" error HRESULT : 0x80020003 (DISP_E_MEMBERNOTFOUND) ) in Visual Basic 2005 (i.e. VB .NET) for the fourth statement(ObjWb =...
8
by: webgenius | last post by:
Whenever I click the SUBMIT button in my HTML page, I get the "Object not found!" error. It was working fine yesterday. This error started to occur after I installed Codelobster and made some changes...
3
by: masterofzen | last post by:
I've been playing around with this for a while. I bet the answer is pretty obvious, but I'm just not seeing it. I'm also reasonably certain I've run into this problem before. I'm trying to...
3
maliksleo
by: maliksleo | last post by:
hi all i m having this "The resource cannot be found." error. I applied the url rewriting on my project every page is being browsed very well but i am getting the above error an some pages i dont...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.