Category Archives: Javascript

How to Get true pixel height and width of window in javascript

By | May 26, 2023

If you check the window outerwidth on a maximised browser window, you should get the resolution width of your screen or display in general. For example when I run the following code (in console) in Firefox I get 1920px which is my resolution width: window.outerWidth 1920 On Google Chrome however, the reported dimension is different… Read More »

Ajax based streaming and progress monitor

By | May 2, 2023

Streaming (Comet) Streaming means to send content part by part at some intervals in the same request. Or in other words, the client is able to process the response part by part, instead of waiting for the whole transfer to complete. In the context of http and web applications it is more specifically called Comet…. Read More »

Monitor progress of long running Php scripts with Html5 server sent events

By | May 1, 2023

Server sent events When running a long serverside task inside a web application it becomes very useful, if not necessary to report the progress of that task in realtime to the clientside, that is the browser. Earlier there was no easy way to do this and hacks had to be constructed to achieve such a… Read More »