Encerrado

firefox extension that sends a POST request when user is idle and back from idle

It is a very simple firefox extension.

I want the user to be able to click the status-bar icon and input her username which will later be stored in a file. This username along with one more string will send to my server in plaintext using a POST request.

The above request will be send when the user turns on her browser, becomes idle and when she comes back from idle.

I can provide you with a bit of a sample code. I just can't make it work myself.

No design work required.

## Deliverables

It is a very simple firefox extension.

I want the user to be able to click the status-bar icon (or text) to input her username which will later be stored in a file. This username along with an appropriate status (new/idle/back from idle) will be sent to my server in plaintext using a POST request. Any server response to this resquest is to be stored as a string variable.

The above request will be send when the user turns on her browser, becomes idle and when she comes back from idle.

No design work required.

I want to get a fully-funcional extension in a ready-to-install .xpi format. Use a proper folder structure. Do not use .jar files, please.

You can use something like this for the request:

var req = new XMLHttpRequest();

[url removed, login to view]("POST", "[url removed, login to view]", true, "username", "idle");

[url removed, login to view]("blah");

And something like this to check if the user is idle:

var idleService = [url removed, login to view]["@[url removed, login to view];1"]

.getService([url removed, login to view])

var idleObserver = {

observe: function(subject, topic, data) {

alert("topic: " + topic + "\ndata: " + data);

}

};

[url removed, login to view](idleObserver, 60); // one minute

[url removed, login to view](idleObserver, 60);

Lastly, I want the code to have easy to understand comments and be easily extendable. I will want to work on it and add features over time as a learning exercise.

Habilidades: PHP

Ver mais: firefox extension post, string data structure, request icon design, icon jar, icon folder, exercise widget, data structure learning, new google icon, observe, make extension, idle, google extension, browser extension, send firefox, php extension install, format jar, script alert, check input function php, php exercise, extension post, sample post, topic post, send post code, firefox google, install extension

Acerca do Empregador:
( 0 comentários ) Gdynia, Poland

ID do Projeto: #3008924