473,395 Members | 1,956 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,395 software developers and data experts.

Object Expected Error

I'm receiving an "Object Expected" Error (Line:28, Char:7). I'm
confused as to what is happening. I have virtually the same exact
function in a different web page and I do not receive an error with
this other page. Also, if I run this code in Fire Fox, I do not
receive any error. Is there something that I'm missing? The error is
pointing to "TextChanged();".
Here is my code below:

<!-- Generated by Webspeed: http://www.webspeed.com/,
http://www.possenet.org/ -->

<HTML>
<HEAD>
<TITLE> Maintain MPR </TITLE>
<script type="text/javascript" language="JavaScript">
<!--
function blockNumbers(e)
{
var key;
var keychar;
var reg;
if(window.event) {
// for IE, e.keyCode or window.event.keyCode can be
used
key = e.keyCode;
}
else if(e.which) {
// netscape
key = e.which;
}
else {
// no event, so pass through
return true;
}
keychar = String.fromCharCode(key);
reg = /[0-9.]/ ;
if (reg.test(keychar)) {
TextChanged();
}
return reg.test(keychar);
}
//-->
</script>
</HEAD>
<BODY>
<form name="ScheduleForm" Method="Post">
<table border="1" width="50%" cellpadding ="3" cellspacing="0">
<tr>
<td bgcolor=#"008000" width="80%"><font face="Arial"
color="#FFFFFF" size ="3"><B>Enter 4-Digit Class Code: </b></font></td>
<td bgcolor="#ffffcc" align="center"><input type="text"
width="20%" name="txtClassCode" size="5" onkeypress="return
blockNumbers(event)"/>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666666"><input
NAME="SendRequest" TYPE="Submit" value="Find Code" >&nbsp;<input
type="submit" value="Back To Policy" name="SendRequest"></td>
</tr>
</table>
</form>
</BODY>
</HTML>

Can anyone tell me what is going on?

Thanks,
CR Junk

Jul 23 '05 #1
2 2628
VK


crjunk wrote:
I'm receiving an "Object Expected" Error (Line:28, Char:7). I'm
confused as to what is happening. I have virtually the same exact
function in a different web page and I do not receive an error with
this other page. Also, if I run this code in Fire Fox, I do not
receive any error. Is there something that I'm missing? The error is
pointing to "TextChanged();".
Here is my code below:

<!-- Generated by Webspeed: http://www.webspeed.com/,
http://www.possenet.org/ -->

<HTML>
<HEAD>
<TITLE> Maintain MPR </TITLE>
<script type="text/javascript" language="JavaScript">
<!--
function blockNumbers(e)
{
var key;
var keychar;
var reg;
if(window.event) {
// for IE, e.keyCode or window.event.keyCode can be
used
key = e.keyCode;
}
else if(e.which) {
// netscape
key = e.which;
}
else {
// no event, so pass through
return true;
}
keychar = String.fromCharCode(key);
reg = /[0-9.]/ ;
if (reg.test(keychar)) {
TextChanged();
}
return reg.test(keychar);
}
//-->
</script>
</HEAD>
<BODY>
<form name="ScheduleForm" Method="Post">
<table border="1" width="50%" cellpadding ="3" cellspacing="0">
<tr>
<td bgcolor=#"008000" width="80%"><font face="Arial"
color="#FFFFFF" size ="3"><B>Enter 4-Digit Class Code: </b></font></td>
<td bgcolor="#ffffcc" align="center"><input type="text"
width="20%" name="txtClassCode" size="5" onkeypress="return
blockNumbers(event)"/>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#666666"><input
NAME="SendRequest" TYPE="Submit" value="Find Code" >&nbsp;<input
type="submit" value="Back To Policy" name="SendRequest"></td>
</tr>
</table>
</form>
</BODY>
</HTML>

Can anyone tell me what is going on?

Thanks,
CR Junk

So yes, where is the function TextChanged() you're calling? It's not on
this page. There must be a .js library you did not include or you
deleted it by mistake.

Jul 23 '05 #2
Thanks VK! I didn't realize that it got deleted.

CR Junk

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bill | last post by:
I call a function in my .js file like this: onClick="location.href='blank.html' + generateSearchStringFromForm('section')" where section is the name of my form. The function is defined as...
2
by: jsnX | last post by:
i want a function object that is a) initialized with an STL container foo b) will search foo for an object of type foo::value_type here is my code: ...
2
by: FredC | last post by:
OS Name Microsoft Windows XP Professional Version 5.1.2600 Service Pack 2 Build 2600 Total Physical Memory 1,024.00 MB MDE 2003 Version 7.1.3008 ..NET Framework 1.1 Version 1.1.4322 SP1...
11
by: westplastic | last post by:
This one is driving me insane. The script works perfect on Firefox, but Internet Explorer keeps complaining about "Error Object Expected" and stuff like that. I've run it through Firefox's Java...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
12
by: Andrew Poulos | last post by:
With the following code I can't understand why this.num keeps incrementing each time I create a new instance of Foo. For each instance I'm expecting this.num to alert as 1 but keeps incrementing. ...
4
by: loserdude84 | last post by:
Hi I keep getting the good old error 'Object Expected Error' on a site I recently built. I am really struggling with this one. Object Expected Error Line 66 <div...
1
by: JOJO123 | last post by:
I got here in search of an answer to this Javascrpt question. I upgraded jave on XP Ie 7, acrobat 5.1 and suddenly can't open any pdf files on web sites using IE. I see u guys all say, this is a...
10
RMWChaos
by: RMWChaos | last post by:
WinVista/IE7 I am getting some weird errors only in IE7, but not in FF2.0.0.8 or NN9. It even happens on this website when I click "Sign In". The error is: "A Runtime Error has occurred."...
2
by: thj | last post by:
Hi. I've got this form that I'm trying to validate: <form id="periodForm" action="" method="post"> <p> Periode: <input id="startDate" name="startDate" type="text" size="7" value="<%=...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.