hi all,
okay basically i am in need of refreshing a page from a different page.
For example, i click a link on page 1 which take me to page 2, then the first thing page 2 does is refresh page 1.
Is this possible and if yes, how can it be achieved?
Many Thanks,
J
refresh a page from another page?
Started by welton122, Oct 18 2010 09:24 AM
7 replies to this topic
#1
Posted 18 October 2010 - 09:24 AM
|
|
|
#2
Posted 18 October 2010 - 10:13 AM
Why would you want to do that?
#3
Posted 18 October 2010 - 10:34 AM
because when the user clicks on a link, page 1 changes its content but the user cant see it as it hasn't refreshed
This perfectly describes what i am after:
"The "main page" will open a remote page where the user will add/edit/modify
data then on the confirmation page, there needs to be a close button.
However, before the window is closed, I want it to reload the "main window"
so that they can see the changes they made."
Reference: Remote Refresh Main then Close - JavaScript / Ajax / DHTML answers
This perfectly describes what i am after:
"The "main page" will open a remote page where the user will add/edit/modify
data then on the confirmation page, there needs to be a close button.
However, before the window is closed, I want it to reload the "main window"
so that they can see the changes they made."
Reference: Remote Refresh Main then Close - JavaScript / Ajax / DHTML answers
#4
Posted 18 October 2010 - 12:07 PM
#5
Posted 18 October 2010 - 12:29 PM
Yes page 2 is a pop up window, is it possible to do what I am after?
#6
Posted 18 October 2010 - 01:06 PM
I assume a simple AJAX request on page 1 speaking to a serverside script every X seconds. If the serverside script finds the database or file or whatever is changed, then update the page.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
#7
Posted 18 October 2010 - 01:28 PM
How do i do that?
#8
Posted 19 October 2010 - 01:35 AM
AJAX Tutorial , just write the PHP script to echo the contents of the page from database. You can use JS's setTimout() function or whatever to update the page each second.
Alternatively you can use a meta redirect, creating an infinite loop on the same page each 10 seconds, which will refresh the new contents when page 2 is done editing.
Alternatively you can use a meta redirect, creating an infinite loop on the same page each 10 seconds, which will refresh the new contents when page 2 is done editing.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.


Sign In
Create Account


Back to top









