Start Free Trial
Rise Vision Blog

Product News, Customer Stories and Updates from Rise Vision

Retrieving the iFrame ID of a Digital Signage Playlist Item

digital signage playlist item

Every item (Gadget, text, image etc.) that you can add to a Placeholder using our open source digital signage software, gets rendered inside of an iframe when the Presentation is previewed or run on a Display. You might find yourself needing to interact with that item from the Presentation's HTML. Luckily, there is a handy Javascript utility function you can use that makes this easier. To retrieve all of the iframe IDs for a particular Placeholder, just call getPlaceholderIFrameIds, passing in the ID of the Placeholder as a parameter. For example, calling this function for a Placeholder named ph0 would look like this:


This will return an array containing the iframe IDs, the order of which corresponds to the order of the items in the Placeholder.

I have used this function before when I've needed to run some code inside a Gadget from the Presentation itself, or to pause Gadgets in multi-page Presentations when they are not visible, and start them again when they are. Do let us know in the forum if you come up with some other clever ways of using this.

Keep your displays interesting - pick new templates every week!

Every week, we send Template recommendations that will make you look great and improve your audience experience. And the best part, they save up to 16 hours of content creation time every week.

Not convinced? Check out the email we sent last week.