Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Naufil 23 posts 114 karma points
    Jul 31, 2018 @ 06:51
    Naufil
    0

    Getting wrong url in ajax call

    i get wrong Url, i don't know why.

    enter image description here

    here is my ajax call :

    var data = {
                        Name: $.trim($("#txtName").val()),
                        Email: $.trim($("#txtEmail").val()),
                        Messages: $.trim($("#txtMessage").val())
                    };
    
                    $.ajax({
                        url: '@Url.Action("SubmitFormCareer", "ContactSurface")',
                        @*url: '/umbraco/surface/ContactSurface/SubmitFormCareer',*@
                        type: "POST",
                        dataType: 'json',
                        contentType: 'application/json; charset=utf-8',
                        data: data,
                        success: function (data) {
    
                            alert("Inquiry has been submitted");
    
                        },
                        error: function (err) {
                            alert("somethingwentwrong");
                        }
                    });
    
  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Jul 31, 2018 @ 15:00
    Alex Skrypnyk
    0

    Hi Naufil

    What do you mean wrong URL? What is wrong with this URL?

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft