Connecting Tech Pros Worldwide Forums | Help | Site Map

Error in IE "object doesn't support this property or method"

Newbie
 
Join Date: Mar 2008
Posts: 1
#1: Mar 13 '08
Hi guys,

I'm running a simple piece of Javascript on my website to allow users to make an object appear when they want to use it.

It works fine but I keep getting this error on IE and although it still works I'd like to figure out what it's referring to so I can get rid of it:

"Object doesn't support this property or method"

Here is my code:

<script type="text/javascript" src="/includes/js/jquery.js"></script>
<script>
$(document).ready(function(){
$(".reviewform").hide();
$(".reviewform_link").click(function () {
if ($(".reviewform").is(":hidden")) {
$(".reviewform").slideDown("slow");
} else {
$(".reviewform").hide();
}
});

});
</script>

And then in the page content there are two divs called:

<div class="reviewform_link"></div>
&
<div class="reviewform"><div>

I've tried changing the names - but that had no effect.

Any help would be great because I'm stuck!!!

Thanks

Helen

Member
 
Join Date: Jul 2007
Posts: 107
#2: Mar 13 '08

re: Error in IE "object doesn't support this property or method"


Hi can you post a more complete example please.

Its hard to tell whats going on here,

Also does it need the included script file?

Cheers
Reply