griffaw
asked on
jQuery tabs not working in IE
I have a page using the jQuery UI tabs ajax method. Content form all tabs display perfectly in FF. The tabs display in IE but the content will not load when the tab is clicked.
in the head
<script>
	$(function() {
			
		$( "#tabs" ).tabs(<%if request("showpaycheck") = 1 then response.Write("{ selected: 1}")%>);
			
	});
</script>
The tabs:
<div style="width:inherit" id="tabs">
<ul>
<li><a href="grid_general.asp?edi tid=<%=req uest("edit id")%>"><s pan>Genera l</span></ a></li>
<li><a href="grid_contact.asp?edi tid=<%=req uest("edit id")%>"><s pan>Contac t</span></ a></li>
<li><a href="grid_moduleaccess.as p?editid=< %=request( "editid")% >"><span>A ccess</spa n></a></li >
</ul>
</div>
in the head
<script>
	$(function() {
			
		$( "#tabs" ).tabs(<%if request("showpaycheck") = 1 then response.Write("{ selected: 1}")%>);
			
	});
</script>
The tabs:
<div style="width:inherit" id="tabs">
<ul>
<li><a href="grid_general.asp?edi
<li><a href="grid_contact.asp?edi
<li><a href="grid_moduleaccess.as
</ul>
</div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BurnieP:
I tried your edit...same problem. Still no content in tabs.
PS: these are the real tabs.
Thanks
I tried your edit...same problem. Still no content in tabs.
PS: these are the real tabs.
Thanks
Hi,
Just another ckeckup, you have javascript enabled on your IE browser?
Just another ckeckup, you have javascript enabled on your IE browser?
ASKER
BurnieP:
Yes.
PS: Non-ajax tabs work perfectly in IE. Only the ajax method fails.
Yes.
PS: Non-ajax tabs work perfectly in IE. Only the ajax method fails.
ASKER
Any thoughts?
Thanks
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm officially embarrased....there was a single orphan </div> tag in the body on the pages being called by the ajax tabs.
i "ass"umed that since FF displayed ok and IE did not that the issue was browser related...never checked the html. Oh well, lesson learned. I'll split the points among everyone that responded.
I curious though, how could FF handle it and IE choked?
i "ass"umed that since FF displayed ok and IE did not that the issue was browser related...never checked the html. Oh well, lesson learned. I'll split the points among everyone that responded.
I curious though, how could FF handle it and IE choked?
I'm glad you found it.
I'm surprised that FF is more forgiving on small mistakes like that. I generally assume that IE is normally more forgiving and FF is really by the book of html.
I'm surprised that FF is more forgiving on small mistakes like that. I generally assume that IE is normally more forgiving and FF is really by the book of html.
ASKER
Score one for Redmond :)
ASKER
Interesting that both FF and IE forgave the orphan with html tabs. Only IE failed with the ajax method.
ASKER
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>