Beispiele - Include form via AJAX 

Page / - last modified by sas on 25.09.2020, 14:26 

Include form via AJAX 
last modified by sas
on 25.09.2020, 14:26

Table of Contents

        
You can include the form without iframes by loading it via an asynchronous HTTP request (AJAX). Support for the possible embedding options can be found in FORMCYCLE directly under Publish.
    <!DOCTYPE html>
  <html>
      <head>
          <meta charset="utf-8">
         <!-- jQuery must be loaded-->
          <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
         <!-- configure path to your server, the id of the content element where the form should placed into and id of the form.-->
          <script src="https://demo2.formcycle.eu/formcycle/form/include.js?auto=1&form_container_id=content&form_id=564&form_base=https://demo2.formcycle.eu/formcycle"></script>
      </head>
 
      <body class="body"> 
         <!-- this is the div where the form will be put -->
          <div id="content"></div>
      </body>
  </html>