By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,137 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

newbee question 2

P: n/a

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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.