Host lightbox script

  • Profile Image
    2ezy
    Asked on June 21, 2013 at 02:48 AM

    I was wondering if it is posible to put the code for the lightbox in my webpage rather than the code searching your website to launch the lightbox. I am mainly trying to do this for speed reasons. I have put the scrpit in the head tags to help speed up but didn't really make much difference.

    Thanks Mark

  • Profile Image
    Goldo
    Answered on June 21, 2013 at 07:02 AM

    Lightbox option from what I know will load everything from our servers. We use MaxCDN (Content Delivery Network), so form load speed in general should be fine all over the world.

    Can you share the the form, so we can test it from our end? Thanks.

  • Profile Image
    2ezy
    Answered on June 21, 2013 at 07:34 AM

    On the below link I have a standard form and also a lightbox which is for displaying some general info.

    http://www.2ezyskiphire.com.au/pricing/6m/x.html

  • Profile Image
    EltonCris
    Answered on June 21, 2013 at 08:23 AM

    @2ezy

    Your form loads fine here. The lightbox shows instantly. However, if you'd like to host the lightbox script, you can save this as js file http://cdn.jotfor.ms/static/feedback2.js?3.1.737 and upload it to your server. Now, simply update your lightbox embed code with the new js source.

    Example:

     

    <script src="http://yourwebsite.com/lightbox.js" type="text/javascript">

    new JotformFeedback({

    formId:'30042350021835',

    base:'http://jotform.co/',

    windowTitle:'Vouchers',

    background:'#FFA500',

    fontColor:'#FFFFFF',

    type:1,

    height:100,

    width:500

    });

    </script>

    Hope this helps. Thanks!