Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Creating a link to a pop calendar on every page?

    Hi all,

    I'm looking to create a single - centrally maintained popup table (formatted as a calendar of events) that can be linked to from any page that has a button on it, to appear on top of the current page.

    I'm thinking....Create a hidden page with the calendar on, add a button on the pages where I want the pop up to appear which is linked to an iFrame pointing to the hidden calendar page.....Or is there another/better way to achieve this?

    Currently I have pop calendars on several pages, but each calendar as a stand alone pop up, rather than a single calendar needing multiple updates to change each time I publish

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

    Default Re: Creating a link to a pop calendar on every page?

    Stuk, that is exactly what I would do.

    Xara - Popup Events.xar

    I've not tested with Variants though.

    For a variant solution, I might just create the Events as a standalone design for Link to it as a new Window.
    The Links will work from any page or Variant and is always the one truth.

    Acorn
    Last edited by Acorn; 16 February 2023 at 02:11 PM.
    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
    Apr 2012
    Location
    SW England
    Posts
    17,828

    Lightbulb Re: Creating a link to a pop calendar on every page?

    An update.

    I created a one-page Calendar: 2023 Events Calendar.xar
    This page could be appended to your existing design but for frequent updating, it is better to remain separate.

    It is published or exported into the same folder as the main site.
    If is was part of the main design, this would be automatic.

    Create your main design and add either or both of the following Links to text or buttons or images liberally throughout:
    1. javascript: window.open("2023events.htm");
    2. javascript: window.open('2023events.htm', 'events', params);

    The first open the Events in a new Tab.
    The second creates a pop-up window that can be positioned and resized in lots of ways.

    The params values are in the Website Head (code):
    <script>
    let params = `scrollbars=no,resizable=no,status=no,location=no, toolbar=no,menubar=no,width=800,height=1100,left=1 00,top=100`;
    </script>

    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

  4. #4
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: Creating a link to a pop calendar on every page?

    Hi Acorn,

    Many thanks for the solutions....currently working through your examples, will report back with a positive result hopefully.

  5. #5
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: Creating a link to a pop calendar on every page?

    So I published your calendar 2023 example to the same folder as my test site here:
    http://6lumley.xara.hosting/huntonpc/2023events.htm

    I then added a button link on the index page of my main test site here:
    http://6lumley.xara.hosting/huntonpc/index.htm

    Linked as follows:
    javascript: window.open(http://6lumley.xara.hosting/huntonpc...&#39;,params);

    I then added an html placeholder rectangle yo the page and added your suggested params to the Html Head
    Not sure if that’s the way to do it? The link opens OK in a new window, but cant work out how to link to a pop up window?

    Any further advice welcome
    Thanks again for your interest in my query

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,828

    Info Re: Creating a link to a pop calendar on every page?

    Quote Originally Posted by stuk34 View Post
    So I published your calendar 2023 example to the same folder as my test site here:
    http://6lumley.xara.hosting/huntonpc/2023events.htm

    I then added a button link on the index page of my main test site here:
    http://6lumley.xara.hosting/huntonpc/index.htm

    Linked as follows:
    javascript: window.open(http://6lumley.xara.hosting/huntonpc...&#39;,params);

    I then added an html placeholder rectangle yo the page and added your suggested params to the Html Head
    Not sure if that’s the way to do it? The link opens OK in a new window, but cant work out how to link to a pop up window?

    Any further advice welcome
    Thanks again for your interest in my query
    Almost.

    javascript: window.open('http://6lumley.xara.hosting/huntonpc/2023events.htm', 'events', params);
    You need to i9nclude quotes around the path.

    As it is in the same folder, you can use the simpler:
    javascript: window.open('2023events.htm', 'events', params);


    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

  7. #7
    Join Date
    Apr 2020
    Location
    North Yorkchire
    Posts
    35

    Default Re: Creating a link to a pop calendar on every page?

    Thanks again, working well, Ill move to the live site now!

 

 

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
  •