Skip to main content
Participant
February 1, 2023
Answered

Carousel components

  • February 1, 2023
  • 1 reply
  • 608 views

Can a HTML page be used inside of a carousel in place of an image?

    This topic has been closed for replies.
    Correct answer osgood_

    You will have to include the html page via an iframe assuming you mean you want to include a whole complete html page which includes body tags..........l cant see why it wouldn't work but it doesn't sound like a good idea to me unless this html page has limited information. Sounds to me like a user would be really frustrated if they started reading the page and it moved sideways after a few seconds. Carousels are meant to house very short snippets of information, like a caption, a link and an image or just the image.

    1 reply

    Community Expert
    February 1, 2023

    What carousel are you using? Some pre-made scripts are designed to only work with a particular content type, thus what you are asking to do might be outside the scope of what the script is capable of handling. But if this is something you programmed yourself, yes, data can live outside the carousel and pulled in.

    Participant
    February 1, 2023

    I'm using a pre-made bootstrap script for the carousel.  Works just fine with images, but now my boss would like me to have it pull in a html page as one of the slides.

     

    osgood_Correct answer
    Legend
    February 1, 2023

    You will have to include the html page via an iframe assuming you mean you want to include a whole complete html page which includes body tags..........l cant see why it wouldn't work but it doesn't sound like a good idea to me unless this html page has limited information. Sounds to me like a user would be really frustrated if they started reading the page and it moved sideways after a few seconds. Carousels are meant to house very short snippets of information, like a caption, a link and an image or just the image.