What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Some JS files are missing when you download your form source code

    Asked by Trent on October 28, 2013 at 09:22 PM

    Hi,

     

    I have created the following form: http://www.jotform.com//?formID=32970960991870.

    I am trying to host it locally by downloading the source code and copying it to my web root directory. I have tried both using the provided html document as the index and using a custom index with the following html:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    <html>

    <head>

    </head>

    <body>

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="registration.html" frameborder="0" style="width:100%; height:4384px; border:none;" scrolling="no"></iframe>

     

    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args = e.data.split(":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight":iframe.style.height = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

     

    </body>

    </html>

     

    In both cases the javascript doesnt work and the form is unavigable. I also get the following errors in the javascript console:

     

    GET http://localhost/images/styles/style1_bg.gif 404 (Not Found) registration.html:62

    As you can see this seems to indicate that there are missing files. Any help you can give on this would be greatly appreciated.

    source JotForm style height
  • Profile Image
    JotForm Support

    Answered by ashwin_d on October 28, 2013 at 09:59 PM

    Hello Trent,

    I'm sorry for the trouble caused to you.

    Have you downloaded your form's complete source code? When you download your form's source code it will also include the css and js folders. These folders have all the required files for your form to work. Please ensure that these folders are also uploaded to the same directory where you upload your form's HTML file.

    Here is a guide which should help you: https://www.jotform.com/help/104-How-to-get-your-Form-Source-Code You should download complete source code with css and js files. Check this screenshot:

    Hope this helps.

    Do get back to us if you have any questions.

    NOTE: Upon checking your account, I found that you have a guest account. That means you have not registered yet. Please register a free account using the same email address "ctang@sacs.nsw.edu.au" and this form will automatically move to your new account.

    Thank you!

  • Profile Image

    Answered by Trent on October 28, 2013 at 10:10 PM

    Hi,

    Yes this is the way i downloaded the source code. I also included the folders in the web root directory. 

    The js folder contains the files: calendarview.js, jotform.js, location.js, protoplus.js, protoplus-ui.js, prototype.js. There are no folders.

    The css folder contains the file calendarview.css and a folder called styles.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on October 28, 2013 at 11:41 PM

    Hello Trent,

    As the form you are trying to host is on your local server, we will not be able to check.

    Please share your index page source code where you have embed this from. You can use http://pastebin.com/ to upload your code.

    We will wait for your response.

    Thank you!

  • Profile Image

    Answered by ctang on October 28, 2013 at 11:56 PM

    Hi the source code is the same as in the first post. There is no other code.

  • Profile Image

    Answered by ctang on October 28, 2013 at 11:59 PM

    Here is the code in pastbin http://pastebin.com/yHzk0JYa

  • Profile Image
    JotForm Support

    Answered by EltonCris on October 29, 2013 at 02:12 AM

    @ctang 

    Thanks for reporting. I believed they are not yet included as of the moment.

    We will submit this to our developers for a review. Please take all the codes from Jotform for now and save them as js files if you want to host the files. You can get these files from the URLs below.

    http://www.jotform.com/js/vendor/jquery-1.8.0.min.js?v=3.1.340

    http://www.jotform.com/js/vendor/maskedinput.min.js?v=3.1.340

    http://www.jotform.com/js/json2.js?v=3.1.340

    http://www.jotform.com/js/vendor/imageinfo.js?v=3.1.340

    http://www.jotform.com/images/styles/style1_bg.gif

    Thanks!

  • Profile Image
    JotForm Support

    Answered by kenneth on October 29, 2013 at 03:57 PM

    Hi sorry for the inconvenience, this problem has been fixed now.
    Sources for the following will now be included once you download the zip file of the full source.

    *textbox - with input mask enabled
    *phone number - with input mask enabled
    *fileupload - with validate image enabled
    *filepicker when use to form
    *signature when use to form 

    some of mentioned above use jquery so it can probably solve missing jquery files.

    Please refrain to report missing files so that we can update the list.
    For now confirm if this working from your end.

    Thanks,
    Kenneth 

  • Profile Image

    Answered by ctang on October 31, 2013 at 07:53 PM

    That has fixed the problem! Thank you all for your help!

  • Profile Image

    Answered by khrisell on October 31, 2013 at 10:36 PM

    Hello,

    In behalf of the rest of the team, You are most welcome!

    We are glad to be any help with your JotForm needs.

    Please let us know if you need any assistance.

    Thank you for using JotForm.

  • Profile Image

    Answered by jamesforpm on October 14, 2014 at 11:21 AM

    I don't think the files are are being included in the source download. I downloaded my source and the masked input js was not included
  • Profile Image
    JotForm Support

    Answered by KadeJM on October 14, 2014 at 01:35 PM

    @ jamesforpm

    I've moved your thread here even though it's partly related but it is a separate issue.