What's the Difference Between the Javascript and iFrame embed code?

The Javascript code and iFrame code may be used in different situations


Please note that this article was written for Boast Classic. A similar article for the new version of Boast can be found here.

Recent security updates to web browsers placed more restrictions on iFrames that collect data. This has made a major impact on how we collect photos and videos through our iFrame collection form. The Javascript submission form gives you and your customers a better experience on all browsers and has added design benefits as well. 

Why Should I Use the Javascript Embed Code?

The Javascript form embed not only helps solve issues surrounding iFrame security, but has a few additional benefits as well. First, using Javascript removes the browser compatibility and security issues that have recently arose with iFrames. This means that access to the camera portions of the form will no longer be blocked in certain browsers creating a smoother experience in all browsers. Another benefit of the Javascript form is that it will take on the styles of the website it’s placed on. This means that the form will blend into your website more seamlessly by inheriting your website’s CSS – allowing your fonts and colors to shine through.

How to Add the Javascript form to your Website

To add the Javascript submission form embed to your website, you’ll follow the same steps as adding the form before.

  1. First, you’ll login to your Boast account.
  2. Then you’ll select your “Collect Testimonials” tab on your dashboard.
  3. From there, select the form you’d like to embed and select "Share Your Form".
  4. Then, select "Using Your Website" and copy the Javascript embed code. 

Platforms Compatible with the Javascript Submission Form Embed Code

The new Javascript submission form will work on any website that allows Javascript. This includes:

  • WordPress
  • Drupal

If your website falls under these platforms, or allows Javascript in general, you’ll be able to incorporate the new embed form seamlessly into your website’s design.

Platforms Not Compatible with the Javascript Submission Form Embed Code

Some third party hosted websites are not compatible with Javascript embed codes. This includes but is not limited to the following websites:

  • Weebly
  • Wix
  • Squarespace

If you’re website is using one of these platforms, the Javascript form embed will not be compatible with your website. However, Boast is still compatible with your website in other ways. First, you can still link out to your form from your website. Using the Boast link, we give you the ability to send your customers to a Boast-hosted web page with access to your form. Secondly, we still offer an iFrame version of our testimonial display widgets which can be added to the website builders listed. Using the iFrame will cause submission issues for photos and video.