Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
I am using the EventGhost webserver and so far it's working great. I am a little stuck on how to get events to fire without a button though. I want to use onbeforeunload to fire an event when somebody closes the browser or navigates to another page. So far I have this:
Dear Walter!
I (completely independently of you) reached a very similar solution.
However, there are some differences:
1. I chose the POST method.
2. I did not deal with the different compatibility of the different browsers. My solution only works with Chrome and Firefox (and partly Opera). Opera does not support onbeforeunload event (so it can not work with you too).
3. My solution allows the user to submit events when navigate to another page (for each page you can select another event).