title: October CMS - AJAX Form submit from 1 component to another
body: <p>I am making a website in October CMS.</p>
  
  <p>i created 1 components lets say Component_1 &amp; Component_2</p>
  
  <p>Now, i want to post data from Component_1 to Component_2 through form [via AJAX data-attributes APi]</p>
  
  <p>So, in my component_1 i have a Form:</p>
  
  <pre><code>&lt;form method="POST" data-request="Component_2::onSubmit" data-request-flash&gt;
  </code></pre>
  
  <p>and in Component_2 i have method onSubmit(){ //Nothing Here }</p>
  
  <p>When i submit form i get an error:</p>
  
  <pre><code>AJAX handler 'Component_2::onSubmit' was not found.
  </code></pre>
  
  <p>Then i have a same function in Component_1::onSubmit &amp; when i submit this form to the Component_1::onSubmit i get no errors.</p>
  
  <p>So, Could you suggest me a way to submit the form through AJAX from component_1 to component_2</p>
  
  <p>Thanks</p>