Jump to content

jQuery sortable in IE8


jug

Recommended Posts

Hi,

 

I have quite a simple script that utilises the jquery sortable functionality. It works brilliantly in FF and chromes but fails quite spectacularly in IE8. As you will see from the code below, what Im trying to do, is to sort on two levels, horizontally and vertically. If anyone knows a workaround to make this work in IE8 it would be much appreciated.

 


<html>

<head>
	<title>Sortable Test</title>

	<script src="jquery.js" type="text/javascript"></script>
	<script src="jquery_ui.js" type="text/javascript"></script>

	<style type="text/css">

		#sortable .vertical { width:600px; height:100px; border:1px solid #000; }
		#sortable .horizontal div { width:150px; height:80px; border:1px solid #000; float:left;}
		p {margin:0; padding:0;}

	</style>

	<script type="text/javascript">

		$(function() {
			$("#sortable").sortable();
			$("#sortable .horizontal").sortable();
		});

	</script>
</head>

<body>

	<div id="sortable">

		<div class="vertical">

			<p>here</p>

			<div class="horizontal">
				<div><p>here</p></div>
				<div><p>here</p></div>
				<div><p>here</p></div>
			</div>

		</div>

		<div class="vertical">

			<p>here</p>

			<div class="horizontal">
				<div><p>here</p></div>
				<div><p>here</p></div>
			</div>

		</div>

	</div>

</body>

</html>

 

Thanks in advance

 

jug

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.