Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Anchor links close popup layer problem

    Have a popup problem..

    I'm creating a custom mobile menu using a popup layer. I have the popup layer locked using (lock) and added a custom close button using popup:close

    Now on the popup layer I have two Link to anchor links that go to anchors on the page. Clicking an anchor link on the popup layer goes to the page section fine but the popup layer remains visible blocking the content, ideally I would like the popup layer to close when clicking an anchor link.

    I tried selecting Link to anchor option and using popup:close in Link to field but you can't have both at the same time.

    Putting "#anchorname popup:close" in the Link to field just makes a broken link with all that text and "popup:close #anchorname" is just popup:close without the link. Would be nice if you could use it this way with anchor links but seems you can't.

    Does anyone know a way of closing the popup when clicking an anchor link?
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,706

    Default Re: Anchor links close popup layer problem

    xtom, not tried but just a thought.

    Can you include Open link: Same window (_top)?

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #3
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    1,740

    Default Re: Anchor links close popup layer problem

    I make pop-up layer menus for all my mobile sites and all I do is untick the 'close pop-up automatically'. The pop-up closes when the visitor navigates to whatever page they've tapped on. True, you do have the ugly little cross to close manually, but it's not in your face and no one has ever mentioned it when I've sent the site out for approval and testing.

  4. #4
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Anchor links close popup layer problem

    Can you include Open link: Same window (_top)?
    Hmm that makes popup disappear in the preview but not when I preview in Firefox or Chrome.

    I make pop-up layer menus for all my mobile sites and all I do is untick the 'close pop-up automatically'. The pop-up closes when the visitor navigates to whatever page they've tapped on. True, you do have the ugly little cross to close manually, but it's not in your face and no one has ever mentioned it when I've sent the site out for approval and testing.
    I tried this but I don't like this default close button especially on a main nav menu. Also if you use same page anchor links it's still seems the same problem in that it won't close automatically, you still have to click either the default close button or a custom one. Not an iassue when changing pages but it is for the same page anchor links.
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,706

    Default Re: Anchor links close popup layer problem

    xtom, could you put a bare-bones text file together for all the things you are using?
    I don't want to spend time building up the wrong thing.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  6. #6
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Anchor links close popup layer problem

    Experimenting with it for a while now and I think one way of doing it would be to add a query with a random string into the link so something like /?r=123#myanchor to force a page load and go to the anchor but there's no straight forward way of doing this. So for now I think I'm just going to avoid using same page anchors in the pop menu and maybe create some dedicated pages for the content instead. Don't worry about it, it's not worth a complex solution but thanks for the suggestions.
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,886

    Default Re: Anchor links close popup layer problem

    Hi Tom, perhaps this will help, it's based on a xar file created by Siran. Does it meet your requirements?
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  8. #8
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Anchor links close popup layer problem

    Don't think it helps Egg but thanks. It looks like that file is for navigating to anchors on other pages from a popup which I have working already but the problem I have is when a link on the popup layer goes to an anchor on the same page and making the popup close when you click the link. Being able to combine popup:close with a working link somehow would have been nice but I don't think it's possible without a lot of trouble so going to avoid it for now.
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

  9. #9
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,886

    Default Re: Anchor links close popup layer problem

    Okay Tom. Here's a single page example that links to a layer 'pop-ups' with anchors that work and remain open.
    Attached Files Attached Files
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  10. #10
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Anchor links close popup layer problem

    Not quite what I'm looking for. I need the anchors on the Mouse Off layer for always visible page content and the popup menu needs to close when clicking the links not remain open.
    XT-CMS - a self-hosted CMS for Xara Designers - Xara + CMS Demo with blog & ecommerce shopping cart system.

 

 

Tags for this Thread

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
  •