22nd November, 12:42
Hi,
I am working on a text translation and i want to show the translated text via qtip. There is a demo here but it doesnt useful for me. I want qtip to appear over the selected text after a function called. In this case the selection can be everywhere on the page that user wants and what will be the jquery selector now?
I think there are two solutions for me:
1- Getting X,Y coordinates of the selection and show qtip over there.
But how can i do that? Is there a function without using selector like show_qtip('content', x, y);
2- Getting the selected text as a jquery selector and show qtip over there.
But is it possible? Is there a way to use the selection in query selector string? I know something about :selection pseudo-class but can it be used as selector?
Shortly, thats what i want to do:
![[Image: 890.jpg]](http://www.nrg.co.il/images/archive/300x225/1/123/890.jpg)
Thanks.
I am working on a text translation and i want to show the translated text via qtip. There is a demo here but it doesnt useful for me. I want qtip to appear over the selected text after a function called. In this case the selection can be everywhere on the page that user wants and what will be the jquery selector now?
I think there are two solutions for me:
1- Getting X,Y coordinates of the selection and show qtip over there.
But how can i do that? Is there a function without using selector like show_qtip('content', x, y);
2- Getting the selected text as a jquery selector and show qtip over there.
But is it possible? Is there a way to use the selection in query selector string? I know something about :selection pseudo-class but can it be used as selector?
Shortly, thats what i want to do:
![[Image: 890.jpg]](http://www.nrg.co.il/images/archive/300x225/1/123/890.jpg)
Thanks.