Brujah wrote:
>
> I am trying to write a draggable notepad.
> I use a textarea where the user can enter data.
> It basically works, but while I move the box the text is not displayed.
> What could be the problem here?
> The code is small:
>
> --------------------------------------------------------------------------------------------------
> <html>
> <head>
> <script type="text/javascript" src="../jquery.js"></script>
> <script type="text/javascript" src="../idrag.js"></script>
>
> <script type="text/javascript">
> $(document).ready(
> function()
> {
> $('#notepad').Draggable(
> {
> handle: 'div'
> }
> );
> });
> </script>
>
> <style type="text/css" media="all">
> body
> {
> background: #fff;
> height: 100%;
> }
>
> #notepad
> {
> position: absolute;
> width: 266px;
> height: 282px;
> top: 100px;
> left: 300px;
> background-color: #777777;
> border: 1px solid #0090DF;
> }
> #notepad div
> {
> cursor: move;
> background-color: #900;
> height: 20px;
> }
> </style>
> </head>
>
>
> <body>
> <div id="notepad"><div>Notepad</div>
> <textarea name="usertext" rows=15 cols=30></textarea>
> </div>
> </body>
> </html>
> --------------------------------------------------------------------------------------------------
>
>
>
--
View this message in context:
http://www.nabble.com/Draggable-Notepad-tf2629599.html#a7354866
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/