/    Sign up×
Community /Pin to ProfileBookmark

Hi
I am looking for script (javascript)
that checks if the user has been there and if so refresh the page.

Thanks alot ?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterMar 12.2005 — You'll need some cookie-power.

Be more specific and we'll post you some code ?
Copy linkTweet thisAlerts:
@mm_enterprisesauthorMar 12.2005 — O ok ummmm

i am a novice user

but i trying to make a photo gallery online

but i update it twice a week so it needs to be refreshed for the user

to see the pictures

thnx
Copy linkTweet thisAlerts:
@UltimaterMar 13.2005 — Why does the photo gallery's webpage need to be refreshed at all?

Are there users that just stare at your webpage for two-weeks straight?

Once you update your websites pictures, any visitor that enters

your website afterwards will see the new-updated pictures.

I don't understand why you will need to resort to refreshing the users page [b]again[/b] on load.

Maybe you wanted some script to have an interval of every 5 minutes and check and see

if there are any new pictures available and if-so give the visitor a confirm popup -- "There are new pictures available, refresh page?".
Copy linkTweet thisAlerts:
@mm_enterprisesauthorMar 13.2005 — Well most of my users that view the photo gallery are very novice

so they won't know how to refresh

but when ever I go online to check the website it is the same so i have to refresh it to show new information.

so is there a javascript out there so it checks that the user has been on that page before (using cookies)

if the user has been there before it will refresh the page so the user will see the new information

and if the user has no cookie on their machine.

it will not refresh the page.

Thnx ?
×

Success!

Help @mm_enterprises 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...