SteveMc
08-30-2007, 10:07 PM
1) Script Title: DHTML Widget V1.02
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
3) Describe problem: Using dhtmlwindow.open function with body tag OnUnload event does not work as expected.
I have a 3rd part survey hosted elsewhere (surveymonkey..nice features!) that I coded up using standard popup javascript and some cookie handling so user only sees it once every 30 days. I had some of our CSR’s test this and everyone was using blockers, so using this way to popup windows is useless for the advanced user. Since many of our visitors are not using the latest and greatest browsers, I may still be able to use old-school pop-ups to gather some intel. I used this method just 6 months ago and was able to get 50 surveys in one week. I only need 0.5 to 1% of the users to take the survey to get useful feedback.
Anyway, I created a new DHTML window using the DHTML Widget. I can open it with no problems using an anchor tag. It's when I attempt to use the OnUnload event that there is a clash between what I want to run and one line of code on the last line of the dhtmlwindow.js window.onunload=dhtmlwindow.cleanup. There is more to it that that, but I digress. I think trying to use the DHTML Widget using the OnUnload is the wrong way to approach the problem.
I looked into how to make this work and I am not a JS guru, so I believe that I would have to add an event handler or an event listener...whatever it's called, I just don't have time to play with it anymore. I use the DHTML windows before and it worked for what I needed, but it always takes way longer to customize and blah-blah-blah. So I stopped thinking of how to make it work and asked my self if this is even the right way to go about it.
We use PPC and we know we have a high bounce rate by reviewing Google Analytics. So the idea is to catch people leaving the site and ask them why they are leaving. It a 5-10 second 4 question survey. It’s really easy for a user to fill out. ALSO, if you use Google PPC, Google will NOT allow you to use a popup on a landing page - they don't to see a popup window when you land on the page or when you clicks away. So I am thinking of just using the popup after the first page and only on certain pages.
So here are my questions:
Is any one using popup surveys and how are you displaying them?
If you are using surveys, what kind of responses do you get and has it helped you make changes to your website?
Am I better off displaying a link prominently on the landing page?
Thanks,
--Steve
P.S. If there is a better website to post this kind of question, please point me in the right direction.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/
3) Describe problem: Using dhtmlwindow.open function with body tag OnUnload event does not work as expected.
I have a 3rd part survey hosted elsewhere (surveymonkey..nice features!) that I coded up using standard popup javascript and some cookie handling so user only sees it once every 30 days. I had some of our CSR’s test this and everyone was using blockers, so using this way to popup windows is useless for the advanced user. Since many of our visitors are not using the latest and greatest browsers, I may still be able to use old-school pop-ups to gather some intel. I used this method just 6 months ago and was able to get 50 surveys in one week. I only need 0.5 to 1% of the users to take the survey to get useful feedback.
Anyway, I created a new DHTML window using the DHTML Widget. I can open it with no problems using an anchor tag. It's when I attempt to use the OnUnload event that there is a clash between what I want to run and one line of code on the last line of the dhtmlwindow.js window.onunload=dhtmlwindow.cleanup. There is more to it that that, but I digress. I think trying to use the DHTML Widget using the OnUnload is the wrong way to approach the problem.
I looked into how to make this work and I am not a JS guru, so I believe that I would have to add an event handler or an event listener...whatever it's called, I just don't have time to play with it anymore. I use the DHTML windows before and it worked for what I needed, but it always takes way longer to customize and blah-blah-blah. So I stopped thinking of how to make it work and asked my self if this is even the right way to go about it.
We use PPC and we know we have a high bounce rate by reviewing Google Analytics. So the idea is to catch people leaving the site and ask them why they are leaving. It a 5-10 second 4 question survey. It’s really easy for a user to fill out. ALSO, if you use Google PPC, Google will NOT allow you to use a popup on a landing page - they don't to see a popup window when you land on the page or when you clicks away. So I am thinking of just using the popup after the first page and only on certain pages.
So here are my questions:
Is any one using popup surveys and how are you displaying them?
If you are using surveys, what kind of responses do you get and has it helped you make changes to your website?
Am I better off displaying a link prominently on the landing page?
Thanks,
--Steve
P.S. If there is a better website to post this kind of question, please point me in the right direction.