Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

Custom Objects Frame Support?

  1. #1

    Custom Objects Frame Support?

    I am trying to create a custom object with two buttons that, when clicked, will reveal a) another person's estimate and b) the last estimate of the current subject. I attempted to do this by switching an iframe from a blank one to one with data, and it failed (I think the blank frame ended up filling the screen). I've gotten around the issue by starting with text in the HTML as display:hidden, then used the JS command for the button:

    document.getElementById("blank1").style.display = "block"

    which reveals the text. I'm not sure how I would be able to track a previous response for display on a current screen in a custom object without using an iframe from a separate HTM file. Any ideas anyone? Thanks.

  2. #2
    jarvis24 Blair Jarvis, Administrator
    Can you get the item to work in Internet Explorer? If you zip and post the files, I'll take a look.

  3. #3
    Here are all the files.

  4. #4
    jarvis24 Blair Jarvis, Administrator
    Here is a modification. Note that the way I changed it, you can click one of the buttons and the text in the text boxes will change accordingly--without requiring a reference to an external file. Right now the javascript has explicit text included, e.g., "this is good advice". You could change it so that MediaLab could insert the value of any variable from the current session including one from responses.xls.

    i.e., instead of
    document.getElementById("blank1").value="This is good advice."

    You could use:
    document.getElementById("blank1").value="<advice>"

    Hope that helps. If you get it working I'd love to see it along with the que file that calls it!

    For more detail on inserting variables in your custom items, see:
    http://www.empirisoft.com/medialab/help/variable_reference.htm