Results 1 to 8 of 8

Thread: Updating Menu scripts for iPad/iPhone and Android devices in Accordion

  1. #1
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Updating Menu scripts for iPad/iPhone and Android devices in Accordion

    Hi,

    I was looking for some advice where to put the following code to update the menu script for Accordion?:
    http://www.dynamicdrive.com/forums/e...ndroid-devices

    "var ismobile=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i) != null, //boolean check for popular mobile browsers"


    I do not see it in Accordion Content script (v2.0)
    http://www.dynamicdrive.com/dynamici...scrolltoheader

    Any help would be appreciated,

    Thanks
    Kev
    Last edited by Beverleyh; 05-05-2015 at 02:58 PM. Reason: personal link removed from makeshift signature - URL allowed when minimum post count reached

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Hmmm, I can't see why the modification would benefit that particular script.

    Is there something in it's behaviour that indicates to you why it's needed? Does it not work for you in certain cases?

    I can confirm that it works fine here on iPad and iPhone.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The script doesn't work on Chrome and Opera on Ipad and Iphone. It works on Safari and works on all browsers on windows PC

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I can't say I'm seeing any problem.

    The demo page works fine here on iPhone 5S and iPad Mini using the following browsers;
    - Safari
    - Chrome
    - Mercury
    - Dolphin
    - Opera

    Which aspects aren't working for you in Chrome and Opera on iPhone / iPad?
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #5
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The initial code is to expand the text with the hover action, this is not possible on a touchscreen so I guessed the code would resolve it by seeing it is a phone/ipad and change it to a click to action.

    My issue is that you have to hold down the click on the phone which selects the header bar, then click again and it expands. I seam to have to hold it down for longer to expand it as appose to a quick click to expand. Is there a way to shorten the click time?

    (Thanks for the amount of effort you are spending on this Beverleyh)

  6. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    I tested every header bar and link in the demo page in all those browsers and everything opens with a single tap for me - no long press. The 300ms delay is there but then it always is - maybe try Swiftclick to eliminate it? There's some info on that in this blog entry http://www.dynamicdrive.com/forums/e...lose-Sub-Menus

    I don't experience any need for holding down though. Are we talking about the same demo? Please direct me to the specific area where you're having problems because at the moment I'm not seeing any in the 5 iOS browsers ive tested in.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  7. #7
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It was specifically on my page I did 6 years ago and thought it would need a bit of updating. Here is the link: http://www.sascomputing.com/services.php. (it missed it on my first post)
    Last edited by Beverleyh; 05-06-2015 at 12:22 PM. Reason: formatting

  8. #8
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    As the problem does not present itself in the DD demo page, what I would do in your shoes is reconstruct a test page, starting with just the DD demo, and building back up in logical blocks (to recreate your full page) until you find the script that is causing problems/conflicts.

    I've a feeling it's the FastClick script that is the root of your woes - read my blog post http://www.dynamicdrive.com/forums/e...lose-Sub-Menus - other people have noted issues with it too. An alternative (SwiftClick) is included in the post so you might be able to try that. Or leave both out altogether - your website isn't responsive so that's a bigger issue than the usual 300ms delay on iOS .
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Ultimate Fade In Slideshow--Freezes on ipad and iphone
    By dcarlson in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 01-26-2013, 07:27 PM
  2. Does any lighbox style of script work on iPhone/iPad and Android phones?
    By mlegg in forum Looking for such a script or service
    Replies: 3
    Last Post: 08-30-2012, 11:21 PM
  3. Replies: 3
    Last Post: 07-22-2012, 10:25 PM
  4. Expandable Sticky Bar suitable android/iphone device
    By shlomo in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-07-2012, 05:51 PM
  5. Replies: 0
    Last Post: 06-21-2011, 06:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •