Monday, 30 September 2013

jQuery alert if new cookie is created?

jQuery alert if new cookie is created?

I'm forced to work with iframes from external domains, to know what's
happening in them I need to do cross domain calls to my site which
sometimes create cookies without the pagereloading or any noticeable
actions happening in it.
Right now I'm working with a form that is hosted in an external server, on
submit the server makes a call to my site saving a cookie to let me know
the form has been submitted, I need to know the instant the new cookie is
created so I show a message in my site.
Is there a way to listen for new cookies and show an alert if a new cookie
is created?

No comments:

Post a Comment