We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello,

    I was wondering whether I could get a file as seen here http://institutions.interactivebrokers.com/en/accounts/advisors/advisorBrokerWhiteBranding.php?ib_entity=inst at the TWS Whitebranding section working inside modx?

    as I understand it, it’s basically an xml file with .jnlp extension.

    I hope, somebody can help.

    thank you in advance for your help.
      • 19889
      • 616 Posts
      I was just wondering whether I could have the following code within modx instead of having it in an external file:

      <?xml version="1.0" encoding="utf-8"?> 
      <jnlp codebase="http://www.interactivebrokers.com/java/classes/" href="tws.jnlp">
      <information>
      <title>Trader Workstation</title>
      <vendor>Interactive Brokers</vendor>
      <homepage href="http://www.interactivebrokers.com"/>
      <icon width="64" height="64" href=" http://www.interactivebrokers.com/images/tws64x64.gif"/> 
      <description>Interactive Brokers Trader Workstation</description>
      </information>
      
      <security>
      <all-permissions/>
      </security>
      
      <resources>
      <j2se version="1.5+" java-vm-args="-Dsun.java2d.noddraw=true -Xmx160M"/>
      <j2se version="1.4+" java-vm-args="-Dsun.java2d.noddraw=true -Xmx160M"/>
      <jar href="jts.jar"/>
      <jar href="jcommon-1.0.0.jar"/>
      <jar href="jfreechart-1.0.0.jar"/>
      <jar href="pluginsupport.jar"/> 
      <jar href="jhall.jar"/>
      <jar href="other.jar"/>
      <jar href="rss.jar"/>
      <property name="sun.java2d.noddraw" value="true"/> 
      </resources>
      <application-desc main-class="jclient.LoginFrame"> 
      <argument>c:\ibjts</argument>
      <argument>gw1.ibllc.com:4000</argument>
      </application-desc>
      </jnlp> 


      however, doesn’t seem to work though - maybe I just create a weblink to the file instead.
        • 33337
        • 3,975 Posts
        You can add the content type in Tools -> Configuration, and use that in the document. Its only an XML document? right?
          Zaigham R - MODX Professional | Skype | Email | Twitter

          Digging the interwebs for #MODX gems and bringing it to you. modx.link
          • 19889
          • 616 Posts
          I added application/x-java-jnlp-file to the content types - know I have this <jnlp codebase="http://www.interactivebrokers.com/java/classes/" href="[~125~]"> in the file but that doesn’t seem to work as the file need to have a .jnlp extension