Question

We use a heatmap at work (it is secure so I can't post it here and I certainly cannot give the url). Now the heatmap is a sigle image, but it is clickable on different segments - There are different icons on the map and each of them pops up a different window(So it is not just a single click event for the whole image)...

Now this map is generated by a program called Whatsup Gold, and it is definitely not Flash...

The map constantly monitors line connection activity - When an internet line goes down, the green icon turns red. The map is refreshed every few minutes...

What I want to know: Is there a way, either using a browser plugin, or Javascript, or any other method to notify me that the status of the map has changed(any change on the map) without having to open the browser window everytime?

Here is the part of the markup of the map...(the whole map)

<a href="mappickhost.asp?map=WhatsUpTL.wup">
   <img border="0" src="WUG1.jpg" ismap="">
</a>

Update:

Request and Response headers(As retrieved from Firebugs Network tab)

Request:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Encoding:    gzip, deflate

Accept-Language:    en-US,en;q=0.5

Authorization:  Basic dGxpbms6dGxpbms=

Cache-Control:  max-age=0

Connection: keep-alive

Host:           ***************

Response

Cache-Control   no-cache

Content-Type    image/jpeg

Date    Fri, 17 May 2013 07:06:30 GMT

Expires Mon, 17 Jul 1980 20:00:00 GMT

Pragma  no-cache

Server  WhatsUp_Gold/8.0
Was it helpful?

Solution

I have added a screenshot of firebug console in firefox (press F12 to open it). I executed a xmlhttprequest (line at the bottom) and you can see (the black line) that it connected to stackoverflow. Firebug shows xhr connections in the console by default but you can select what you want to see by clicking the little arrow button to the right of the word "Console" in the tab that activates the console.

Even having the console open with StackOverflow shows that the site connects every so often to update question status and comments.

If nothing shows up there than it might show in the Net tab. It has to make a connection to somewhere to see if network is still up. If it connects to a service than xhr is likely if it just tries to download a textfile sometmes or sets the src of an image than it'll show up only in the net tab every time it checks.

enter image description here

OTHER TIPS

We use a heatmap at work (it is secure so I can't post it here and I certainly cannot give the url). Now the heatmap is a sigle image, but it is clickable on different segments

Surely it's not just the image that's causing interaction. Plain images can't do that. If it's not Flash, then it could be JavaScript powering it. There must be some library and it could have an API. I suggest you start reading the documentation (if any).

The map constantly monitors line connection activity

This is done in a lot of ways, and the most common is polling AJAX or Web Sockets. To check this out, you can take a look at the Network Tab of the browser's debugger. If there's a supported API, you can check it out first and save the hassle of debugging the implementation.

If no API exists, inspect the requests and find a way to replicate it. Once you can replicate it or use the API, you can create your plugin or create a custom app for it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top