Topic: Xajax refresh only if content is new

I am using xajax to display an image and  recall the function periodically to get a new source address from server. The image source is not changing as fast as xajax refresh does. So, same image is refreshing in every refresh cycle.

I would like to know whether there is a way to keep the image without refreshing until image source has a new address in sever side.

Any support is highly appreciated.

Re: Xajax refresh only if content is new

Perhaps you could send the current address back to the server with the call. The server logic checks the address against the new one. If it's he same just return an empty response object.

Another thing would be to extend the time between calls to the server...

Anyone else have any ideas?


If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.