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

can't find error

http://geocities.com/r_bullis/test4.html

Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.

Otherwise, the page actually validates.

If you can figure out the error, let me know please.

Jul 23 '05 #1
8 2100
Richard wrote:
http://geocities.com/r_bullis/test4.html

Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.

Otherwise, the page actually validates.

If you can figure out the error, let me know please.


Mozilla:

Error: dw_scrollObj is not defined
Source File: http://geocities.com/r_bullis/js/dw_hoverscroll.js
Line: 12

Fix that error first, then follow the errors that Mozilla reports. Then
you can test it in IE. IE is well known to be the worse possible browser
to test pages in.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

"Richard" <An*******@127.001> wrote in message
news:cq*********@news3.newsguy.com...
http://geocities.com/r_bullis/test4.html

Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.

Otherwise, the page actually validates.

If you can figure out the error, let me know please.

In IE 6 the page renders nearly correct.
There is a gap between the menu sidebar and the scrolling table.
In Firefox, the page renders as it should.
In Netscape 7.2 the layers don't even show up in the table, but show up
elsewhere as they should.

Jul 23 '05 #3
Hi,

Randy Webb wrote:
Richard wrote:
http://geocities.com/r_bullis/test4.html

Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.

Otherwise, the page actually validates.

If you can figure out the error, let me know please.

Mozilla:

Error: dw_scrollObj is not defined
Source File: http://geocities.com/r_bullis/js/dw_hoverscroll.js
Line: 12

Fix that error first, then follow the errors that Mozilla reports. Then
you can test it in IE. IE is well known to be the worse possible browser
to test pages in.


Totally true, except if you have Visual Studio .NET installed. Then,
when an error occurs, you have the option to open the page in Studio's
script debugger, which is pretty good. I used to like only Venkman until
now, but after having spent almost one year programming JavaScript for
IE, I got to say that it's handy to have both client-side and
server-side debugged in the same debugger.

Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jul 23 '05 #4

"Randy Webb" <Hi************@aol.com> wrote in message
news:T-********************@comcast.com...
Richard wrote:
http://geocities.com/r_bullis/test4.html

Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.

Otherwise, the page actually validates.

If you can figure out the error, let me know please.


Mozilla:

Error: dw_scrollObj is not defined
Source File: http://geocities.com/r_bullis/js/dw_hoverscroll.js
Line: 12

Fix that error first, then follow the errors that Mozilla reports. Then
you can test it in IE. IE is well known to be the worse possible browser
to test pages in.


Thanks. I'll look into it. Maybe the file got corrupted or something.
But the source file is online. I double checked to make sure.
Works fine in firefox.
Jul 23 '05 #5
Richard schrieb:
http://geocities.com/r_bullis/test4.html Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.


OK. I told you bullshit. Remove line 40. The problem is that the original
program shows the content of "lyr1", while you want to hide it. So you have to
hide it again at the end of the initial function "initScrollLayer()". Insert a
new line into this function between "dw_scrollObj..." and "}" (i.e. create a new
line 38):

document.getElementById('lyr1').style.visibility = 'hidden';

viele grüße
ralph

Jul 23 '05 #6
Richard wrote:
http://geocities.com/r_bullis/test4.html Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains. Otherwise, the page actually validates. If you can figure out the error, let me know please.

The firefox js console reports:
error: lyr has no properties.

lyr is the variable used to show which "layer" is being applied.

Don't understand this at all.

Jul 23 '05 #7
Ralph 'rkhb' Bauer wrote:
Richard schrieb:
http://geocities.com/r_bullis/test4.html Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.
OK. I told you bullshit. Remove line 40. The problem is that the original
program shows the content of "lyr1", while you want to hide it. So you
have to hide it again at the end of the initial function
"initScrollLayer()". Insert a new line into this function between
"dw_scrollObj..." and "}" (i.e. create a new line 38): document.getElementById('lyr1').style.visibility = 'hidden'; viele grüße
ralph

The only other thing that MIGHT be causing the error is that I have the
layer links outside of a table.
Because when inside of a table, I get no errors.
Don't know why, But if it has to be that way, so be it.


Jul 23 '05 #8
Hi,

Richard wrote:
Richard wrote:

http://geocities.com/r_bullis/test4.html


Was finally able to dress up the coding the way I like it.
But my editor keeps reporting an error on the page.
"line 42....object required".
Regardless of what line 42 contains.


Otherwise, the page actually validates.


If you can figure out the error, let me know please.


The firefox js console reports:
error: lyr has no properties.

lyr is the variable used to show which "layer" is being applied.

Don't understand this at all.


This usually means that the variable lyr was not initialized (that it is
"undefined" or "null". It is empty, has no properties. It's the same
meaning that "object required", only expressed a bit differently.

You should debug your code, observe this lyr variable, and find out why
it's not initialized.

Typically, this could happen if you do something like:

var lyr = document.getElementById( "someId" );

and that no element in the document has this ID. Then the variable would
be null.

Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Jul 23 '05 #9

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

Similar topics

5
by: Lee | last post by:
The following code generates the error "...not all code paths return a value" but I can't find the problem. I have tried putting "return;" or "return 0;" just after the close of the "if" statement...
7
by: a s i l b a . p t | last post by:
Can someone please explain why the following code raises error 2450?... Note: frmTest is a simple form with code behind form so it can be instantiated through the form's class module. Public...
7
by: Yongsub Eric Shin | last post by:
Hi. I'm just a beginner in ASP.Net. I started writing codes and I keep on getting this Runtime Error page, where it says "Description: An application error occurred on the server. The current...
1
by: Sachin | last post by:
Hi, I am debugging an application which is written using ASP runs on a server in the intranet. In its home page there is a horizontal munu bar and when the home page is loading or navigate to a...
3
by: lorirobn | last post by:
Hi, Does anyone have any suggestions for this error... Everything on my db was working fine (famous last words, I know). And all of a sudden yesterday I started having an error regarding...
0
by: kath | last post by:
Hi.... XLRDError: Can't find workbook in OLE2 compound document What does this error means? When I try to open some excel files using XLRD, I encounter this error. Not with every excel, but...
1
by: marcnz | last post by:
I have been charged of creating a coldfusion web site for our company. Our database has a ms sql 2005 backend and ms access frontend. Almost all tables are linked tables with the SQL database,...
4
kcdoell
by: kcdoell | last post by:
Hello: I have the following afterupdate event: Private Sub GWP_AfterUpdate() 'Updates the Total calculation in the control "SumGWP" on the quick reference 'table that is located on the form...
3
jhardman
by: jhardman | last post by:
I was in the middle of troubleshooting a different problem when my web service stopped working with a very cryptic error message: "specified cast is not valid" The only location info is that the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.