473,714 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onload error


I made the mistake of "upgrading" to IE6.0 on my windoze 98 laptop. I
really wish bill gates would die in a horribly painful accident.
Anyway, after much grief, I downloaded Opera and saw true religion.
The good in this is I discovered my web site http://www.oawater.com
has a slide show on the main page that is broke in Opera 7.11. I get
this error message. Can anyone give me some direction?
Event thread: onload
Error:
name: TypeError
message: Statement on line 56: Expression evaluated to null or
undefined and is not convertible to Object:
document.images .SlideShow.filt ers
Backtrace:
Line 56 of linked script http://www.oawater.com/styles/show.js
document.images .SlideShow.filt ers.blendTrans. Apply();
In unknown script
runSlideShow();
At unknown location
{event handler trampoline}

Thanks,

Andy

"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
Jul 20 '05 #1
2 3015


andy johnson wrote:
I made the mistake of "upgrading" to IE6.0 on my windoze 98 laptop. I
really wish bill gates would die in a horribly painful accident.
Anyway, after much grief, I downloaded Opera and saw true religion.
The good in this is I discovered my web site http://www.oawater.com
has a slide show on the main page that is broke in Opera 7.11. I get
this error message. Can anyone give me some direction?
Event thread: onload
Error:
name: TypeError
message: Statement on line 56: Expression evaluated to null or
undefined and is not convertible to Object:
document.images .SlideShow.filt ers
Backtrace:
Line 56 of linked script http://www.oawater.com/styles/show.js
document.images .SlideShow.filt ers.blendTrans. Apply();
In unknown script
runSlideShow();
At unknown location
{event handler trampoline}


Opera doesn't support any filters thus you need to check
if (document.image s.SlideShow.fil ters) {
document.images .SlideShow.filt ers.blendTrans. Apply();
}
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
In article <kv************ *************** *****@4ax.com>, andy johnson
<an************ @chicagonet.net > writes:
Can anyone give me some direction?
Event thread: onload
Error:
name: TypeError
message: Statement on line 56: Expression evaluated to null or
undefined and is not convertible to Object:
document.image s.SlideShow.fil ters
Backtrace:
Line 56 of linked script http://www.oawater.com/styles/show.js
document.images .SlideShow.filt ers.blendTrans. Apply();
In unknown script
runSlideShow();
At unknown location
{event handler trampoline}

Thanks,

Andy


filters and the such are pretty much IE only. As such, its not going to work in
Opera. Not unless you backtrack out of it and use object detection to make sure
the browser supports it.

http://jibbering.com/faq/#FAQ4_26

Use object detection, not browser detection though.
--
Randy
Jul 20 '05 #3

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

Similar topics

0
1552
by: Damjan | last post by:
Hi All, I have a simple problem. I have XSL page that translates XML into HTML. It has a form on it. I want it to be loaded, focused on an intput text field and then when user presses enter to submit the form. This is possible and achiavable when using HTML. You put the onload="document.form.field.focus();" into <body> tag.
1
5799
by: Robert Oschler | last post by:
I have an frame in one of my documents (not a frameset document). The top level document has an "onload" handler in the BODY tag. I have found that if the frame is unable to navigate to the document it desires, the top level document "onload" handler does not fire, and therefore important Javascript function I need called is not called. The frame document's URL belongs to a service which is not always available, and when it isn't...
5
9670
by: Mike Hnatt | last post by:
I'd like the focus to be on "mycontrol" when the page is first loaded. I'm getting an undefined error and am assuming that I can't do this in the body ONLOAD event because the control is not yet rendered. (but I thought this would still work) <body onload="mycontrol.focus()"> Also, is there a way to not produce an error if that control does not exist? Thanks!
4
4915
by: Pai | last post by:
hello there, I am trying to rersize the window it works find in IE but doea not work with mozilla window.attachEvent(onload,MWSOnLoad); window.onload = function (MWSOnLoad) { alert('hello'); window.resizeTo(810,750); top.outerWidth=810;
7
8872
by: Tery Griffin | last post by:
Hi all, I¹ve been away from Javascript for awhile and am rusty, but this is too simple not to work! I¹m on a Mac, and usually use the Safari browser. I have a very basic web page in a frame. All it does is trigger a Perl script. Works great in Safari, does not work in IE or Netscape. In IE, the onLoad just doesn¹t seem to fire. I¹ve got to be looking right at the reason, but I¹m not seeing it. Help? (The live frameset is at
10
9401
by: berg | last post by:
I'm trying to use the onload event to load a series of urls. What I find is that the onload function is only called one time no matter how large the array. Here is the onload function. var next_win = 0; var win = window.open("", "", ""); function nextWin() { if (next_win < urls.length) { win.onload = nextWin;
3
2145
by: vezquex | last post by:
What I want is an element with a shifting background image: <html><head> <script type="text/javascript"> var x = 0 var y = 0 inc = 4 function bgWander(el){ x = x + Math.round(2*inc*Math.random())-inc y = y + Math.round(2*inc*Math.random())-inc
6
9560
by: pronerd | last post by:
Hi, I am trying to dynamically set an event handler across frames. I have no problems setting properties across frames doing something like parent.ToolMenuFrame.location.href = 'http://www.blah blah blah.com'; But when I try to set an event handler this way, as shown below, it fails. parent.ToolMenuFrame.window.document.body.onload = "alert('On Load Trigger Fired!!');"; parent.ToolMenuFrame.document.body.onload = "alert('On Load...
20
11895
by: Mark Anderson | last post by:
Hi, I have this in an external JS library: ///////////////////////// function addMyEvent(){ var obj; if(document.attachEvent) { obj = document.getElementsByTagName('img'); for (i=0;i<obj.length;i++) { obj.attachEvent('ondrag', noDrag); }
6
3138
by: adamscybot | last post by:
Here is the site in question: http://www.sws.vxcomputers.com/h2k/ Basically, on the left, you'll see a roster (them images) and you have to click the "Counter-Strike" link for it to load the images/names. However, I overcome this by executing what is usually the OnClick event on the OnLoad event instead. This works great in firefox - meaning there is no need to click the link to see the proper images and not the filler images - it just...
0
8801
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9314
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7953
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5947
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4464
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3158
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2520
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2110
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.