Home > Javascript, Programming > Simple Jquery Snippet

Simple Jquery Snippet

March 28th, 2009

I need a jQuery code snippet that will detect when the user copies text/image on the page to clipboard and send this information together with HTTP_REFERRER via Ajax to the specified url.

1. If Text is copied call target_url?what=text&refer=HTTP_REFERRER&content=[copied text]

2. If Image is coped call target_url?what=image&refer=HTTP_REFERRER&content=[image title tag]&alt=[image alt tag]&url=[image url]


Simple Jquery Snippet

Comments are closed.
Bear