View Full Version : video code error - ok Firefox not IE

03-15-2011, 01:41 AM
I am working on website and was given javascript code for video which I have inserted. Works fine on Firefox but comes up with following error message on IE. Much appreciate any help as am absolute beginner in Javascript. Thank you.

<embed src="http://www.silverlinemedia.tv/player/player.swf" width="480"height="302"style="float:right"bgcolor="#B6C6BB"allowscriptaccess="always"allowfullscreen="true"flashvars="file=http://www.silverlinemedia.tv/proofing/vids/oaklodge.flv&image=http://www.silverlinemedia.tv/proofing/vids/oaklodgestill.jpg&skin=http://www.silverlinemedia.tv/player/stylish.swf&autostart=false"/>[CODE]

Webpage error details

Message: Object required
Line: 53
Char: 3
Code: 0
URI: http://www.oaklodge.co.nz/

03-15-2011, 03:25 AM
Your website code had numerous errors when validating with http://validator.w3.org/. I always check my code there before I upload to my servers. Sometimes it's just a simple mistake that you overlook.

23 Errors, 9 warning(s) Errors found while checking this document as XHTML 1.0 Transitional!

Here is your new Tidied code

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<title>Greymouth Bed and Breakfast (B &amp; B) | West Coast accommodation</title>
<meta name="description" content="Oak Lodge Homestay - a place to stay, enjoy and relax" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="UntangledWeb" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
img.c6 {float: left; margin-left: 15px;}
img.c5 {margin-top: 350px}
img.c4 {margin-top: 100px;}
img.c3 {border: 1px solid #0B5347}
embed.c2 {float:right}
img.c1 {float: left; margin-right: 200px;}
<div id="pagewidth">
<div id="banner"><img src="images/oak-lodge-logo.gif" width="280" height="125" alt="" class="c1" /><br />
<br />
Greymouth bed and breakfast<br />
West Coast accommodation<br />
a place to stay, enjoy and relax</div>
<div id="header"></div>
<div id="wrapper" class="clearfix">
<div id="twocols" class="clearfix"><embed src="http://www.silverlinemedia.tv/player/player.swf" width="480" height="302" class="c2" bgcolor="#B6C6BB" allowscriptaccess="always" allowfullscreen="true" flashvars="file=http://www.silverlinemedia.tv/proofing/vids/oaklodge.flv&amp;image=http://www.silverlinemedia.tv/proofing/vids/oaklodgestill.jpg&amp;skin=http://www.silverlinemedia.tv/player/stylish.swf&amp;autostart=false" />
<p class="video"><br />
<br />
<br />
<br />
<br />
Press the centre white arrow to view video of Oak Lodge Bed &amp; Breakfast Greymouth </p>
<div id="maincol">
<h1>Greymouth luxury bed and breakfast West Coast accommodation</h1>
<p>We extend a warm welcome to you at Oak Lodge Bed and Breakfast, Greymouth.</p>
<p>Built in 1902, this spacious farmhouse has been renovated to provide comfortable and high quality facilities for a restful stay, only 3 kilometres from Greymouth.</p>
<h2>Choose from 5 bedrooms</h2>
<p>Make a choice from five bedrooms all with ensuite or private bathroom facilities. Whether you are travelling as a couple, a family, a group, or on your own, there is a well furnished comfortable bedroom waiting for you. <a href="accom.htm"><em>Read more ...</em></a></p>
<h2>Looking for a B&amp;B with leisure facilities?</h2>
<p>Although ideally located for visiting Greymouth and the West Coast attractions, there are <a href="local.htm">leisure facilities at Oak Lodge</a> if you prefer to have a quiet break in your journey. Enjoy the:</p>
<li>swimming pool</li>
<li>billiards room</li>
<li>hot spa pool</li>
<li>tennis court</li>
<li>extensive gardens.</li>
<p>Explore the small farmlet and help feed the coloured sheep, the hens and the eels.</p>
<p>Your hosts, Shirley and Alastair, know that there are times when you need to break your journey - get the laundry done, write letters/emails, sit still and just rest. You are encouraged to do this at Oak Lodge Homestay Greymouth on the West Coast.</p>
<p> </p>
<hr />
<div id="availability">
<p>"Your hospitality and warmth was special! We especially enjoyed visiting with you and hearing about your lives in New Zealand. You made a special effort to make us feel welcomed, and it added a special touch that made our trip so much more memorable. The breakfasts that Shirley prepared could not have been better, and the accommodations were very comfortable. We will certainly recommend your lodge to all our friends visiting New Zealand. We feel like we now have friends in New Zealand."</p>
- Cecil and Gerri, Texas USA
<hr /></div>
<div id="rightcol"><img src="images/welcome-arch.jpg" width="175" height="263" class="c3" alt="Come on in for a warm welcome to your Greymouth homestay" /><br />
<br />
<img src="images/arapawa-ram.jpg" width="175" height="116" class="c3" alt="Arapawa ram at Oak Lodge" /><br />
<br />
<img src="images/cottage.jpg" width="175" height="116" class="c3" alt="Cottage at this luxury West Coast bed and breakfast" /><br />
<br />
<img src="images/lounge.jpg" width="175" height="117" class="c3" alt="Spacious lounge overlooking garden at your West Coast homestay" /><br />
<br />
<img src="images/path-garden.jpg" width="175" height="117" class="c3" alt="Enjoy a stroll around the colourful garden at Oak Lodge" /><br />
<br />
<div id="TA_rated55" class="TA_rated">
<ul id="tgPnBw3f" class="TA_links 0vdmKDwMeAk">
<li id="jDJvInkFgr" class="ptyyrq8"><a href="http://www.tripadvisor.com/Hotel_Review-g255372-d938875-Reviews-Oak_Lodge_Homestay-Greymouth_South_Island.html">Oak Lodge Homestay</a></li>
<script src="http://www.tripadvisor.com/WidgetEmbed-rated?uniq=55&amp;locationId=938875&amp;lang=US" type="text/javascript">
</script><br /></div>
<div id="leftcol">
<div id="list-menu">
<li><a href="/" title="Greymouth bed and breakfast at Oak Lodge">Home</a></li>
<li><a href="accom.htm" title="">Accommodation</a></li>
<li><a href="about.htm" title="Your West Coast bed and breakfast hosts">About Us</a></li>
<li><a href="local.htm" title="Greymouth homestay special features">Special features</a></li>
<li><a href="westland-rates.htm" title="Oak Lodge Homestay Greymouth rates and bookings">Rates &amp; Reservations</a></li>
<li><a href="oak-lodge-greymouth.htm" title="B and B Greymouth location">Location/Contact</a></li>
<br /></div>
<div id="availability"><a href="http://www.globalavailability.com/art/guests/?pid=215" rel="nofollow"><img src="http://www.globalavailability.com/art/images/buttons/availability_1.gif" class="c4" alt="Click here to check our Availability" /></a><br />
Check availability and make a booking
<p> </p>
<a href="http://www.holidayguide.co.nz" title="New Zealand Accommodation Travel and Holiday Guide"><img src="images/HolidayGuide_Signature.jpg" width="145" height="36" class="c5" border="0" title="New Zealand Accommodation Travel and Holiday Guide" alt="** PLEASE DESCRIBE THIS IMAGE **" /></a></div>
<div id="footer"><img src="images/koru.gif" width="75" height="69" alt="" class="c6" /><br />
<strong>Oak Lodge Homestay</strong><br />
286 State Highway 6, Greymouth, New Zealand<br />
Phone: 03 768 6832 (Overseas callers +64 3 768 6832) Fax: 03 768 4362<br />
freephone 0800 OAK LODGE :: 0800 625 56343 :: Email <a href="mailto:relax@oaklodge.co.nz?subject=Email%20from%20Oaklodge%20website">relax@oaklodge.co.nz</a></div>

03-15-2011, 03:42 AM
Thank you for taking the time to recode. The vast majority of the validation errors related to the javacript I am asking about.

However, the error still appears when I try to load the page in IE?


03-15-2011, 03:56 AM
It works perfectly fine for me. I used Internet Explorer version 8.0.6001 What version of IE are you running?
then checked with Google Chrome, Opera, Firefox and Safari.

Are you sure you have your Flash player up to date?

Go to Secunia Online Software Inspector (http://secunia.com/vulnerability_scanning/online/) and run the online scan.

The Secunia Online Software Inspector, or short OSI, is a fast way to scan your PC for the most common programs and vulnerabilities, thus checking if your PC has a minimum security baseline against known patched vulnerabilities.

Use the Secunia OSI to get a feel for the Secunia Software Inspector technology, then upgrade to the Secunia PSI or CSI, which covers practically all programs on your PC, whereas the OSI checks less than 100 programs.

Feature Overview:

* Detects insecure versions of common/popular programs installed on your PC
* Verifies that all Microsoft patches are applied
* Assists you in updating, patching, and protecting your PC
* Activates additional security features in Sun Java
* Runs through your browser. No installation or download is required

03-16-2011, 08:45 PM
Thanks for that. Sorry for delay in reply.

I have run that check and updated my Flash Player. That was a useful link thank you.

However, my problem still persists. I think it must be something to do with my system, as obviously it works for you and on another computer I have tried.