homepage Welcome to WebmasterWorld Guest from 54.226.213.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
"object expected"
glitch in simple script
ctoz




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

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




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

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




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

does this make it go away?

nope

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

cheers

ctoz




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

"jQuery's properly linked"

it wasn't: wrong version.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved