473,804 Members | 3,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript object expected error

I had this web site working without problems a day ago. I went to add
some images on one of the pages in my site and now the index.html page
is popping up error messages when ever the page loads in IR6 ! If
anyone can asssit me on this i would appreciate it . the URL is :
terroratthewest wood.com, i havent tried it in netscape but in opera it
doesnt give me an erorr box, its just that the script on the images
page ("URL/gallery.html") doesnt work at all.....i am a script
beginner so excuse me if this is a dumb question....
Jul 23 '05 #1
9 4228
"matt" <me**@buckeye-express.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com
I had this web site working without problems a day ago. I went to add
some images on one of the pages in my site and now the index.html page
is popping up error messages when ever the page loads in IR6 ! If
anyone can asssit me on this i would appreciate it . the URL is :
terroratthewest wood.com, i havent tried it in netscape but in opera it
doesnt give me an erorr box, its just that the script on the images
page ("URL/gallery.html") doesnt work at all.....i am a script
beginner so excuse me if this is a dumb question....


Try downloading Opera (www.opera.com) as it gives more meaningful error
messages, if you enable the script error window.

<BODY onLoad="preload Images();MM_pre loadImages(some imageshere)"

I can't see preloadImages() defined anywhere, only MM_preloadImage s()
Jul 23 '05 #2

"matt" <me**@buckeye-express.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I had this web site working without problems a day ago. I went to add
some images on one of the pages in my site and now the index.html page
is popping up error messages when ever the page loads in IR6 ! If
anyone can asssit me on this i would appreciate it . the URL is :
terroratthewest wood.com, i havent tried it in netscape but in opera it
doesnt give me an erorr box, its just that the script on the images
page ("URL/gallery.html") doesnt work at all.....i am a script
beginner so excuse me if this is a dumb question....


I just loooked at this with IE6, FF0.8 and Opera7.5. I didnt get any errors.
I looked at the home page, went through the gallery and a couple of other
pages.

Please supply the exact URL of the troublesome page and include the error
messages that you get.

Thanks

Deryck
Jul 23 '05 #3
On Sun, 19 Sep 2004 14:38:52 +0100, PDannyD
<da*****@REMOVE THISBITscenicpl ace.freeserve.c o.uk> wrote:
"matt" <me**@buckeye-express.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com
[snip]
the URL is : terroratthewest wood.com,
It's better to provide URLs that people can use, rather than ones they
have to edit themselves:

<URL:http://www.terroratthe westwood.com/>

The same goes for the other link:

<URL:http://www.terroratthe westwood.com/gallery.html>
i havent tried it in netscape but in opera it
doesnt give me an erorr box,
Opera won't unless you explicitly tell it to by modifying your preferences
(Multimedia > JavaScript options... > Open JavaScript console on error).
Alternatively, you can open the console manually from the main menu: Tools Advanced > JavaScript console.
Opera does show an error. PDannyD's assessment is correct - there is no
preloadImages function defined on your page.
its just that the script on the images
page ("URL/gallery.html") doesnt work at all [...]


A couple of quick comments about that page:

1) It's not a good idea to modify the cursor to something the user will be
unfamiliar with. Users know that the pointer (hand) cursor is used with
links, so leave it that way.
2) Don't use the language attribute in SCRIPT elements. You don't want
user agents to actually respect those values as the language rules have
changed in different versions and can lead to some unexpected results.
Instead, use the required type attribute:

<script type="text/javascript">

3) You don't need to hide scripts with SGML comments any more. The
technique was needed around five years ago when some browsers didn't know
what to do with a SCRIPT element, but now all browsers in use do
understand the element (even if they do nothing with contents).
Try downloading Opera (www.opera.com) as it gives more meaningful error
messages, if you enable the script error window.


Read the message again a little more closely; the OP used Opera.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #4
"Michael Winter" <M.******@bluey onder.co.invali d> wrote in message
news:opsek0j5si x13kvk@atlantis
On Sun, 19 Sep 2004 14:38:52 +0100, PDannyD
<da*****@REMOVE THISBITscenicpl ace.freeserve.c o.uk> wrote:
"matt" <me**@buckeye-express.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com


[snip]


<much snippage>
Try downloading Opera (www.opera.com) as it gives more meaningful
error messages, if you enable the script error window.


Read the message again a little more closely; the OP used Opera.


Doh!
Jul 23 '05 #5
"Deryck" <de****@REMOVEl onghope.co.uk> wrote in message news:<2r******* ******@uni-berlin.de>...
"matt" <me**@buckeye-express.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I had this web site working without problems a day ago. I went to add
some images on one of the pages in my site and now the index.html page
is popping up error messages when ever the page loads in IR6 ! If
anyone can asssit me on this i would appreciate it . the URL is :
terroratthewest wood.com, i havent tried it in netscape but in opera it
doesnt give me an erorr box, its just that the script on the images
page ("URL/gallery.html") doesnt work at all.....i am a script
beginner so excuse me if this is a dumb question....


I just loooked at this with IE6, FF0.8 and Opera7.5. I didnt get any errors.
I looked at the home page, went through the gallery and a couple of other
pages.

Please supply the exact URL of the troublesome page and include the error
messages that you get.

Thanks

Deryck


thanks for looking at this....the exact URL is
www.terroratthewestwood.com...the error message pops up immediately
after the background and navigation loads....(in IE6)...the first
error i get is this:

a Runtime error has occurred Do you Wish to debug?
Line 10
Object Expected

Then when you click on GALLERY, i get the same error but the line
number is 61

however, it is not happening on ALL machines. i am using one with IR6
and it isnt happening, my buddy is using another machine, and it is
happening. Both are WinXP Pro with IE6 installed so i dont knows what
the deal is...Opera is running fine on both of them....looks like an
IE6 setting or a windows update problem maybe?.....
Jul 23 '05 #6

"matt" <me**@buckeye-express.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
thanks for looking at this....
No problem, its more interesting than the thing I'm supposed to be working
on :)
the exact URL is
www.terroratthewestwood.com...the error message pops up immediately
after the background and navigation loads....(in IE6)...the first
error i get is this:

a Runtime error has occurred Do you Wish to debug?
Line 10
Object Expected

OK, I definitely didnt get that on any of the 3 browsers that I have
installed.
Then when you click on GALLERY, i get the same error but the line
number is 61

Ditto.
however, it is not happening on ALL machines.
Groan. Dont you hate it when that happens?
i am using one with IR6
and it isnt happening, my buddy is using another machine, and it is
happening. Both are WinXP Pro with IE6 installed so i dont knows what
the deal is...
OK, FWIW I'm using XP with SP2.
Opera is running fine on both of them....looks like an
IE6 setting or a windows update problem maybe?.....


I'd guess the latter. Maybe your friend can install any necessary updates
from the Microsoft site and try again?
Perhaps you can test the site on other machines too to see if a pattern
emerges on all the troublesome machines?

FWIW2, your HTML causes the validator
(http://validator.w3.org/check?verbos...ewestwood.com/)
to complain a great deal - sorry, youve got some work ahead of you if you
want compliance- it's unlikely that the HTML is causing you the problems
that you refer to but it certainly wouldnt hurt to fix them either (post on
alt.html or mail me privately if you need any help with that). You wrote
this with Dreamweaver, yes?

Sorry I cant find a silver bullet for you,
Deryck
Jul 23 '05 #7
Lee
matt said:

I had this web site working without problems a day ago. I went to add
some images on one of the pages in my site and now the index.html page
is popping up error messages when ever the page loads in IR6 ! If
anyone can asssit me on this i would appreciate it . the URL is :
terroratthewes twood.com, i havent tried it in netscape but in opera it
doesnt give me an erorr box, its just that the script on the images
page ("URL/gallery.html") doesnt work at all.....i am a script
beginner so excuse me if this is a dumb question....


As somebody already pointed out, it's complaining because
you refer to "preloadImages( )" in the onload handler of your
body tag. You haven't defined a function by that name.

Jul 23 '05 #8
On Sun, 19 Sep 2004 21:42:28 +0100, Deryck wrote:
....
FWIW2, your HTML causes the validator
(http://validator.w3.org/check?verbos...ewestwood.com/)
to complain a great deal - sorry, youve got some work ahead of you if you
want compliance-


Fortunately one part was thoroughly broken...

<HTML>
<HEAD><bgsoun d src="fx-goodthunder.wav " loop="3">

...like I want that coming through my digital
5.1 speaker system when it's set to volume '11',
playing "Maggie's Farm" (RaTM). ;-)

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #9

"Lee" <RE************ **@cox.net> wrote in message
news:ci******** @drn.newsguy.co m...
matt said:

As somebody already pointed out, it's complaining because
you refer to "preloadImages( )" in the onload handler of your
body tag. You haven't defined a function by that name.


Yes, I see that error message in Opera now (its on all pages) ...not sure
how/why I didnt see it before :(
There are also 2 body tags on the index.html page so the preloadImages()
error can appear twice!

I really think it wouldnt hurt the OP to walk through the HTML now and clean
up a bit:

No DOCTYPE
2 <body> tags
The alt tags for the navigation refer to "Shop Our Store" for the story and
"Forums" for the gallery.
etc, etc...

The OP has clearly put this together from other sites but needs to do a lit
bit more work yet.

If nothing else adding a DOCTYPE and putting all the javascript into a
single file would help enormously, it will make maintenance so much easier.

Deryck
Jul 23 '05 #10

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

Similar topics

7
44541
by: Erik-Jan Bakker | last post by:
Hello, I am stuck with a weird javascript problem.... ;-( Maybe it's somehting very simple, but I am really stuck in it, right now. What's the matter.... When place my website at a different hosting provider my webpage menu generates the javascript error:
53
5753
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is difficult to know what is going on. One of these Order Forms you can see here... http://www.cardman.co.uk/orderform.php3
19
6936
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the JavaScript in this code from a couple different sites but I'm not 100% sure what each line is doing...This is the ASP code that I'm using for the page....Take a look at the JavaScript code and please let me know what each line is doing....I have been...
8
3681
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
4
8938
by: Greg | last post by:
I'm guessing the problem I'm having has something to do with Master Pages or DetailsView because the exact same code works fine on a page without a Master Page and DetailsView controls. The problem is, when the javascript fires on the txtDateRequiredOut TextBox in IE, I get "Error on Page" in the status bar and the error says: "Object Expected". Viewing the source of the page while running shows a link created properly for the linked...
6
10300
by: MayBoy | last post by:
Hi There I am trying to use the Goto method of the Word ActiveX object. I am trying to open a document and go to a named bookmark. If I use this code in VB it works, so I'm sure the approach is possible, I just can't get JavaScript to work with it. Here is the code I am using, the error I get from IE is Object Expected: Hope someone can help! Any help would be much appreciated
60
5047
by: marss | last post by:
Maybe anyone know good free online JavaScript knowledge test? This not exactly a system for testing online required - it may be simply list of questions with variants of answers (I have to prepare tests for learners and I need something to be taken as basis). I was able to find only this (http://www.w3schools.com/js/ js_quiz.asp), but I need more. Thanks, Mykola
1
2640
by: tgorton | last post by:
I am having a problem running a javascript function as part of an html-el:form onsubmit. The problem seems to exists in IE6 but not in Firefox. html: <html-el:form action="${target}" onsubmit="return testTheForm(this)"> javascript function: <script type="text/javascript"> function testTheForm(theForm){
0
9706
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
9579
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
10571
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
10326
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...
0
10075
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...
1
7615
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
6851
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();...
1
4295
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
3
2990
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.