Questions tagged [AJAX] (4534)

1
answer

DELETE request backend how to fill out the field headers in fetch?

there is a method in the backend which expects front req.getHeader("teacherId") how to fetch correctly fill in the headers? with insomnia queried Tried this: fetch('http://localhost:8080/teachers', { method: 'DELETE', headers: { "teacherId": 8 } })
Emma_Considine asked April 19th 20 at 12:33
1
answer

How to add a button value in the ajax request?

Good day, there is code that passes values from the form also has two buttons, one passes the value True, the other false, how to pass advanced this value in ajax request here is the code the <script> $( document ).ready(function() { $("button").click(function(){ sendAjaxForm('ajax_form', btn); return false; } ); }...
Rahul_Jones asked April 19th 20 at 12:32
1
answer

GetFlash + Yii2 submit via ajax?

Good day. Learning Yii2 and have affected the implementation of such things as comments. Comments are added by pressing the "send" button, go to the admin area, where approved and fast. The idea is that when you add a comment, I notice the user that the comment on the check, clears the text input field and everyone is happy...
Catalina.Balistreri26 asked April 19th 20 at 12:29
1
answer

How to parse string from AJAX?

From the Ajax handler method echo json_encode($res_date_arr, JSON_UNESCAPED_UNICODE); Got a string of the form ["20190425","Digital Lab as part of the digital transformation of the oil and gas companies","http:\/\/name.ru\/wp-content\/uploads\/2019\/04\/digital_lab.jpg","25 APR 2019","16:15","DK Foyer\"Fedorova\"","","","h...
boyd_Greenfelder asked April 19th 20 at 12:25
0
answer

How to publish posts from Ajax forms in your WordPress site?

Hello! How to make posting from Ajax form on the page? To publish any users. Authorized and not. They score all the data in a form (name, price, floor, etc.) click the send button and it all appears on the website, on the same page in the form post. Without moderation by administrator. This is a test. The posts may also add...
Brigitte_Mraz asked April 19th 20 at 12:24
1
answer

How to answer in the php ajax request in progress?

Please tell me how to implement the task: There is an ajax request from front to Beck. Send parameters to php, and he, in turn, in a loop makes the necessary calculations. Before, when I had to get one response, I was writing in die() variable with the value of the executed result and ajax success received this response and...
alyce_Bins asked April 19th 20 at 12:23
2
answers

How to add a block if it does not exist?

Good day! There is a json in this format { "dialog": [ { "date": "16-04-2020", "time": "10:35", "text": "message Text 3" }, { "date": "16-04-2020", "time": "09:16", "text": "message Text 2" }, { "date": "15-04-2020", "time": "18:59", "text": "Text message 1" } ] } $.ajax({ url: 'chat.php', type: "GET", dataType...
Stephania asked April 19th 20 at 12:21
2
answers

How to make a normal navigation when the site is ajax?

How to make a normal link structure and that they were recorded in history, and if a customer wants to return to the previous page, the page will be dreaming by a url recorded in history?
jerome.Littel asked April 19th 20 at 12:16
1
answer

Why is the ajax request does not work in render views.py django?

On the html page is input and ajax to it, which transmits a value in views.py <input type="text" name="zayavka_number" required="" id="id_zayavka_number" placeholder="enter the application number to display" onchange="sortComplectTable(value)"> the <script> sortComplectTable function(value) { $.ajax({ url: "/so...
marcelino81 asked April 19th 20 at 12:15
0
answer

Why not create posts without reloading?

Good day! Which day can not understand why is not working. On the main page of the website has created a form to add a post: <form action="#" method="post" enctype="multipart/form-data"> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 "> <fieldset> <input type="text" class="form-control" name="tit...
Madie.MacGyver asked April 19th 20 at 12:14