OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

update part of step View in my Cart after a function

  • Thread starter Thread starter Maryam12 forex
  • Start date Start date
M

Maryam12 forex

Guest
Code:
       $("#addNewAddressContainer").on("submit", "form", function (e) {
           e.preventDefault();

           var $form = $(this);
           var formData = $form.serialize();

           $.ajax({
               url: $form.attr("action"),
               type: $form.attr("method"),
               data: formData,
               success: function (response) {
                   if (response.success) {
                       ShowMessage(response.message); // From My ShowMessage Method
                       $form.hide();

                       $('html, body').animate({ scrollTop: 0 }, 'fast');
                   

                   
                   } else {
                       ShowMessage(response.message);
                   }
               },
               error: function () {
                   ShowMessage('Error occurred while submitting the form.');
               }
           });
       });

this is my script that after doing #addNewAddressContainer , I want return to Checkout method

Code:
     $.ajax({
         url: "/UserPanel/CheckOut",

and update just step2
how can I return to My view and update this step
the cart view is a step form

<pre><code> $("#addNewAddressContainer").on("submit", "form", function (e) {
e.preventDefault();

var $form = $(this);
var formData = $form.serialize();

$.ajax({
url: $form.attr("action"),
type: $form.attr("method"),
data: formData,
success: function (response) {
if (response.success) {
ShowMessage(response.message); // From My ShowMessage Method
$form.hide();

$('html, body').animate({ scrollTop: 0 }, 'fast');



} else {
ShowMessage(response.message);
}
},
error: function () {
ShowMessage('Error occurred while submitting the form.');
}
});
});
</code></pre>
<p>this is my script that after doing #addNewAddressContainer , I want return to Checkout method</p>
<pre><code> $.ajax({
url: "/UserPanel/CheckOut",
</code></pre>
<p>and update just step2<br />
how can I return to My view and update this step<br />
the cart view is a step form</p>
 

Latest posts

Online statistics

Members online
0
Guests online
3
Total visitors
3
Top