Current location: Hot Scripts Forums » General Web Coding » JavaScript » Open feed back page


Open feed back page

Reply
  #1 (permalink)  
Old 03-03-06, 12:21 PM
pallabmondal123 pallabmondal123 is offline
Newbie Coder
 
Join Date: Feb 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Open feed back page

hi

I am trying to open a feedback page in my site which is in my domain.
this page will be open when user visit the site and after closed all the pages.
how can possible with help of javascript.this site also capable to open popup.

example.
-------
suppose I have one my own business site http://yansandfibers.com which provide market
intelligence services (industry news,report,pricewatch)of textile industries. when
customer visit the site and see information of this site and he or she open few pages for that.
when he or she closed all the pages that time I want to open feed back page which gives the
customer feedback about this site.

pallab.

EDIT: This post has been replaced with the "updated" version due to duble posting.

Last edited by TwoD; 03-06-06 at 02:13 PM. Reason: Double posting is not allowed.
Reply With Quote
  #2 (permalink)  
Old 03-03-06, 06:20 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Are these sites on your domain?
Are the sites opened in a popup?
I think more details are needed to answer this quiestion in the best way.
Do you have an example?
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
  #3 (permalink)  
Old 03-06-06, 02:38 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
If you open a page with window.open() you can store a reference to that window by doing var myWinRef=window.open().
One way to do this would be to keep an array of all the opened window references and loop through it whenever one of the popups are closed.
If all of the entries in the array have the .closed propety set to true, it means all the windows have been closed and the feedback page could be launched.
You'd also need a variable set to true or false depending on if the feedback page has been shown or not. Just so it won't be shown again if the user opens and closes windows after it has been shown.

The problem with this approach is that users tend to close a window as soon as they are done with it. The result would be that the user only opens and closes one page before the feedback site appears.
Another problem is that the user will see the feedback page each time he visits the site and opens/closes a window. That easily gets annoying.

Anyway, I'm just spawning ideas here and I'm not sure they are useful or not. I think the best solution would simply be a feedback link on your site. That way the users get to choose if they want give feedback or not. They are in any case most likely to close the feedback window because it popups when they haven't clicked anything. Not to mention all the popup-blockers out there that would simply kill all the windows before they even open.
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i make php open another web page? wonderland PHP 6 09-23-08 06:55 PM
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Reloading browser goes back to home page JHoward555 ASP 2 08-30-04 10:30 PM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 11:04 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.