Popup For First Time Visitor Only - Circumvent Blockers
Apr 22, 2010
I have merged two scripts to make a popup that comes up even if blocked, and is for first time visitor only (cookie). The problem is that the way I'm doing it, it might show one or more times to the visitor. I don't want that because it will be irritating and this is a high-priority client. I'm posting the whole script because I think the problem is calling the popup before checking the cookie, but not sure how to rearrange things.
Also, I did search and found some good dhtml stuff but don't want to rewrite. This was supposed to be done last night so if I can fine tune this for now, I'll have time to rewrite something better (or at least play around with another script). Also, the popup refuses to come up in IE - I have IE6, but I detest IE and their site doesn't even load in it so whatever. I tested in FFox3, Opera 10 and Safari and it seems to work but like I say because of the onclick - it will load at any click until the user goes to a different page. I added a refresh in there but it just made things worse - too much going on for the user at that point.
[Code]....
View 9 Replies
ADVERTISEMENT
Apr 20, 2006
Below is a snippet of code that i use in a script to call another file which open a new window, the problem is that popup blockers are blocking this. What i need to know is there a way to recode this so popup blockers can not block the new window opening?
".iif($showpopup==true,"
<script>
var force=0
function setwinfocus() {
window.focus()
}
window.open('mcfpopup.php','MakoCashFlow','width=790,height=500,left=10,top=10,toolbar=yes,menubar=n o,scrollbars=yes,status=yes,resizable=yes,location=yes');
setTimeout("setwinfocus()",1500);
</script>
")."
";
?>
View 4 Replies
View Related
Jun 21, 2010
Been using popup windows for years on my websites, launched by onClick, and they are not blocked, I would assume because they are called from the current page in the same domain. I'm using basically the same script in a new application, but it's launched by onLoad, again from a page in the same domain. It's being blocked by most browsers.
View 1 Replies
View Related
Aug 15, 2007
I created a little script on a section of a website that password protects the page. It gives a user 3 tries to enter the correct password and then if they get it wrong, it moves them to another page that says they don't have access.
Recently, I upgraded it to do a window.showModalDialog instead of just using a plain javascript prompt as they don't look as nice and clear as a customized JSP could.
However, now that we've sent that upgrade out, we're finding that some of our users are not seeing the window.showModalDialog and it just loads the page (not the no access page).
The script is below. When I look through it, it looks to me that a user with an active popup blocker should just be sent straight to the no_access.jsp file, but that isn't what's happening. Code:
View 2 Replies
View Related
Sep 26, 2009
I dont know much about the functionality on what causes some popups to trigger a browsers blocker and some not to.
Situation: I have an account information page (where users can edit their account details) one of the fields the user can edit comes at a cost. For billing I am using a 3rd party billing portal (standard form action pointing to the service & value is passed via post variable)
-user hits submit (not on the 3rd party billing form, my fake ajax button)a service is selected that cost $1 (lets say)verification DB is updated (no page reload)value field is updated in the 3rd party billing form to reflect the additional service I then initiate the form submit on the 3rd party billing form into a popup window I do not want to user to leave the site, I want the $1 billing window to pop up, they take care of it then close the window returning back to the site. In order to get the form to popup in a window I set the forms target to the popup window:
Code:
window.open("", paysys, "width=760,height=550"); functionality everything is working perfect, except most browsers catch the popped up window in their popup blockers. Anyone know how I can create a popup that isnt flagged by the browsers?
View 1 Replies
View Related
Dec 23, 2011
Anyone know how to pop-up image for visitor that visiting for first time?
the pop-up image should be appears 30seconds then it will open new window tab with adress page that i have attached to image then after 30seconds the pop-up automatically close.
View 6 Replies
View Related
Mar 16, 2011
I want to make a custom visitor tracking tool and like Google Analytics it must be able to track how long time visitors spend on each page.How do you recommend doing this?I thought of using the Javascript onload event to start counting time serverside and then the onbeforeunload event to do tell the server to end the time count. I'm just skeptic of an infinite visit duration if the visitor's browser for some reason doesn't call the event (ie power outage).
View 2 Replies
View Related
May 2, 2010
I have a .Net website that uses a text file to record when visitors arrive on a page.
However, I really want it to also store the date and time that a visitor leaves a page. I can easily calculate the time spent on pages within a session but currently have no way of knowing how long someone spent on the last page they visited during a session.
What I need is a script that runs when a page is unloaded. The script will update a text file (stored in the htdocs folder of the site) with the current time.
So far, I have come to the conclusion that I may need to use JavaScript and the window.onbeforeunload event but I cannot get any further.
View 3 Replies
View Related
Sep 22, 2009
I am looking for a pop up to collect emails when a visitor is leaving my site, I don't which pop up software can provide that.I know how annoying pop up can be but I am sure my visitors will be ok with it, they are even asking for it.
View 2 Replies
View Related
Jul 20, 2005
Let's say you provide an online service from 7:00AM to 6:00PM Eastern
Time (daylight time in the summer). Is there way of showing these
hours of availability on a web page in the user's local time?
View 8 Replies
View Related
Oct 14, 2010
I have the following code:
[Code]...
I want the lightbox window open only once a day for every unique visitor on my website. I understand I should use some sort of cookie implented, but I dont really understand how to.
View 4 Replies
View Related
Jul 12, 2011
My requirement: Each time a visitor arrives at a specific webpage i want the main image on the page to be different, or more specifically, one of 6 images which will be shown in rotation. Solution: Set a cookie. Each time the visitor access the page read the cookie and display the corresponding image. Then increment the value and rewrite the cookie, so that next time they'll see the next image in sequence. NB: if the cookie does not exist (first timer) or is at 6, then the value is set to zero (and then incremented).
Problem: Can't get my coding to work. Specifically it just doesn't do anything - no error message, no cookie written. I'm a very novice scripter, as in I've cobbled the coding together from bits off the net that i think i've managed to grasp some kind of an understanding of. Very suck it and see - so far lots of sucking and no seeing!
[Code]...
View 6 Replies
View Related
Mar 24, 2011
Is it possible for Javascript to check if the visitor's browser has enabled the option to print background images, and if not to popup an alert?
View 1 Replies
View Related
Jan 24, 2002
I know this has to be simple but I can't figure it out or find the answer anywhere...
On a page in my site, I have an " It calls a small window every time the visitor hits that page. How can I make the popup pop up ONLY the first time the user hits that page THAT DAY?
View 2 Replies
View Related
Oct 6, 2009
I would like to have a popup in front at all times, for instruction purpose, even when user doing something in back page, such as type something, select and change to new page, etc. This popup can only be closed by either click at "Close" button or "X" at top right corner.
View 5 Replies
View Related
Aug 13, 2010
Could someone point me any jquery function or plugin to control popups?
I need to close a login form (popup) if the user forget it opened (after timeout without user activity)
That is what I tried: (javascript only)
But it let me get the error "permission denied to read window.history.lenght"
Is there any jQuery alternative?
View 1 Replies
View Related
May 21, 2011
I want to make a pop up message that slides from left to center of the page. I want it to popup only for first time visitor of the day.
View 2 Replies
View Related
Mar 24, 2011
I need to delay a page from opening a new window for a minimum of 5 seconds to allow some php processing (inserting a new record into a table) to occur first. the open window code works fine without the time delay, but as soon as i attempt to put a delay in, nothing happens eg, the page no longer opens a new window called newrecord.php.
A submit button calls the function like so:
Code:
View 2 Replies
View Related
Apr 27, 2004
I'm looking for a date picker that I can use in a form that has multiple date fields. Does anyone know of one that can handle this?
View 1 Replies
View Related
Sep 23, 2009
Does Jquery perform better or worse than other Java library with regard to not triggering pop up blockers?
View 2 Replies
View Related
Sep 16, 2009
I have a chat application where when a button is click a pop up window for chat will appear. I want to bypass any pop up blocker so that my chat app will always show when my button is clicked. Is this possible?
View 2 Replies
View Related
Jun 8, 2010
I just wanted to know if javascript could possibly see where a visitor is heading to on the way out of a web site? Trying to find a more convenient way for people to enter URLs for bookmarks on my start page.
View 2 Replies
View Related
May 30, 2011
First off, I'm working with tumblr.com which allows Javascript, but not PHP embedded in the HTML pages. It strips them out. I want to be able to get the country code (us, ca, uk, etc.) when a visitor visits my webpage so I can provide links for their locale. I'm having a very hard time finding correct information with examples to get this working. There was some .js libraries out there, but they don't work properly and say I'm in CA when I'm in US, like the jsapi from Google. Is there a way to execute a .php script which would output the country code of the visitor and be able to read/capture this result within the Javascript?
View 7 Replies
View Related
Nov 24, 2009
I want to control where my visitors are coming fromSo not visiting from google or their homepage etc etc. i want them to enter the site from one specific site.
View 1 Replies
View Related
Dec 5, 2005
I want to be able to know how many time a user will spend on a page so basically, I need to get an onload time and an on leave time
View 3 Replies
View Related
Oct 30, 2011
My page has a form which has some sections that do not show unless needed, but if JS is turned off then these section will never show, so looking for a way to test if it is on or not and if not allow the page to display everything that would normally be hidden unless needed.
View 4 Replies
View Related