jeudi 3 novembre 2016

How to send data back to apache server after getting information locally on the machine using javascript?

I am attempting to gather data from my apache server from the local host connecting to it and sending back the data back to the server so that all others can see the information. Currently this is the code I have running on my server:

<!DOCTYPE html>
<html>
<body>
<div id="example"></div>
<script type="text/javascript">
var x=navigator.plugins.length; // store the total no of plugin stored
var txt="Total plugin installed: "+x+"<br/>";
txt+="Available plugins are->"+"<br/>";
for(var i=0;i<x;i++)
{
   txt+=navigator.plugins[i].name + "<br/>";
}
document.getElementById("example").innerHTML=txt;
</script>
</body>
</html>

currently this script takes the information from the client and displays what plugins are present for that specific user. How would i have it so that the data is sent back to the server and basically have the web server create a page of all the data of anyone who has connected to the server? in essesnce I would be creating a log of everyone who connects to my server and display what plugins they have. The biggest issue i am having right now is getting the information back to the server.




Aucun commentaire:

Enregistrer un commentaire