Results 1 to 9 of 9

Thread: iPad won't keep the menu open in the switch content menu

  1. #1
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default iPad won't keep the menu open in the switch content menu

    Hi guys!

    On my site ( qwikad.com ) I have an accordion style switch content menu for several countries. If you click on a country it will open a menu with states/cities.

    All browsers keep a selected country open as long as you don't switch to another country. But iPad closes a selected country if you click on a state/city within that country.

    I am kind of guessing that it has something to do with the "persiststate" but I am not sure if it is.

    Is there something different about the iPad's browser? And.. can anyone suggest a fix to this?



    The original script is found here: http://www.dynamicdrive.com/dynamici...daccordion.htm

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No you don't, at least not on the home page you linked to that I can see. If I missed it, please explain where it is.

    Otherwise:

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by jscheuer1 View Post
    No you don't, at least not on the home page you linked to that I can see. If I missed it, please explain where it is.

    Otherwise:

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    If you go to qwikad.com it's on the righ-hand side of the site. Click on any country there. It does what it supposes to do in all browsers except iPad's. Are you saying you don't see the countries on the righ side of the site at all? What browser are you using? Thanks.
    Last edited by qwikad.com; 10-16-2012 at 08:08 PM.

  4. #4
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    Or are you saying you're using an iPad and everything is working fine? You see I don't own an iPad myself, I went over to my friends and when I was checking the site out on his iPad, the accordion style menu kept closing the country back up if I clicked on any city within that country (just what I explained in the beginning of the thread). If it's working fine in yours - I am happy! Maybe something was messed up in his iPad's browser's settings.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I meant, with all that was going on with the page, I missed the script. I just didn't see it.

    I don't have an iPad to test on. What I would suggest is using the defaultexpanded property instead of the persiststate. To do so, you would have to set the defaultexpanded differently on each page. This can be done server side and/or manually depending upon your site's setup.

    But first make sure cookies are enabled on the iPad. The persiststate requires cookies enabled. Using the defaultexpanded, though perhaps a little more complicated, does not.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    Ok, got it. I wonder if the cookies were disabled on his iPad. Because it does work just fine in Safari on my laptop.

    I was thinking about changing to defaultexpanded, but I don't want to make one country to stand out over the other when visitors first visit it.

    Thank you for your help!

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, it looks like you have some kind of CMS. That probably could be used to have no defaultexpanded when you land on the home page and the appropriate defaultexpanded for each country's page.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. The Following User Says Thank You to jscheuer1 For This Useful Post:

    qwikad.com (10-20-2012)

  9. #8
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    46
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    The browsing engine on safari for IOS is different than WebKit on safari on a mac. I have an iPad to test on, and it's not retracting when you choose a state.
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  10. #9
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by bernie1227 View Post
    The browsing engine on safari for IOS is different than WebKit on safari on a mac. I have an iPad to test on, and it's not retracting when you choose a state.
    It should be doing the right thing now even on an iPad. I've decided to keep one country always open (as it was suggested) and thus the problem is solved. Thanks a lot. This is a great forum. Never used it before but will be coming back.

Similar Threads

  1. Switch Menu gradually open
    By jendelaniaga in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-30-2008, 04:22 PM
  2. Switch Menu - Default to an open menu
    By noyellatmonkeys in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 12-11-2007, 08:32 PM
  3. Switch Menu Can't Open In IE
    By ArahMan7 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 06-22-2007, 05:35 PM
  4. Leaving more than one menu open on Switch Menu with cookie
    By Heavens_Candy in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-25-2005, 07:44 PM

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
  •