Using this code for a popup-lightbox but not working :(

  • Profile Image
    jpehrler
    Asked on August 11, 2014 at 04:56 PM

    I've used this code before as a lightbox popup, but changed the ID# and the src, and now not working. 

    Any suggestions?  I'm stumped.

    Thanks in advance.

    Preston Ehrler

    ------------------

    <script src="//support.jotform.com/static/feedback2.js?3.1.1522" type="text/javascript">
    new JotformFeedback({
    formId:'41565471934157',
    base:'http://support.jotform.com/',
    windowTitle:’Got a Question',
    background:'#FFA500',
    fontColor:’#00000',
    type:1,
    height:500,
    width:550
    });
    </script>
    <a class="lightbox-41565471934157" style="cursor:pointer;color:blue;text-decoration:underline;">
      <img class="aligncenter size-full wp-image-531" alt="got a question" src="//milfordnow.com/wp-content/uploads/button.png" width="193" height="39"></a></p>

  • Profile Image
    EltonCris
    Answered on August 11, 2014 at 05:52 PM

    Hi,

    It looks like there's a problem with your apostrophe characters.

    One these lines,

    windowTitle:Got a Question',

    and

    fontColor:#00000',

    The open apostrophes are different which causes the error. Try to change it with the default ones like the following, the lightbox should start working normally again.

    <script src="//support.jotform.com/static/feedback2.js?3.1.1522" type="text/javascript">

    new JotformFeedback({

    formId:'41565471934157',

    base:'http://support.jotform.com/',

    windowTitle:'Got a Question',

    background:'#FFA500',

    fontColor:'#00000', 

    type:1,

    height:500,

    width:550

    });

    </script>

    <a class="lightbox-41565471934157" style="cursor:pointer;color:blue;text-decoration:underline;">

      <img class="aligncenter size-full wp-image-531" alt="got a question" src="//milfordnow.com/wp-content/uploads/button.png" width="193" height="39"></a>

    Hope this helps!

  • Profile Image
    jpehrler
    Answered on August 11, 2014 at 09:31 PM

    Beautiful.  Thank you!

  • Profile Image
    EltonCris
    Answered on August 12, 2014 at 02:06 AM

    Glad it helps. 

    Cheers! =)