[jQuery] Re: capture user's selection on a html page

2009-04-13 Thread ihomest...@gmail.com
n@googlegroups.com [mailto:jquery...@googlegroups.com] On > > Behalf Of ihomest...@gmail.com > Sent: Monday, April 13, 2009 11:36 AM > To: jQuery (English) > Subject: [jQuery] capture user's selection on a html page > > Hi, > > There is an onselect event for javascript w

[jQuery] capture user's selection on a html page

2009-04-13 Thread ihomest...@gmail.com
Hi, There is an onselect event for javascript which allows you to capture user selected text in text input or textarea box. Is there a way to capture user's selection anywhere on the html page? I know several javascript applications which allow users to select elements on a html page and allow y

[jQuery] how to avoid load jquery several times?

2009-04-10 Thread ihomest...@gmail.com
Hi, Is there a way to avoid loading jquery multiple times? I have some javascript code which needs to use jquery and at the same time. This script is embeded in others' web site. One way I could do is to check and then decide whether to load jquery: if (typeof jQuery != 'undefined') { // do som