jeudi 8 janvier 2015

Issue with multiple tab Javascript API

Our partner provided us with javascript API. We call this api based on some events.


For example we receive an event from backend saying save Record XYZ




  • Note1: this is an event rather than response of user request.




  • Note2: we use signalR for event.




Everything works fine but problem comes when user open two tabs of the same page. Then the same API is called twice and two records are saved instead of one.


This must be one of very typical problem with javascript and I was hoping there must be some design pattern or solution exist for this?


Aucun commentaire:

Enregistrer un commentaire