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 gallery with AJAX

Featured Replies

Hi all,

 

I've been working on a site for a local arts organisation (test site at http://www.uberleaf.com. I'm using Wordpress as the CMS and the NextGen gallery plug-in to upload and display images.

 

On the home page I am using

 

<div class="image-grid">
<?php
if (function_exists("nggDisplayRandomImages"))
{ nggDisplayRandomImages('6',$Width,$Height); }
?>
</div>

 

to display 6 random thumbnails every time the page is loaded.

 

The client would like these images to change without a page refresh. I have tried to use a number of AJAX scripts that I've found on the web but nothing has worked. I tried the code used by Chris Coyier at http://css-tricks.com/video-screencasts/60-ajax-refreshing-rss-content/ but couldn't get that working either.

 

Do you guys have any idea how I might go about this?

 

Cheers,

 

Keith

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.