Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1265 jp_milcent 1
$Id: TODO,v 1.1 2007-03-16 12:39:35 jp_milcent Exp $
2
 
3
TODO
4
----
5
[+] deactivate delay with appropriate timeout cancel handles (can then do the fancy work with velcro tip)
6
[+] use json for options to tip
7
[+] content can be a function, but until tip is destroyed, it isn't called again (call in domTT_show)
8
[+] option to use the DOM node rather than cloning for caption/content
9
[+] possible edge detection problem in Opera
10
 
11
[+] build a namespace for dom.lib dom.tt dom.menu or something
12
[+] doInDomTT() which would allow a function to be run when the tip is to be positioned
13
[+] issue a callback to fadomatic to destroy tip on fadeOut completion (allow the destory action for fading tips)
14
[+] make this domTT_runShow more clear as to what it is doing...maybe even
15
rework the timeout process we cannot allow for the timeout to hold onto any
16
object that might reference the DOM, else it won't get garbage collected
17
[+] think about creating a lightweight version that uses replaceTitles
18
 
19
[+] create addEvent() function for posting global events
20
 
21
[+] lazy trailing broken in Opera
22
 
23
[+] maxWidth handling is a bit ugly
24
[+] maybe not show contents when dragging? (also resize of sticky tooltips)
25
[+] drag API / add snap to grid when dragging
26
 
27
THOUGHTS
28
--------
29
[+] make alpha settings a sub-object or array...so we can set: max, step, etc...
30
[+] a more smooth lazy trail should be implemented by not moving the full amount each time
31
[+] make cursor "move" if caption is draggable
32
[+] Konq and Opera don't allow tip to flow over IFRAME in example11...but the code is working
33
 
34
NOTES
35
-----
36
never use:
37
	onmouseover = function(e) { ... } as it will create a circular reference because of the function definition
38
 
39
 
40
[1,2,3] array object
41
{'one' : 1, 'two' : 2} object
42
cannot use setTimeout() with anonymous function in IE 5.0 since it crashes the browser when you execute clearTimeout() following this call
43
in compliance mode, IE measures use document.documentElement for many of the document.body functions
44
Text node cannot have an event in IE, but it can in mozilla
45
IE bubbles by default, which means that the child nodes get the event before the offsetParent nodes
46
setting an event to null in mozilla does not remove events registered using addEventListener...but it does in IE.
47
IE 5.0* does not have the .*? functionality in regexp
48
bug in linux onmousedown causes onmouseout beforehand
49
on IE, if there is an onmousemove and onmouseover, both will fire onmouseover
50
 
51
// innerHTML the DOM way
52
var range = document.createRange();
53
range.selectNodeContents(document.body);
54
var fragment = range.createContextualFragment('<b>test</b>');
55
var tooltip = document.createElement('div');
56
tooltip.appendChild(fragment);
57
 
58
WHAT I AM NOT THRILLED ABOUT
59
----------------------------
60
- (mozilla keeps firing events after javascript functions have been unloaded
61
- when appending a tooltip to a table cell, the table seems to get stretched out
62
 
63
DONE
64
----
65
[@] delay firing tooltip events until page has loaded (fix IE bug)
66
[@] missing fade should still allow tip to close
67
[@] one tooltip at a time
68
[@] mousemove makes konqueror flip the tip up (was a konqueror bug, fixed in 3.2)
69
[@] IE not detecting bottom edge of browser
70
[@] created global constant for standards mode detection
71
[@] if position relative, don't append to parent until tip is done creating or else parent get's all screwed up
72
[@] show should not set left and top style if position relative
73
[@] incorrect use of pending...pending should be between inactive and active
74
[@] fade fails when mouseout while fading when fading in 'in' only
75
[@] fade in is VERY slow
76
[@] domTT_isActive awkward
77
[@] velcro not working right
78
[@] strange stuff going on when doing click to stick
79
[@] mouseover then mouseout still has issues (sticky tips)
80
[@] what if tooltip is inactive and domTT_activate() fires again
81
[@] fix the FIXME's
82
[@] change domTT_true and domTT_false to makeTrue() and makeFalse()
83
[@] fix fades
84
[@] drag not working
85
[@] put delay back in for IE 5.0/Konq
86
[@] mousemove update is overridden by the mouseover placement, firing at wrong time
87
[@] cut the use of writing onmouseout() if is specified, same with onmousemove (make automatic)
88
[@] get rid of the float and go with tables instead so we can cut code
89
[@] try to speed it up a bit
90
[@] create lite version for simpler cases
91
[@] make a domTT_deactivate() that the user can use to make his/her own onmouseout()
92
[@] check for standards compliance mode, make it work either way
93
[@] problem if select box is inside tooltip
94
[@] infinite recursion bug in konqueror when using onmouseover
95
[@] be able to specify unique id as option
96
[@] use callTimeout
97
[@] problem with the setTimeout calls when using mousemove...before the tooltip activates, many setTimeouts can be registered, but only one can be cancelled
98
[@] have domTT_deactivate take a tip id or a tip object
99
[@] possibly make use of 'this' in the drag functions
100
[@] fix onmouseout to work as expected
101
[@] show off the preserving of the onmouseout
102
[@] talk about the auto width in the demo (which overlib does not have)
103
[@] select detection does not account for visible sticky tooltips...for this we have to have a global hash of the open tips...then, when we are going to change the style of a select element to visible, we check the open tips and make sure it is not conflicting with any of them
104
[@] some demos not working in Konqueror
105
[@] maxWidth handling is a bit awkward
106
[@] velcro having a rough time in IE, and in mozilla linux, cannot mousedown before it closes
107
[@] use typeof() instead of this.undefined
108
[@] strip out the javascript code for reporting errors in the packaged file
109
[@] store onmouseout function in the eventTarget attribute?
110
[@] common function for placing the tip (show and create do this stuff)
111
[@] be able to specify the width
112
[@] make function for domTT_mouseout()
113
[@] think about window.status on Example 4, right link
114
[@] few places where I get the mouse_x/mouse_y when I don't need it (relative position)
115
[@] when doing onmouseout for a greasy, make sure we are not entering a child...hmmm
116
[@] make example for relative position
117
[@] make maxWidth of 0 ignored
118
[@] since we can specify parent, be able to specify relative position or something so that we can just have the tooltip expand into the container
119
[@] have makefile fill in the version
120
[@] if event target is documentElement, coax it to document.body
121
[@] cursor errors in IE 5.5
122
[@] we don't need domTT_defaultStatus, just use window.defaultStatus
123
[@] add option for lifetime to tip
124
[@] create demo for velcro
125
[@] snap to grid tooltip (problem is we need to determine the difference from where the tip is located now, and where we would put it next, not just the mouse position)
126
[@] be able to fade out on close
127
[@] mouseover tip functionality...be able to keep it open when you mouseover, maybe another type...velcro
128
[@] don't kill the onmouseout the existed on tip...try to just add the close (see foo.html)
129
[@] fixed position tooltip (maybe pass in coordinates)
130
[@] change domTT_deactivate attribute to domTT_destroy
131
[@] tip lifetime for onmouseover
132
[@] set prefix for each tooltip in example pages
133
[@] maybe creat a domTT_writeStatus() function to be used for onmouseover
134
[@] added domTT_false() for onclick events on links that open IFRAMES
135
[@] remove hardcoded -1000px for a setting
136
[@] make fade a passed in option
137
[@] fading tooltip
138
[@] check for valid browser and don't execute if not meet requirements
139
[@] opera7 does not hide contents of IFRAME when tooltip is hidden
140
[@] make domTT_defaultStatus option
141
[@] prevent dragging close element
142
[@] drag bug in Opera 7
143
[@] full Opera 7 support!
144
[@] try Opera 7
145
[@] function for detect screen edge?
146
[@] edge detection not account for scroll (messes up placement bigtime when scroll is in effect)
147
[@] if content is empty, need to bail on creating tip
148
[@] why oncontextmenu no deliver onclick
149
[@] add domTT_isActive()
150
[@] add option 'deactivate' to be 'hide' or 'destroy', important for embedded IFRAMES
151
[@] option not to have X for sticky, but put onclick on document
152
[@] maybe remove the restriction for onmouseover and let it happen as it will
153
[@] more options for predefined can come over to tip definition, overridden by those passed in
154
[@] release to dynamic drive ddsubmit@yahoo.com
155
[@] if you have onmouseover sticky, and you mouseover then leave, it doesn't kill tip
156
[@] variable for tipObj visibility state to prevent all the lookups
157
[@] be able to specify style prefix for different styles on different tips
158
[@] add addPredefined() function
159
[@] make only draggable from caption
160
[@] be able to turn off dragging of sticky tips
161
[@] cleaner call to domTT_show()
162
[@] screenshot for freshmeat
163
[@] custom close text
164
[@] full screen edge detection
165
[@] handle the mouse cursor height automatically
166
[@] prettier way to handle default options
167
[@] support for directional tips (extending west from mouse action instead of east)
168
[@] eventDelay should be set to 0 if onmousemove and visible so it updates right away
169
[@] make function for reappear, domTT_show()
170
[@] when mouseover, use most recent location of mouse position
171
[@] perhaps do type instead of 'sticky' true or false?
172
[@] collision detection shouldn't delay when doing mousemove/click and tip is visible
173
[@] adjustable delay for tip in options
174
[@] change in_options to options in domTT_activate
175
[@] drag in IE jumps when select domTTContent area
176
[@] mouseout in IE when sticky active makes select boxes come back, event when tooptip is over it
177
[@] X should not be a dragable part of tooltip
178
[@] function for get mouse event position
179
[@] domTT_detectCollisions should do the lines just above it
180
[@] be able to drag sticky
181
[@] have getPosition return all 4 coordinates
182
[@] konqueror support
183
[@] browser variables
184
[@] code for x and y is twice in the activate function
185
[@] when you fly in and then click on the object while the tip is being created, it bugs out
186
[@] another paramater to domTT_activate() whether to unhide selects
187
[@] domTT_deactivate to take object instead of id
188
[@] fix problem with onmousemove after onclick beating setTimeout(...,0) on windows
189
[@] after we use a sticky, and it is closed, mousemove no longer works
190
[@] if we are sticky, all events on the same object should be cancelled
191
[@] be able to do sticky on click when onmousemove is used for non-sticky
192
[@] hiding of select boxes is not subject to the delay that the tooltip is subject to
193
[@] do internal hash, from the arguments after event
194
[@] itemExists to hash
195
[@] account for scroll offset of page
196
[@] fix max-width for IE
197
[@] fix broken float right for IE
198
[@] fix e.target to event.srcElement for IE
199
[@] need delay on reappear from cache
200
[@] no delay for onclick
201
[@] implement zIndex so new tips can go over old tips
202
[@] cache tooltips created by using visibility style
203
[@] pass in options as Hash
204
[@] auto-assign onmouseout
205
[@] add ability to have sticky (x in caption...what if we don't have caption?)