470,636 Members | 1,462 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

newbee question 2


Hi,

I want to refresh/reload the current page but I want to use the same code on
every page on the site so instead of changing the line in every page

location = 'test.php';
location = 'test2.php';
location = 'test3.php';
location = 'test4.php';

etc.

I want a single line that will just do it no matter what the page is named.

R.

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
Sep 27 '05 #1
3 994
Ross wrote:

Hi,

I want to refresh/reload the current page but I want to use the same code
on every page on the site so instead of changing the line in every page

location = 'test.php';
location = 'test2.php';
location = 'test3.php';
location = 'test4.php';

etc.

I want a single line that will just do it no matter what the page is
named.

R.

Hi Ross,

That is much clearer. :-)

Try location.reload(true);

Regards,
Erwin Moller
Sep 27 '05 #2
ASM
Ross a écrit :
Hi,

I want to refresh/reload the current page but I want to use the same code on
every page on the site so instead of changing the line in every page

location = 'test.php';
location = 'test2.php';
location = 'test3.php';
location = 'test4.php';

etc.

I want a single line that will just do it no matter what the page is named.


and (once more) what is suposed to do your php ?

location = "test.php?test='+self.location;

will send url of active page as value of a variable 'test'
attached to your php's url

then in your test.php
by a php http_request (or something else like that, see a php ng)
you get url of page loaded
after ... what you'll do with that info ... no sè ...

--
Stephane Moriaux et son [moins] vieux Mac
Sep 27 '05 #3
Lee
Ross said:


Hi,

I want to refresh/reload the current page


So why didn't you title this post "Refresh/reload current page" ?

That way, somebody coming along after you, looking for information
about refreshing the current page would know that they might find
an answer in this thread.

There are also many people who choose to ignore posts that don't
give some hint about the topic in the subject line.

Sep 27 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Gene Kahn | last post: by
3 posts views Thread by Newbee | last post: by
2 posts views Thread by Newbee Adam | last post: by
2 posts views Thread by Martin Hvidberg | last post: by
2 posts views Thread by Mel | last post: by
reply views Thread by Martin Arvidsson, Visual Systems AB | last post: by
2 posts views Thread by Rene | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.