
(RSS) |
Nitobi User Forums Nitobi Support Forums
|
Please take our Customer Satisfaction Survey
| View previous topic :: View next topic |
| Author |
Message |
rodricksin
Joined: 26 Oct 2007 Posts: 2 Location: Mumbai
|
Posted: Wed Oct 31, 2007 11:17 am Post subject: Drag and Drop in jsp |
|
|
Dear Sir,
Please give some sample code for Drag and Drop the images in Struts jsp.
Thanks with regs,
Rodricks george |
|
| Back to top |
|
 |
andrew_nitobi
Joined: 17 Aug 2007 Posts: 521
|
Posted: Tue Jul 08, 2008 11:34 pm Post subject: |
|
|
Here is a simple HTML page that demonstrates how the Nitobi Toolkit can by used for dragging and dropping:
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ntb="http://www.nitobi.com">
<head>
<script type="text/javascript" src="nitobi.toolkit.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Drag and Drop</title>
<script>
function checklocation(element, destination) {
debugger;
}
</script>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:19px;
top:157px;
width:192px;
height:110px;
z-index:2;
background-color:#FF9966;
}
#destDiv {
background-color: red;
left: 500px;
top: 75px;
z-index: 1;
width: 300px;
height: 500px;
position:absolute;
}
-->
</style>
</head>
<body>
<div id="apDiv1" onmousedown="nitobi.ui.startDragOperation(this,event)" onmouseup="checklocation(this, document.getElementById('destDiv'))" ><p>Here is some text you can move</p></div>
<div id="destDiv" > </div>
</body>
</html> |
Thanks,
Andrew |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|