I just installed the script.aculo.us libraries and created a very
basic draggable div using the following code:
<div id=''toolbar''>
<div id=''toolbar_title''><a
onclick=''$("toolbar").hide()''>x</a></div>
</div>
<script type="text/javascript" language="javascript">
new
Draggable(''toolbar'',{handle:''toolbar_title''});
</script>
And from the appropriate CSS sheet:
#toolbar {
z-index: 3;
display: block;
width: 400px;
height: 75px;
border: solid #999999 3px;
background-color: #FFFFFF;
position: fixed;
float: right;
bottom: 10px;
right: 10px;
text-align: center;
}
#toolbar #toolbar_title {
float: left;
display: block;
width: 12px;
height: inherit;
background-color: #999999;
}
And it does create a draggable object. However, it stops being
draggable for apparently no reason.
Firebug gives me the error:
too much recursion - prototype.js (line 1323)
return value.apply(null, [this].concat($A(arguments)));
You can see the error in action by visiting http://www.prebeltway.org/
login.php and logging in using [username=demo, password=test]. The
toolbar will appear on the first page after you log in.
Any idea what I''ve done wrong here?
Thanks again!
--Josh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---