[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
.pin{ background:url('pin_org.png') no-repeat; height:24px; width: 24px;position:absolute; }

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
.pin{ background:url('pin_org.png') no-repeat; height:24px; width: 24px;position:absolute; }

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
Thanks alot it works! $("#Content").rightClick( function(e) { var x = e.pageX; var y = e.pageY; $("").insertAfter(this); });

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread choesang
Thanks alot it works! $("#Content").rightClick( function(e) { var x = e.pageX; var y = e.pageY; $("").insertAfter(this); });

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread brian
On Thu, Mar 5, 2009 at 11:01 AM, ricardobeat wrote: > > Insert anywhere and use position:absolute. Would the text re-flow around the div, though? I'd imagine it wouldn't. If not, I suppose you could get the insertion point within the div's text, using textrange, then replace it with a copy that

[jQuery] Re: Need to insert an element in DIV at position X Y

2009-03-05 Thread ricardobeat
Insert anywhere and use position:absolute. On Mar 5, 8:03 am, choesang wrote: > Hi! > > I am trying to create a webpage where users can insert a pin (div) in > between the text using context menu. > My problem is that i do not know how to insert at the exact position. > Using Dom's I can arrive