Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Explorer Code Error Message

Status
Not open for further replies.

Knackers

Technical User
Apr 26, 2001
59
AU
Hi,

I have just finished building my first site and used Dreamweaver. (http// It has some javascript functions in it and a scrolling applet. However, once I made the site live on the web server, Internet Explorer gives an error message when you open the site home page saying that

'Problems with this web page might prevent it from being displayed properly........'

The error occurs in :
Line: 57
Character: 1
Code: 0
URL:
Can anyone tell me what this means, or more importantly, how I go about fixing it!

Thanks
 
Hi

Would it be possible for you post the line of coding that is causing the error? (For some reason I can't see it by right-clicking unless you have disaled this). I have had this kind of error efore so may be able to help.

Thanks.
 
No Problems. Its says that it is Line 57 - How do I locate this line (I assume that it is one of the javascript functions, but do I just count down through the HTML code 57 lines?).

Also I forgot to mention that the error is 'object expected'
 
In dreamweaver, under View on the menubar, select Code View options and then Line Numbers. This will show you the line numbers alongside your coding.
 
Thanks addy.

The line of code that is returning the error is:

<body bgcolor=&quot;#336699&quot; onLoad=&quot;MFXinitMenu();MM_preloadImages('Buttons/Home%20up.gif','Buttons/Home%20down.gif','Buttons/Home%20over.gif','Buttons/About%20GWI%20down.gif','Buttons/About%20GWI%20over.gif','Buttons/Sample%20Articles%20down.gif','Buttons/Sample%20Articles%20over.gif','Buttons/Free%20Trial%20Down.gif','Buttons/Free%20Trial%20Over.gif','Buttons/Subscriptions%20down.gif','Buttons/Subscriptions%20over.gif','Buttons/Mgmt%20Rep%20down.gif','Buttons/Mgmt%20Rep%20over.gif','Buttons/Media%20Info%20down.gif','Buttons/Media%20Info%20over.gif','Buttons/Advertise%20over.gif','Buttons/Contact%20down.gif','Buttons/Contact%20over.gif','Buttons/About%20down.gif','Buttons/About%20over.gif','Buttons/About%20GWI.gif','Buttons/Advertise%20down.gif')&quot; link=&quot;#336699&quot;>

It is saying that the error is in character 1 and that an object is expected?

Thanks again for looking at this
 
Addy,

Problem soved. I just copied the offending line of text from one of the other pages that was okay and pasted it in.

Alll is fine now. Thanks for yout time
 
OK

I can't see your coding on your site but I am wondering where you have the javascript code? When I encountered this error, I had developed my site in dreamweaver which automatically created the necessary javascipt for the rollover images / preload images etc. As this was on every page, I saved it off as an external .js script and referred to it from each page (<script=&quot;javascript&quot; src=&quot;myscript.js&quot;>). When I put the javascript back into the <head> of my pages, I didn't get the error.

Check in your <head> sction and see if the MM_preloadImages function is there.

Hope this is of some use. If the cause of your problem is not the same as it was for me I'm afraid I can't offer anything further.

:)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top