RSS Feed/News Bad Request on Ajax call

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,646
Points
823

Reputation:

I am searching for username and copying to another field just as example and am getting error 400 Bad Request on ajax call.
Did not find any clear solution on old threads. Can someone help me to solve that?

AJAX:
Code:

Code:
function search() {
        var user = $("#user").val();
        $.ajax({
            url: "{{ link('my-page/search') }}",
            method: "POST",
            data: { username: user },
            success: function(data) {
                $("#result").val(data)...

Read more

Continue reading...
 
Status
Not open for further replies.
Top