Coded buttons not working on IPAD

I have the following piece of code within a larger script.
This is for users to scroll NEXT and PREVIOUS items in my database on button press #next1
and #previous1.

all works fine on iphone and pc but these buttons don’t work on IPAD.

Any expert advice appreciated - I am a novice developer!

$w(“#previous1”).disable();
$w(“#next1”).disable();

if (local.getItem(‘dynamicPageURLs’)) {
const dynamicPageURLs = local.getItem(‘dynamicPageURLs’).split(‘,’);
const currentPage = ‘/’ + wixLocation.prefix + ‘/’ + wixLocation.path.join(‘/’);
const currentPageIndex = dynamicPageURLs.indexOf(currentPage);

if (currentPageIndex > 0) { 
  $w("#previous1").link = dynamicPageURLs[currentPageIndex - 1]; 
  $w("#previous1").enable(); 
           
} 

if (currentPageIndex < dynamicPageURLs.length - 1) { 
  $w("#next1").link = dynamicPageURLs[currentPageIndex + 1]; 
  $w("#next1").enable(); 
} 

}

So it works on desktop and iPhone but not iPad?

yes thats correct - all my other buttons - save - download etc work on ipad - but not these

Hi Mark,
Can you provide the site url, that you are working on?
I’ll check this issue.
Thanks.

Hi Alexander
sample URL:

www.clanfieldaluminiumgutters.co.uk/Sales/Mr-Jemes1

although this is a secure page so let me know if you need me to setup access for you

thanks
Mark

Hi,
Just checked it on iPad Air 2: 10.3.2 with Safari - and it looks ok (buttons are enabled, after login). Maybe you have more specific scenario?

Thanks.

Thanks Alexander I have just tried on a more recent ipad and it works ok. Sorry for the inconvenience.
One more question - my client wants to upload .pages (apple mac format) files to his database. Is there anyway this can be an accepted file format?!! (long shot i know)

Great,
Regarding the “.pages” format, I can suggest to convert them to one of the next supported formats - PDF, DOC, DOCX, PPT, PPTX, PPSX, XLS, XLSX, ODP, ODT, or EPUB.