Form locks with rotating arrows after submit

1 reply · opened Mar 18, 2020

FfoadnooriMar 18, 2020

Hi,
This is the first project that I do with the Canvas. When I submit a form using javascript the operation is successful but the form locks waiting for response. I am not using the php scripts that was included with the template and use asp.net insetead. I have tried returning true and false from the javascript functions but none has worked. Here is sample code of what I run.

<form class="row" name="form1" id="form1" action="#" method="post" enctype="multipart/form-data">
<input type="text" id="text1" runat="server" value="0" />
<button class="button button-3d button-black nomargin" id="btnSave" name="btnSave" onclick="updateQuote()">Save Changes</button>
</form>

My javascript function:

function updateQuote() {
//Do some procssing.
return false;
}

As I explained I have tried returning true and returning false and none of them resolved the issue. Can you help please.

SSemicolon WebSTAFFMar 18, 2020

Hello,

We Apologize about the Inconveniences, however, we currently do not provide Customization related Support according to the Item Support Policy: https://themeforest.net/page/item_support_policy . You will need to manually code this or Hire a Freelancer to help you out.

As a guide, try to return the ASP.NET response as a JSON text in the following format:

For Success:


{ "alert": "success", "message": "' . $message['success'] . '" }

For Errors:


{ "alert": "error", "message": "' . $message['error'] . '" }

This should definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard