Lightbox not working.

  • Profile Image
    virtualkeyring
    Asked on April 09, 2014 at 06:42 PM

    I can't get any of my forms to open in a lightbox on my site. its a .net site. the url is:https://virtualkeyring.com/User/Subscription

    My code is:

           <script src="//cdn.jotfor.ms/static/feedback2.js?3.2.1292" type="text/javascript">
    new JotformFeedback({
    formId:'40937269896171',
    base:'http://jotform.us/',
    windowTitle:'VKR Join Request',
    background:'#FFA500',
    fontColor:'#FFFFFF',
    type:false,
    height:500,
    width:700
    });
    </script>
    <a class="lightbox-40937269896171" style="cursor:pointer;color:blue;text-decoration:underline;"> <img src="/images/Contact_us.png"></a>

  • Profile Image
    Jeanette
    Answered on April 09, 2014 at 08:51 PM

    The problem that  jquery scripts into your web page might be conflicting with the form's lightbox code.

    To avoid this problem you must find the last jquery reference, which I think is this one:

    <link href="http://code.jquery.com/jquery-latest.js" rel="stylesheet" type="text/javascript" /> 

     

    Then right after that, insert this code:

    <script type="text/javascript"> $.noConflict();</script>

     

    Let us know if the problem still persists

  • Profile Image
    virtualkeyring
    Answered on April 09, 2014 at 10:40 PM
    I am still having the issue. I thought it was probably a javascript conflict
    but before I sent the ticket I removed all the js folders to see if that was
    the problem but it didn't fix itI what you said to do in our response but
    still the same. Any other idea what I might be?
    --
    Julie Glenn
    Development Manager / Lead Developer
    Phone: 801-403-7907



    ...
  • Profile Image
    jonathan
    Answered on April 10, 2014 at 03:48 AM

    Hi Julie,

    First off, I noticed that your website is in secure layer, but the embedded form is not using https . I suggest you correct that also.

    Mostly, the secure layer of the website is preventing none secure content from working.

    I also noted that you have altered the given link text of the lightbox. (it was replaced with an image). BUT when I tried clicking the image in your website, it was not clickable

     

    --

    For the purpose of troubleshooting this, can you please use this embed code instead

    http://pastie.org/9069697

    Replace the embed code in your website with the one I provided, OR if you can create a new test page, it will be much better if we can isolate the testing instead.

    Please update us and we will test further.

    Thanks.

     

  • Profile Image
    juiceandblend
    Answered on April 12, 2014 at 01:56 AM

    HI Jonathan,

     

    I have the same issue, I have a lightbox popup to view the product images. But as soon as I add your lightbox code the iamge lightbox stops working. Now when you click on an image it jsut opens the image in the page and leaves the site? If i reomve the scrip reference:

    <script src="http://max.jotfor.ms/static/feedback2.js?3.2.1336" type="text/javascript">

    My image lightbox works fine. I have looked at lots of posts but none have the answer?

    AN example of this issue can be found here:

    http://www.juiceandblend.com.au/drinkware/ball-regular-mouth-quilted-12oz-jars-350ml

    If you click on the main image you will see the page open to the full image and no light box. The jotform light box is working perfectly. You can test this by clicking the banner to the right of the logo in the header.

    Hope you have a simple answer have spent ages on this issue.

    Thanks

  • Profile Image
    jonathan
    Answered on April 12, 2014 at 05:16 AM

    @juiceandblend

    Hi,

    I am sorry to ask you to do this, -- but we will be able to assist you much better if you had created your own post regarding your issue.

    I suggest you do this now using this link http://www.jotform.com/contact/ 

    You can also just copy your message from here and paste it over the new thread you will be creating. Just provide an appropriate title/subject for it. 

    We will attend to it as soon as we can.

    Thanks!

  • Profile Image
    juiceandblend
    Answered on April 13, 2014 at 10:02 PM

    No problem thanks.

  • Profile Image
    virtualkeyring
    Answered on April 16, 2014 at 12:27 PM

    Thanks Jonathan! That did the trick!