• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How To Redirect After Post (was: Confirm window pop up for Firefox, IE but not Chrome)

 
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A "Confirm" window pop up for Firefox, IE but not Chrome for my web page with auto refresh every 10 seconds by javascript.
Attached is the screen shot.
How to stop this "Confirm" window from popping up?
confirm.gif
[Thumbnail for confirm.gif]
screen shot
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is to do with your desktop settings, the below setting could help you.

1. Right-click My Computer and choose Properties.
2. Click the Advanced tab on your System Properties dialog box.
3. Click the Error Reporting button on the Advanced tab.
4. Place a checkmark next to "Disable error reporting."
5. Leave the other radio button unchecked next to the text labeled, "But notify me when critical errors occur."
6. Click OK.

Thanks to Y! Answers !!
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is telling you thta you are reposting data back to the server. How are you refreshing the page?

Eric
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or fix it for real. You shouldn't be leaving dangling posts. Do you really want to tell your users that they need to adjust their browsers to use your site? That's one of the best ways to make sure that you have no users.

Read this article and pay particular attention to the PRG pattern.

 
albert kao
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eric Pascarello wrote:That is telling you thta you are reposting data back to the server. How are you refreshing the page?

Eric



 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

albert kao wrote:

Eric Pascarello wrote:That is telling you thta you are reposting data back to the server. How are you refreshing the page?

Eric





The problem is still that you aren't doing a Post-Redirect-Get. Read the article linked by Bear. Just search for PRG and read that part, at least. Then you'll be able to reload all day long with no dialog box popping up.
 
albert kao
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Or fix it for real. You shouldn't be leaving dangling posts. Do you really want to tell your users that they need to adjust their browsers to use your site? That's one of the best ways to make sure that you have no users.

Read this article and pay particular attention to the PRG pattern.



I use the Spring framework for JSP with function such as
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response).
Is there any article for the PRG pattern in the Spring framework?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using the pattern is independent of the framework.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Using the pattern is independent of the framework.



Hm, sort of. Different frameworks forward and redirect using different means (although under the hood it is all the same). The important thing is that after the POST he issues a redirect. I'm going to move this to the Spring forum because now it is about Spring and not JavaScript.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I meant was that the pattern can be applied in any framework -- obviously the specific mechanisms will vary.

Any framework that wouldn't allow you to use such patterns belongs on the scrap heap.
reply
    Bookmark Topic Watch Topic
  • New Topic