Welcome to WebmasterWorld Guest from 54.147.44.93

Forum Moderators: open

Message Too Old, No Replies

"object expected"

glitch in simple script

     

ctoz

10:23 am on May 31, 2011 (gmt 0)

5+ Year Member



getting "objecrt expected" from IE...can't spot problem:

function swap() {
$('#back').fadeOut('600', function(){
window.location.href='ahb.htm'}
);
}

jQuery's properly linked.

rocknbil

3:48 pm on May 31, 2011 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



does this make it go away?


function swap() {
if ($('#back').length) {
$('#back').fadeOut('600', function(){
window.location.href='ahb.htm'}
);
}
}


Though I have no sound evidence, perhaps "back" is a reserved word, but doesn't seem like it would be.

ctoz

4:10 am on Jun 1, 2011 (gmt 0)

5+ Year Member



does this make it go away?

nope

I'll break it into bits and try some other browsers

cheers

ctoz

3:56 am on Jun 2, 2011 (gmt 0)

5+ Year Member



"jQuery's properly linked"

it wasn't: wrong version.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month