views:

154

answers:

2

I am not sure if we need our own custom browser for this. If we do, what is your recommendation for open source browser?

We need application that is able to capture location of user clicks on the web page in the browser on Windows machine (cross-platform would be a huge plus). Store the coordinates in the file.

Later be able to open browser on that webpage and do the click screencapturing and reading the URL of the new page that user will be taken too.

Any idea on how to implement this? What libraries, open source projects could help us? Can this be done in Java? C?

Thank you

A: 

This could work for you: (Taken from this website here)

$('#mouse-click').click(function(e){
    $('#mouse-xy').html("X: " + e.pageX + " Y: " + e.pageY);
});

This uses jQuery which I think you may like. After that you could use AJAX to send the mouse click results back to your server and save that information in a file.

Robert Massaioli
A: 

jQuery will achieve this for you, if you put this code inside your page,

    $('#mouse-click').click(function(e){
       var x = e.pageX;
       var y = e.pageY;
});

jQuery is a JavaScript framework that you'll find will run in most browsers, certainly all the mainstream ones.

From there, you'll need to tell us what platform your developing on for us to give you any guidance on how you can make use of any of this.

mattdlong