473,387 Members | 1,766 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.

'object doesn't support this property or method'

hello

i have a problem when it comes to running my intranet site.. it gives
msgbox in internet explorer saying 'object doesn't support this
property or method' and line 260.. I identified line 260 below...

I dont know javascript very well; but I would really appreciate some
help with this.

I believe that this is handling keystrokes- and it does let me press
CTRL + N; but it's just a little bit confusing..

I didn't CHANGE this code; it's just frustrating because the website
throws an error and now it wont do anything else.

also.. is there something similiar to 'on error resume next' for the
javascript world?
thanks

function SetChangedFromInput(bFlag)
{
var k = window.event.keyCode;
var arKodes;//Codes of valid keys
var bReturn = true;
arKodes =
Array(8,32,46,106,107,109,110,111,186,187,188,189, 190,191,192,219,220,221,222);
if ((k >= 65 && k <= 90) ||
(k >= 48 && k <= 57) ||
(k >= 96 && k <= 105))
{
bReturn = false;
}
for (var i in arKodes)
{
if (k == arKodes[i])
bReturn = false
}

//Handled Ctrl-N pressing
if ((k == 110 || k == 78) && event.ctrlKey == true)
LINE260- return;

if (!bReturn)
{
SetChanged(bFlag);
}
return window.event;

}

Oct 25 '06 #1
1 2445
GLC

pu********@hotmail.com wrote:
hello

i have a problem when it comes to running my intranet site.. it gives
msgbox in internet explorer saying 'object doesn't support this
property or method' and line 260.. I identified line 260 below...
IE does not report line numbers correctly and is usually one line off.
Though, I have seen it be further off, and I can't remember if it is
one more or one less.
>
also.. is there something similiar to 'on error resume next' for the
javascript world?
thanks
Javascript does have exception handling.
Look up try and catch.
>
//Handled Ctrl-N pressing
if ((k == 110 || k == 78) && event.ctrlKey == true)
LINE260- return;
try{
if ((k == 110 || k == 78) && event.ctrlKey == true)
return;
}
catch(e){
alert("An error occured!");
}

Oct 25 '06 #2

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

Similar topics

3
by: Matt | last post by:
I tried to display all html control types in the form. But it has run time error "object doesn't support this property or method" on document.write(obj.type); Even I do document.write('hello...
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
3
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select...
54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
0
by: fniles | last post by:
I created a CAB file for a 3rd party control (StockChartX) it using CABARC.exe that comes from Microsoft SDK. In the CAB file I included the StockChartX.ocx and StockChartX.INF. Then, I signed the...
7
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
8
by: Kevin Blount | last post by:
I'm tyring to access an object created by using a method from a third party API. The documentation tells me what object should be return, and the properties of that object, but when I try and...
0
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
9
by: Peter Webb | last post by:
I want to animate one object moving in front of another. I cannot re-render the background as the object moves, as it would be extremely time consuming. This is what I would like to do. I draw...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.