/    Sign up×
Community /Pin to ProfileBookmark

Events triggering on closing specific tab.

Just a quick question and can be a very high level answer, no detail required hehe

I have a quote page, which when a client receives a quote if he doesn’t hit ‘save’ but just closes the window then it triggers an event that sends an email out to him telling him the reference number so he can access it again.

Now with tabbed browsing I’m being told (by the programmers) the goalposts have changed somewhat.

I want to do the same thing if the client closes his Tab in a tabbed browser.

I’m being told that if the client has 10 tabs open and he closes the browser(thus closing all 10 tabs) the event (email being sent out) will trigger 10 times.

I’m not a hardcore coder but I would of thought that you could target the specific tab your application was appearing on and just trigger the event for that tab closing?!?

Hopefully that made sense, basically I need to know if I’m being told the classic *rub the chin it’ll cost you* IT equivalent of a plumbers excuse ?

Cheers

Matt
<insert witty comment here>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangNov 26.2007 — I'm being told that if the client has 10 tabs open and he closes the browser(thus closing all 10 tabs) the event (email being sent out) will trigger 10 times.[/QUOTE]Hopefully not all tabs/windows contain your site.

Even if it were so, the server could 'hold' the email requests for a period of time, remove duplicate requests and then send the others.
Copy linkTweet thisAlerts:
@nighthawk999authorNov 26.2007 — No, just in general. So the other tabs could be anything.

So it's possible to trigger an event to send the email, but 'hold' the event as it were at the server, do a compare and delete the duplicates? based on closing a tab or the entire browser window?

Thanks
Copy linkTweet thisAlerts:
@FangNov 26.2007 — So it's possible to trigger an event to send the email, but 'hold' the event as it were at the server, do a compare and delete the duplicates?[/QUOTE]Should be doable.
closing a tab or the entire browser window?[/QUOTE]The effect is the same
×

Success!

Help @nighthawk999 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...