Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2009, 08:01 AM   PM User | #1
wren11
New to the CF scene

 
Join Date: Oct 2009
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
wren11 is an unknown quantity at this point
jquerui accordion problems in IE

Hello!, i am new to jquery but i love it! however i am having troubles with my site working properly in Internet Explorer 7+

the website is
http://www.onlinehorrormovies.net


Example of the error is:
http://onlinehorrormovies.net/movie.aspx?v=50

Please look at it in IE, The bottom accordions 'Watch Online", "User Comments" and " Post Comments" are broken.


Can somebody please tell me whats wrong with it?

the errors i get are:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; msn OptimizedIE8;ENUS)
Timestamp: Sat, 31 Oct 2009 22:41:55 UTC


Message: Invalid argument.
Line: 83
Char: 8154
Code: 0
URI: http://hitplay.net/js/jquery-ui-1.7.2.custom.min.js
wren11 is offline   Reply With Quote
Old 11-02-2009, 10:51 AM   PM User | #2
Spudhead
Senior Coder

 
Spudhead's Avatar
 
Join Date: Jun 2002
Location: London, UK
Posts: 1,856
Thanks: 8
Thanked 110 Times in 109 Posts
Spudhead is on a distinguished road
I had this once, and it took me flipping AGES to figure it out. I'm not 100% it's the cause in this case, but you are doing the same thing that I did:

When you list members of an object, you put a comma after the last member. Firefox doesn't mind it, but IE does. For example:
Code:
	$(function() {
		$("#accordion_s2").accordion({
			icons: {
				header: "ui-icon-circle-arrow-e",
				headerSelected: "ui-icon-circle-arrow-s",
			}, autoHeight: false
		});
	});
That last highlighted comma? That's what was causing those errors for me.
Spudhead is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:38 AM.


Advertisement
Log in to turn off these ads.