Include custom JavaScript in RapidMiner Web App

MaxF
MaxF New Altair Community Member
edited November 5 in Community Q&A

Hi everyone,

I'm trying get include more dynamic elements into my RapidMiner Web App and for that purpose I want to include custom JavaScript.

I have been using this a lot by generating the HTML/Javascript code in RapidMiner and publishing it as an app object. This works fine, but the code is always included in an i-frame.

I now need to include JavaScript in the main HTML-document of the web app. I've tried entering the code in different places, e.g. the web app description, tooltip or in text components. However, my code was always escaped and I wasn't able to get it interpreted by the browser. Has anyone ever done that or has any suggestion on how to achieve this?

 

Thanks and Greetings!
Max

Tagged:

Best Answer

  • JEdward
    JEdward New Altair Community Member
    Answer ✓

    Have you tried using parent.$("selector") within the iFrame to search for elements outside the iFrame? 

     

    That might be an option.

     

Answers

  • JEdward
    JEdward New Altair Community Member
    Answer ✓

    Have you tried using parent.$("selector") within the iFrame to search for elements outside the iFrame? 

     

    That might be an option.

     

  • sgenzer
    sgenzer
    Altair Employee

    hi @MaxF - there was an initiative a while back to use the D3 libraries in RM Server web apps which may be similar to what you're trying to do. You can see the video here.

     

    https://www.youtube.com/watch?v=9BeX9aU4zxE

     

    Scott

     

  • MaxF
    MaxF New Altair Community Member

    parent.$("selector") might actually be sufficient for what I am trying to achieve

    Thank you both for your input!