ajax

How to add a row to a table using AJAX

I am currently studying the AJAX technology and a difficulty has arisen. I want to add a row in the table when I click on the ... console.log('ОШИБКА: ' + respond.error); } }, error: function() { console.log('ОШИБКА AJAX запроса: '); } });

how to open a second modal window from one modal window

I ran into a problem with modal windows, namely, a problem where when I click in one modal window, the second one should "fal ... modal window at the same level as the first modal window: How hang the second one on top of the first one I don't understand

Redirect doesn't work in ajax form Drupal 7

Hello everyone, I have no problems: There is a self-written module that creates a multi-step form on ajax. At the last step, ... p, it happens the same as in 1 case. At the same time, on the form page (not in colorbox), everything works out as it should.

How to make a callback only when the images from the get request are loaded

I make a request to the address return which returns the generated html. the request code looks like this: document.addEventL ... oading it looks like this How do I make sure that the loading indicator does not disappear until the images are loaded too?

Django. CSRF token mismatch in the template and in cookies

The standard situation is processing an HTML form in Django. The template in the form is spelled out {% csrf_token %}, as it ... is the security here, in fact, when the token value can be taken from cookies or from the hidden input of the form itself??

Changing the url in the browser address bar

There was a question of such a plan: There is a website "site.ru" you need to use AJAX to load the page with users, which is ... impossible to listen to music and move around the pages, and I want to note that the URL changes. I ask the guru to help me.

validate js validation fails with ajax

I have an ajax request, and validation (validate js plugin). The validation itself does not work. Help please. It works here, ... Goal ('svyaz_to'); return true;" class="btn btn-block">Перезвоните мне</button> </form> </section>

Ajax with cookies or Ajax with server authorization

There is a php script on the site that returns JSON for a GET request. You need Ajax to get this data in JavaScript, another ... that if authorization is not passed (i.e. there is no cookie), the script returns null. Q: How do I send Ajax with a cookie ?

Ajax pagination of Wordpress

The Wordpress site has ajax pagination and ajax filter. Everything works correctly individually. But when we apply the filter ... // // mainBox.html(response); } }); return false; }); });

Processing input radio

There is an input field, which, depending on the selected settings, performs either the function of adding to the database, o ... tion(response){ $("#resSearch").html(response); } }); return false; }); });

Send photo and json together to the backend

I need to send a photo and json from the client side using one ajax, so that then in the server side, get the json text, wher ... 1606067372/lfvr9xxarnbegsp2ins7.png', size: 3299, filename: 'lfvr9xxarnbegsp2ins7' } How do I send both photos and json?

Bitrix, AJAX, main.feedback sending a form

Created a pop-up feedback form by creating your own component based on main.feedback. Connected it in the footer with the par ... dation(filling in the required fields), no errors are displayed, but the form is simply closed. Maybe someone fixed this bug.

Passing parameters by the GET and AJAX method

I decided to use AJAX for convenience, it is hung on links, the data for the request it takes from href, which is set as href ... alue How would you get rid of an unnecessary question mark? Can it be removed from href or should there be another solution?

Encoding problems when parsing CSV with JS

I created a table in excel, saved it in csv format (comma delimiters). The content is in Cyrillic. I'm trying to read it with ... ncoding to utf-8. You can somehow correctly convert the result of reading csv without dancing with a tambourine (notebook)?

Simple working example of json, ajax, php communication

Tell me a simple working example of communication between these entities (json (file) ajax php). <html> <head> &l ... orm> </body> </html> Php var_dump(json_decode($_POST['data'])); What is the error? How do I add a file here?

"The interlocutor prints the message" Online Chat (Web)

Dear # Hashcoders =) here I am faced with a situation that now I have 21: 46,and I do not know what to do, I am interested in ... th you. For example, I added a screenshot, I understand that "Mail.Ru Agent" it's not WEB, but just so you know what I mean.

Changing the URL in an AJAX request

I send an AJAX request like this: $(document).ready(function(){ $('#blog_url').click(function(){ $.ajax({ ... URL changes, but the link becomes site.ru/blob.php#blog.php Can you tell me how to make the link look like site.ru/blog.php?

How do I get the id of the elements located in the div?

There is such a div <tr><td <div ID="stroka" class="sortContainer"> <div id = "pol_3" class= "str">< ... "str"><\div> </div></td></tr> How do I get the id of the internal div's, in the order they stand?

How do I execute the script at the exact time?

It is necessary to execute the script using the cron at the exact time (for example, at 14: 00:00), with the accuracy of a se ... ver time and calculate the remaining time, and then execute the necessary script. Is it possible to do this in a simpler way?

AJAX get request to the server

Good evening, everyone. I just started learning AJAX, and I'm also new to php and mysql. Created a database and a users table ... o the first question is removed. Tell us about the checks, pliz, do you need everything or do you need to add something else?