Page 2 of 2

Posted: Mon Oct 03, 2005 4:33 am
by pilau
Roger that.
And why exactly is it better than Saibot's code?

Posted: Mon Oct 03, 2005 5:25 am
by Weirdan
pilau wrote:Roger that.
And why exactly is it better than Saibot's code?
There's magnitute of reasons to consider this solution 'better'... one would be that your user-agent doesn't need to parse the snippet you're pasting into your document tree.

Posted: Mon Oct 03, 2005 5:41 am
by pilau
Hmm, a bit of problem with your solution, because it appends the child every time the cursor moves, which creates something like that: 543,543394,394354,354286,286313,313479,479450,450768,768768,768316,316659,659233,233

Not nice.
How can I only create a text node?

Posted: Mon Oct 03, 2005 8:10 am
by Weirdan
...huh? cursor? what cursor?

Did you mean you wanted to replace the content of specific DOM node?

Posted: Mon Oct 03, 2005 9:10 am
by pilau
Well I'm using the onmousemove event to present the cursor coordinates, and I wanted to present them in a specific place.