Log in

View Full Version : Jquery to capture screen



davelf
12-27-2010, 09:57 AM
Is there any Jquery or Javascript that we can use to capture our monitor, so when we click share we can send that image through the social media like facebook.

I've seen this effect on some flash website, they capture what are we doing on website and we can share it to facebook as market promotion strategy.

Thank you so much.:)

Nile
12-27-2010, 04:34 PM
You cannot do this with javascript - impossible.

djr33
12-27-2010, 09:45 PM
This is something that you should be able to find a lot of information about using Google (http://www.google.com/search?q=javascript+screen+capture).

Screen captures are taken at a lower level in the system than the browser. It's not something that you can access via Javascript, or at least it will often (always?) be blocked. But take a look at that information and see if any of it helps.

davelf
12-28-2010, 02:53 AM
really sorry guys, may be i give a wrong direction about my problem.

Here is the example:
if i have an image, Christmas tree.
and i have a lot of button that can trigger active the ornament on the tree like lamp, star, candy cane that can we add to the Christmas tree.

here is the illustration:

this is the page, with ornament as button, so user can add any ornament he/she want into the Christmas tree.
http://www.dynamicdrive.com/forums/attachment.php?attachmentid=3690&stc=1&d=1293504557

this is after user click to the button and add what ever button they want, when they finish make the decoration, they can save it as image. Like this with the ornament they like stick on the tree.

http://www.dynamicdrive.com/forums/attachment.php?attachmentid=3691&stc=1&d=1293504715


NOTE: User cannot drag the object, they just click on the ornaments, and the ornaments appear like magic on the Christmas tree, hehe.

So, is it possible. Or may be this is too crazy to develop?:D

djr33
12-28-2010, 06:56 AM
Now I understand.

You can use Javascript to save variables about where the images are located. But that won't be an image (like a jpeg) that you can save.

You could use the GD image functions library in PHP to generate the image if you'd like. Then you could save it. But that's fairly complicated and requires more than just Javascript.

davelf
12-29-2010, 07:20 AM
the first thing that came out from may head about this page that i develop is javascript + PHP, so with database i can make a combination, for example:


if i add angle, bell, candy cane ornament, so i call image 1
if i add angle, candy cane ornament, so i call image 2

See the different, but this is mean that i need a lot of combination image, on my database.
Facebook games - Mousehunt use the same method like i want to do, hehe.

But thx anyway djr33....