Hoppa till huvudinnehållet

Run javascript from workflow forms (XSS cleansing stopped this from working)

Kommentarer

4 kommentarer

  • Permanently deleted user
    Hi Marc,

     

    I'm not sure if this will help, but one thing you may be able to try, is allowing unsafe content in your viewer.  Don't do this lightly though, as it will be disabling all the new XSS security improvements.  

     

    To do this:

     

    1) In Manger edit your viewer

     

    2) In the viewer management pack, go to "Application"

     

    3) Check the box to allow unsafe content

     

    I hope that helps!

     

    Thanks,

     

    Danny
    0
  • Luuk Schaminée
    I solved it with a custom form. On this form I print the in the workflow created table which includes hrefs to JavaScript calls which calls a workflow.

     

    I used an example I found in the support site. Search for an issue from Mark Rempel called "geocortex.workflow.ExternalActivityInfo" or use this link to get a working example mentioned in this issue: https://www.dropbox.com/s/8r32jbsr60spf69/UseOfDynamicExternalActivity.rar?dl=0
    0
  • Marc Rempel
    Hi Luuk,

     

    Thanks for the response and link to the activity. 

     

    The piece I am not understanding is how the output of the custom form gets printed in the data view.  Is it just the innerHTML of the userName_error dom element?  And where is the view constructed?

     

    My exisiting workflow does a bunch of processing and then I want to display an output form that allows for some interaction with the map (turn on/off layers, view addtional info specific to part of the output,etc).  Do you happen to have a more fully put together example with your datagrid I could look at?

     

    - Marc
    0
  • Marc Rempel
    Okay, dug in more deeply to the downloaded example from Luuk S post above and got it wired up.  I was missing the piece of how the html and css are encoded in base64 in the output compiled module.  Decoding the base64  I could then see the html and css and recreate the module to extend and make applicable for my application. 

     

    - Marc
    0

Du måste logga in om du vill lämna en kommentar.