/    Sign up×
Community /Pin to ProfileBookmark

Page refresh???

Hi everyone,
Can anyone help with this???

Whenever i refresh my webpage after adding data through a popup window i get a message alert:

“page cannot be refreshed without sending the information again.”

And gives me two options: Retry and Cancel.

Is there a way where my page refreshes (with the new data posted) without displaying this message alert???

Thanx!

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@JuuitchanFeb 20.2006 — My lady, what makes you think that "refresh" is what you want to do?

First, let's define the word "refresh". I don't know much about it, and maybe different software uses different definitions, but it would appear that the definition of "refresh" relevant to your situation is something or other like this: Load the same URL as last time, with the same POST information as last time (did I use the correct terminology there?).

So, if you want _just_ the URL, without the form information, do something other than "refresh".
Copy linkTweet thisAlerts:
@JuuitchanFeb 20.2006 — May I see your code?
Copy linkTweet thisAlerts:
@konithomimoFeb 20.2006 — Refreshing the page without saving the data in a cookie or server-side-wise would just result in the page reverting back to its original state, meaning with its original data. To do what you appear to want to do, save the data into a cookie, or use PHP and JS together to store it in a database. Then just refresh the page and access the cookie/server to fill in the proper data.
Copy linkTweet thisAlerts:
@php_dudetteauthorFeb 24.2006 — Whatz happening is that...

on the click of a buttom/link a popup window opens. this window stores some data into the database. On closing the window i have the original page with the recently added information. Thatz y i want to refresh the page.
Copy linkTweet thisAlerts:
@php_dudetteauthorFeb 24.2006 — helpppppp !!!

:-)
Copy linkTweet thisAlerts:
@cbrookesFeb 24.2006 — Hi,

I presume you tried opener.history.go(0)?

The problem is the page was retrieved by doing a post from a previous page (I presume). I you dont need that posted information (i.e. you can GET it instead of POSTing it) then you can simply switch the url by setting location.href of the opener window.

Its early here so if this is gibberish then my apologies... ?
Copy linkTweet thisAlerts:
@php_dudetteauthorFeb 24.2006 — 
  • 1. i am using:


  • 2. <a onClick="window.open('URLName')" >link_name</a>

    to open a window.


  • 3. At URLName i enter data that is stored in a database on the click of an add button.


  • 4. Then i close it using:

    window.opener.location.reload();

    window.close();
  • Copy linkTweet thisAlerts:
    @konithomimoFeb 24.2006 — window.opener.location.reload(); only works if there was no form POSTing. Also, the reload() function will not work in some older browsers (though most people don't use those browsers).
    Copy linkTweet thisAlerts:
    @hobo_jonesJul 31.2007 — Instead of refreshing the page, maybe you could have the popup window tell the other one what fields it should update before it closes. The code would be something like:

    window.opener.formName.fieldName.value="input info";

    window.opener.focus();

    window.close();

    I'm not sure if this is completely correct syntax. It might be window.opener.document.formName.fieldname.value to properly access the fields to be updated.
    Copy linkTweet thisAlerts:
    @DetectJul 31.2007 — cbrookes's solution looks good.
    ×

    Success!

    Help @php_dudette spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...