A common usability problem encountered in Ajax apps is the unintentional selection of text when trying to do a drag-and-drop operation. This javascript function allows you to disable text-selection for a specific element on the page and should work in all modern browsers:
You can't disable text selection with CSS alone because returning false from the onselectstart event is necessary to disable selection in Internet Explorer. You may want to also change the cursor when mousing over your draggable item with a style of "cursor:default" or "cursor:pointer". Even better yet, you can use "cursor:hand" to indicate that dragging is possible.
Here's how you would call it in your page:
Should you actually need to copy and paste, you can always view the source.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Project Tracker v2.0 Released
Mike said: great app! thanks heaps.
found a few bugs in the initial install...
-forgot.cfm - no need to inclu...
[More]
Project Tracker v2.0 Released
Nathan said: Hi Joe
I went to check out the demo site http://ajaxcf.com/project... and it throws an error.
Inval...
[More]
Project Tracker v2.0 Released
Lachie said: Wow thanks for creating a version 2. I have extensively used version 1 for my projects. It works gre...
[More]
Project Tracker v2.0 Released
Steve W said: Joe,
You style sheet is missing because a period was left out of the path.
<link rel="styl...
[More]
Project Tracker v2.0 Released
Mark Mandel said: Joe,
Great work! I can't wait to have a play!
Btw, your CSS isn't rendering on your post view pag...
[More]