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

    A call to document.write() from an asynchronously-loaded external script was ignored.

    Asked by dmcprofilevideos on July 17, 2014 at 12:01 AM

    Greetings,

    I am loading jotform via jQuery  getScript function:

     

    $.getScript('scripts/multiple_view/one_view.js', function() { console.debug('Script loaded.'); }); $.ajaxSetup({async: false}); $.getScript('http://form.jotform.us/jsform/40844902974159', function() { console.debug('Script loaded.'); }); $.ajaxSetup({async: true});

     

    However when I do this I get the following error.

     

    A call to document.write() from an asynchronously-loaded external script was ignored. and
    TypeError: obj is null Ultimately the jotform does not load on the page.

    Select the url below and select "On Site Employer Profiles" to recreate the error. The error will show in the console.

    Page URL:
    http://xul.digitalmediacommunications.com/index.php/admin/intake_form/<br/>multiple

    Screenshot
    document call JotForm jsform site select
  • Profile Image
    JotForm Support

    Answered by jonathan on July 17, 2014 at 07:59 AM

    Hi,

    I think the error was due to the URL parameter value on the getScript method which requires the URL to be the source js file -- not the form URL.

    Can you confirm if this is similar to what you were trying to do

    http://www.tutorialspoint.com/jquery/ajax-jquery-getscript.htm

    Please update us with more details so I can also request assistance from colleague who are more proficient to jquery programming.

     

    Thanks.

     

  • Profile Image
    JotForm Support

    Answered by jonathan on July 17, 2014 at 08:02 AM

    Btw, I also suggest looking at the JotForm API documentation as it can be helpful also in the script functionality that you were trying to do.

    You can check the GET form script here.

    Thanks.

  • Profile Image

    Answered by dmcprofilevideos on July 17, 2014 at 03:07 PM

    Thanks, I fixed this by using an iframe.

  • Profile Image
    JotForm Support

    Answered by david on July 17, 2014 at 04:10 PM

    Hi,

    Glad to hear it!  Please let us know if you have any other questions and we will be happy to help.

    Thank you for using Jotform!