Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    663

    Default Re: Slideshow for text content

    Hi Egg, just in case you are interested. I have added the navigation outside of the iframe.
    DEMO
    The functions called when clicking a button are defined at the website head. The id is defined in the placeholder body code.
    Attached Files Attached Files

  2. #12
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    17,425

    Default Re: Slideshow for text content

    Thanks for that Siran, I was attempting to do it that way but my coding not up to it. Where do you get the:

    javascript:sendIframeSetPage("txtsld",0);
    from? The bit in the brackets

    "txtsld",0
    Gone into my goodies folder
    Egg
    Endangered Species
    HP xw9400 W/S / 2 x Dual Core AMD / RAM 16 GB / 240 GB Kingston SSD / 120 GB Kingston SSD / 500 GB HDD / ATI Radeon HD 5450 / Windows 10 / 64 Bit /
    Xara Designer Pro X (12 or 365)


  3. #13
    Join Date
    Apr 2015
    Location
    Germany
    Posts
    663

    Default Re: Slideshow for text content

    There are three functions defined in the website head code: sendIframeSetPage, sendIframeNextPage and sendIframePrevPage. Don't miss these, it won't work without them.
    sendIframeSetPage seeks the element with the ID given as first parameter and calls a Xara function inside of the iframe to go to the selected page (given as the second parameter, but note that numbering starts from 0).
    sendIframeNextPage and sendIframePrevPage go to the next/previos page and don't require a second parameter. In fact the do call sendIframeSetPage with special values for the second parameter and the later has some extra handling for these.
    The answer to the question how a function can be called inside of an IFRAME was given on stackoverflow as almost always...

  4. #14
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    17,425

    Default Re: Slideshow for text content

    Ah! see it now. I thought I'd looked through all the website & page options.
    Egg
    Endangered Species
    HP xw9400 W/S / 2 x Dual Core AMD / RAM 16 GB / 240 GB Kingston SSD / 120 GB Kingston SSD / 500 GB HDD / ATI Radeon HD 5450 / Windows 10 / 64 Bit /
    Xara Designer Pro X (12 or 365)


 

 

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
  •