Skip to content

Can paste in other scripts for the popup #33

@mccoyg

Description

@mccoyg

Hi Thanks for this. I am trying to paste in javascript code for a survey in the popup and it does not ever show up. even when I escape the beginning and ending script tags. Is there a workaround for this?

Here is the code I am trying to paste in:

bioEp.init({ width: 500, height: 500, html: '<div id="bio_ep_content">' + '<script>' + '(function(t,e,n,o){var s,c,a;t.SMCX=t.SMCX||[],e.getElementById(o)||(s=e.getElementsByTagName(n),c=s[s.length-1],a=e.createElement(n),a.type="text/javascript",a.async=!0,a.id=o,a.src=["https:"===location.protocol?"https://":"http://","widget.surveymonkey.com/collect/website/js/Ba1lnQm_2FNYvZAGHkhU85JlWZ_2FT_2FztMmG1aFooyX1_2Ft5zu_2BT0CMg94fD0n5defRkk.js"].join(""),c.parentNode.insertBefore(a,c))})(window,document,"script","smcx-sdk");' + '</' + 'script>' + '</div>', cookieExp: 0 });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions