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.
missing widgetResizer.js file and incorrect tracking code in source code zip fileAsked by AvrohomYisroel on November 18, 2014 at 10:23 AM
I just created a simple form, with a signature and submit button, downloaded the source code and opened the .html file in a web browser. As the form didn't work, I looked at the console output, and saw an error message saying that js/widgetResizer.js doesn't exist.
Looking in the js folder, I can't see a file by that name.
Any ideas? I haven't touched the code, just downloaded and opened it.
Just tried grabbing the source code from your site, rather than downloading all the files, and noticed that the widgetResizer.js in the code offered there is referenced as http://jotformeu.com/js/widgetResizer.js which explains why it couldn't find it in the version I had.
So, it looks like there's a bug in the code that generates the files for download. I tried downloading again, and it was still wrong.
Also, in the downloaded files, there is the following just after the form's closing tag...
<img src="//tracking.jotform.com/form/43214215345344" style="display:none" />
Not surprisingly, this doesn't work.
We have a couple of ways to how to embed your form code.
Under "Setup & Embed"->"Embed Form".
You can check the guide here to know which form code to use: https://www.jotform.com/help/67-Which-Form-Embed-Code-Should-I-Use
If you are using the Source Code, the .js and .css files are still hosted in our side. Although you can also download them.
If you would like to use the source code. Please place the <script> and <style> tags to the the <head> area, and then the <form> code should be inside the <body> tags. I've copy the form you have and made a .html file with the source code on it. You can check the live cloned form embedded on a test_form.html here: https://shots.jotform.com/charlie/test_form.html. You can check page's source code by "Right Click"->"View Page Source".
I hope this helps. Let us know if you need further assistance. Also, if you are still having problems, can you share screenshots of what you are seeing on our end?
We'll wait for your response.
Thanks for the reply, but I think you missed my point. I know how to use the files, I was pointing out that the downloaded files contained errors. The links to widgetResizer.js and the tracking were both incorrect.
I downloaded these twice to double-check, and the code was wrong both times. It was correct in the little box where you can copy and paste the code, but not in the files in the downloaded zip.
I'm checking on the issue. Please allow me some time to work on it and get back to you with relevant information.
Thank you for your patience.
I see what you mean when we download the source code in zip file. However, as we check the widgetResizer.js file it shows that the original code to resize embed widgets is now disabled, and it's now handled inside WidgetsServer.js file. And so, the widgetResizer.js file might not be included in the zip file.
And the code related to tracking, this type of URL is called Protocol-relative URL and seems to be valid. Using this method, the browser requests the asset with respective http or https protrocol automatically. It should be something related to tracking the JotForm internal purposes.
Please be noted that the downloaded version of source code is working fine to receive submissions.
Thank you for reporting this and let me forward this to our next level support team to see if it needs to be done something in this regard.
Thank you for using JotForm.
Pardon the delayed response.
This has been fixed - all resources will be availed when the source code is downloaded.
If you are experiencing issues with a specific form - please share it with us, and we will gladly take a look.