/    Sign up×
Community /Pin to ProfileBookmark

Firewall blocking hidden windows!!!! HELP!

Hi

I was wondering if anyone has any ideas on how to get round the following problem:

I a have written a visit tracking system whereby i use javascript to collect page duration screen size etc, when the user closes the window it triggers the onunload function that calls a php page posting the above values in a hidden window drawn off the screen. The problem is that is pop up window blocking is present (i.e in symantec etc) then it does not work.

I have also tried loading the page in a img src etc but it seems to screw everything up on the onclose i.e. when the user leaves it goes to a blank page??

Any Help is greatly appreciated

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriFeb 08.2004 — hmmm sounds interesting why does it have to be in a popup cant it be on the main page in a string?, AFAIK u cnt get round most popup blokcers well good ones because thats what there for to stop popups, kinda defeats the object
Copy linkTweet thisAlerts:
@craigh999authorFeb 08.2004 — Hi Again

How would i go about doing that?

Do you mean have all the php code in a document.write statement? i.e. document.write('<?php>'); etc

Is tha above possible?

Many Thanks for your help
Copy linkTweet thisAlerts:
@AdamGundryFeb 08.2004 — No, you cannot generate PHP using document.write(), because PHP has to run on the server before the client gets the code (and hence before it executes the Javascript). You would be better off coming up with a solution that does not require popups.

Adam
×

Success!

Help @craigh999 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.3,
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,
)...