473,671 Members | 2,183 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 3010


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
1549
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
5794
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
9666
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
4906
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
8867
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
9393
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
2141
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
9555
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
11872
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
3133
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
8392
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8912
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
8819
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8597
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8669
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7428
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...
0
5692
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
4222
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...
0
4403
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.