Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Reload problem

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to reload the contents of one popup window from another popup window using using the reload() method in Javascript.This works great except for one thing. The reload() method results in this prompt
to the user:
The page cannot be refreshed without resending the information.
Click Retry to send the information again,
or click Cancel to return to the page you were trying to view.
every time the page gets reloaded.
Is there a way to turn off the above prompt via JavaScript? Please suggest a solution for this ASAP.A example would be much better.Thanks in advance.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
do not use reload. Instead do

window.location.href = window.location.href;


Eric
 
Shashidahanu Iyyanar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply.But,I am still unable to overcome the problem.I used the following line in my javascript code as mentioned by you:
window.location.href = window.location.href;
But,the parent popup window contents is still not getting refreshed.By the way,the parent popup window contents is static in nature.Please give a solution for this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic