Java Script appears as code on our website

Options
The Javascript that is given to me when I've created a donation form only comes up as code when we try to embed it onto our website (wordpress website). Help!


<div id="bbox-root"></div>

<script type="text/javascript">

       window.bboxInit = function () {

           bbox.showForm('1e1cd05a-4061-4a55-b2ac-eac682495f94');

       };

       (function () {

           var e = document.createElement('script'); e.async = true;

           e.src = 'https://bbox.blackbaudhosting.com/webforms/bbox-min.js';

           document.getElementsByTagName('head')[0].appendChild(e);

       } ());

</script>



-Stephen

Tagged:

Comments

  • Hi Stephen,


    Can you provide a link as an example? I am a Web Developer as well as our Data Admin so I might be able to give more insight if I can see what the issue is.


    Thanks,
  • Here is the link to the webpage with embedded Javascript. 

    http://kyhistoryhalf.com/brick-form/


    -Stephen
  • Looks like someone posted the embed code incorrectly. There's a lot of inline Calibri font tags which makes me think it was copied and pasted out of an email. I would recommend editing the Wordpress page and copying and pasting the embed code directly, exactly out of Online Express. FYI - the code also appears in your meta description on the page which is less than ideal.
  • I've tried copying and pasting the embed code directly from online express into the wordpress page and I'm still ending up with code instead of the donation form. 
  • Stephen Clatos:

    I've tried copying and pasting the embed code directly from online express into the wordpress page and I'm still ending up with code instead of the donation form. 

    Was there any resolution to this? My organization is also having trouble embedding the code, and Blackbaud Support still has not responded to my inquiries from 3 days ago. We use Sharepoint for our website, but it is HTML, so not sure why the form will not upload. Any suggestions welcome! Thanks!

  • Recopy your code from OLX,  if it is coming via email or word doc, copy and paste it into the computer system "Notepad"  that will strip any formatting.  Then copy the code from the notepad into Wordpress TEXT veiw, not the visual view.  There is a tab on the upper right corner of your new page that says Text or Code. 

    See if that helps.


    Nancy


    Stephen Clatos
    :

    The Javascript that is given to me when I've created a donation form only comes up as code when we try to embed it onto our website (wordpress website). Help!


    <div id="bbox-root"></div>

    <script type="text/javascript">

           window.bboxInit = function () {

               bbox.showForm('1e1cd05a-4061-4a55-b2ac-eac682495f94');

           };

           (function () {

               var e = document.createElement('script'); e.async = true;

               e.src = 'https://bbox.blackbaudhosting.com/webforms/bbox-min.js';

               document.getElementsByTagName('head')[0].appendChild(e);

           } ());

    </script>



    -Stephen

     

     

Categories