Search and Top Navigation
Ticket #6049: simpletest2.html
File simpletest2.html, 1.0 KB (added by raziel057, September 14, 2010 02:35PM UTC)
More simple test
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="lib/jquery/jquery-1.4.2.js" type="text/javascript"></script>
<script src="lib/jquery-ui/js/jquery-ui-1.8.2.custom.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
$("#sortable").sortable();
});
function mafonction() {
alert('test');
}
</script>
<div class="demo">
<ul id="sortable">
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1 <a href="javascript:mafonction()">TEST ALERTE</a></li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li>
</ul>
</div>
</body>
</html>
Download in other formats:
Original Format
File simpletest2.html, 1.0 KB (added by raziel057, September 14, 2010 02:35PM UTC)
More simple test
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script src="lib/jquery/jquery-1.4.2.js" type="text/javascript"></script>
<script src="lib/jquery-ui/js/jquery-ui-1.8.2.custom.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
$(function() {
$("#sortable").sortable();
});
function mafonction() {
alert('test');
}
</script>
<div class="demo">
<ul id="sortable">
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1 <a href="javascript:mafonction()">TEST ALERTE</a></li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li>
</ul>
</div>
</body>
</html>