Relative Content

Tag Archive for javascripthtmlajax

JS returns wrong value on back arrow in Microsoft Edge

After clicking the back arrow in Microsoft Edge, my JavaScript runs once again. But there’s a problem: the values returned by getElementById("options").value are not the correct values for the option that is visible from the dropdown selection.

Ajax/JavaScript get request to update a HTML element

I am trying to make an empty circle appear when the contents of a GET request is a 0, and a full circle appear when the contents is 1, not really sure how to implement this. Needs to poll every 5 seconds or so.