DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Reports Module

You are not authorized to post a reply.

Growing Member

    DNN 9.3.2
    Reports 6.1.0

    Has the Reports Module been altered to strip out Javascript? I have had javascript in the reports module many times on other websites. This is my first one on DNN 9.3.2 and I'm sending an onclick through to my reports and that word gets stripped out. Likewise, if I send an anchor with href="javascript:... then the word Javascript gets removed before it hits the screen. Has the module been altered? Is there a way to enable js that I have forgotten to apply? web.config change? Thanks for your help. It is appreciated.

    Veteran Member

      I am not aware of additonal filters added to the reports module, but you may report the issue at https://github.com/DNNCom...y/DNN.Reports/issues

      Growing Member

        Received a response from Ernst Peter Tamminga,
        "The HTML template is indeed stripped from JS using the standard DNN-API routines. This was done by design to minimize security issues. I can imagine that this is a drawback. I will rethink it, to see if we can circumvent this."

        Veteran Member


          I have never uses the Reports Module, but have you tried to add the JS to the module header or footer? Or use Will Strohl's Content Injection Module?

          Happy DNNing!

          Michael Tobisch

          dnnWerk Austria
          DNN Connect

          Growing Member

            Thanks Michael for your suggestions! I'm sure they are good ones as I've used them before. Sometimes while generating rows of data in the Reports module I included some inline JS for things like a Delete button for each row. It is this inline JS that is being stripped. There are other ways to accomplish those buttons, but this was a change in the Reports module that I wanted to check if it was true or my mistake somehow.
            You are not authorized to post a reply.

            These Forums are dedicated to the discussion of DNN Platform.

            For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

            1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
            2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
            3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
            4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
            5. No Flaming or Trolling.
            6. No Profanity, Racism, or Prejudice.
            7. Site Moderators have the final word on approving / removing a thread or post or comment.
            8. English language posting only, please.

            Would you like to help us?

            Awesome! Simply post in the forums using the link below and we'll get you started.

            Get Involved