Grabbing Display ID with javascript

Comments

5 comments

  • Avatar
    Darius Aleksas

    RV allows you to assign different content for different displays from a single presentation without any of that hackery.

    1
    Comment actions Permalink
  • Avatar
    Jim Johnston

    Hey Darius,

    Thats true, but the project im working is already pretty hacky, I actually used your multi page template as a starting point. Basically the buttons need to change where the iframes link to depending on the display. 

    http://preview.risevision.com/?type=presentation&id=4ac63892-5800-46ee-8a70-b17ba5e02471

    I'll see if i can think of a way round using RV's built in features, but it would be cool to have direct access to the info.

    0
    Comment actions Permalink
  • Avatar
    Robb Price

    Jim,

    I'm not aware of how to grab the Display ID I'm afraid. 

    Ctrl + Shift + . always works for me...Are you running the latest version of the supported Player?

    0
    Comment actions Permalink
  • Avatar
    Wendi Borden

    No need for anything fancy.. it's a URL parameter and easy to grab. I use it for different things. Something along these lines would get you there.

    function getUrlVars() {
    var vars = {};
    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
    vars[key] = value;
    });
    return vars;
    }

    1
    Comment actions Permalink
  • Avatar
    Wendi Borden

    I don't have my code handy but you may need to reference the parent iframe depending on where you're at.

    0
    Comment actions Permalink

Please sign in to leave a comment.