Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

refreshing a page

Featured Replies

hello i have been learning php and mysql for a month now thanks every one for the help,i have done my first project which was a shoutbox/chat room experiment which is workin you login in and it remembers your name and prints your name and message up now i need to refresh the page in a different way

 

this is the way i am doing it at the moment is

 

<script>

setTimeout("window.location.replace('chatlog.php')",14000);

 

</script>

now the problem is if you are typing a long message in it refreshes and you loose the message i have thought about using an iframe but when i do that i loose the login details

 

i could do with some thing other that a timed refresh script is this possible thanks again

  • Author
Google > Ajax updater ;)

Short: you have a js script that calls a php script and updates a div without reloading the page.

thanks for that great

  • Author
Actually what you need is an AJAX periodical updater (you probably want the chat refreshed periodically). :)

Here's a starter link for prototype.

Thanks again been trying to get this ajax thing work all day just carnt seem to get the hang of it

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.