PDA

View Full Version : Amazon Drop In Box Object Required error in IE8



eyaanya
10-15-2009, 08:00 PM
1) Script Title: Amazon style Drop-in content box

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/amazondrop.htm

3) Describe problem: Hello, I have no idea what I'm doing wrong, but I'm using the Amazon drop in box on my site (http://www.centerwest.org/publications/oilshale/0home/index1.php) and it works in firefox and safari but when I try to test it in ie6 and ie7 it doesn't work and ie 8 it keeps giving me the following error:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Thu, 15 Oct 2009 19:58:13 UTC


Message: Object required
Line: 53
Char: 3
Code: 0
URI: http://www.centerwest.org/publications/oilshale/0home/index1.php

The dynamic drive page works fine in ie and I've tried everything I could possibly think of on my site but I still can't get it to work. What am I doing wrong?

Thanks!

jscheuer1
10-16-2009, 06:15 AM
There should be nothing, not even a comment before the DOCTYPE. When I remove this (highlighted):


<!--Last edited by Amber 6/12/09-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>What Every Westerner Should Know About Oil Shale</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
<link href="/public . . .

It works in IE 7, and the error goes away in IE 8. However, I was getting a different error in IE 8 than you were. Also, there are other scripts on the page, at least one external. So it is unclear to me just where the error you were getting was (IE doesn't always give the correct line number when there are external scripts involved).