IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Text input, URL and Frame Control

    Posted Wed May 21, 2014 05:26 PM

    I have several text input controls whose input I’m using to build a URL and when a button is clicked I want the content of the what the URL points to displayed in a Frame Control. I’m building the URL with JavaScript that is ran when an onClick event for the button fires.

    How do I get the URL that I build with the JavaScript to target a Frame Control?

    I tried this:

     
    
    document.getElementById('#{caf:cid("frameURLTest")}').value = url;
    

    where url is the URL I built with the JavaScript and frameURLTest is the Frame Control I want the content displayed in but it did not work.

    Is there a way of doing what I want?


    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 2.  RE: Text input, URL and Frame Control

    Posted Wed May 21, 2014 05:43 PM

    Try this:

    CAF.model('#{caf:cid("frameURLTest")}').element.src = url;

    #webMethods-BPMS
    #webMethods
    #MWS-CAF-Task-Engine


  • 3.  RE: Text input, URL and Frame Control

    Posted Thu May 22, 2014 02:43 PM

    That did the trick. Thanks!

    On a general note is there any documentation that describes how to determine what the properties are for any given control that can be accessed by JavaScript like this?

    For example in Designer and the CAF Developer documentation there is not a src property associated with the Frame Control and says to use the Value property for the URL. If you hadn’t told me to what to use would I know to use src?

    Thanks again.


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods