jquery - on page load event $.ajax function sends ajax request. while we looks the url in the Global.asax file it is different Url -


$(function () {   $.ajax({             url: "mysettings/changepassword",                             type: "post",             success: function (response) {                 $('#view-settings').html(response);                 hideflywithmessage("loaded");             }         }); } 

when above code executed send request "mysettings/index/mysettings/changepassword" url.

it shows in console window.

if place slash(/) @ beginning, ajax url treat hostname/yoururl

so, change url below

$.ajax({             url: "/mysettings/changepassword", ..... }); 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -