Secure Ajax Forms
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Visible
Error: Could not validate existance of assessment->post()
Support Request
ByteMyPixel
|
Posted: 26 October 2012 11:23 AM |
|
|
|
Hi There,
I get errors now matter how I try to use this, is it compatible with my version of EE?
EE: v2.4.0 - Build: date 20120123
The module is Forms by DevDemon v 3.2.2
Example Error: ”Could not validate existance of assessment->post(). This action may not be registered correctly with the EE core.”
With this code:
{exp:ajax_form class="assessment" method="post" action="/{segment_1}/{segment_2}"} {exp:forms:form form_name="{segment_2}"} <input type="hidden" name="" value="{member_id}">
{if forms:paged} <h3>Current Page: {forms:current_page} of {forms:total_pages}</h3>{/if} {if "{forms:total_form_errors}" > 0} <strong style="color:red">Sorry, your submission contained some errors:</strong> <ul> {forms:form_errors} <li>{forms:error}</li> {/forms:form_errors} </ul> {/if} {if forms:closed} <p>FORM IS CLOSED!</p> {/if} {if forms:no_form} <p>NO FORM FOUND!</p> {/if} {forms:fields} {forms:field} {/forms:fields} <p><input type="submit" value="Test Submit" class="button" id="submit_button" /></p> {/exp:forms:form} [removed] $("#submit_button").click(function(){ $.post('{segment_1}/{segment_2}', $("#new_submission").serializeArray(), function(data){ // handle response here, parse html, or // json if using my output class mod. [removed] = '{segment_1}/{segment_2}'; });/*end post*/ });/*end click*/ [removed] {/exp:ajax_form}
|
|
|