Questions tagged as 'ajax'

1
answer

Jquery function call

I'm developing a shopping cart, I'm wanting to put an element inside a DIV, this element has a Jquery function that is not working your call (remove cart products function). $('.add_produto').click(function(){ $.ajax({ url: C...
asked by 04.03.2014 / 21:13
1
answer

Ajax does not work in firefox and chrome works

I'm giving an insert in the database, in chrome it works, in firefox my request does not succeed. Has anyone gone through this? I changed the serialize () function and passed the values in an invidual way, to see if that was it. I tested the...
asked by 28.07.2018 / 01:05
2
answers

Completing form with AJAX and MySql

I need to complete a form, according to user demand, with information from the Database (MySql). Example: I have the fields "Institution", "Course" and "Period". For the user, firstly, only the "Institution" option will appear, once he has...
asked by 15.06.2015 / 19:35
1
answer

How to save data in the database through ajax?

I'm trying to send a javascript form to my webservice through ajax. The idea is that: the javascript send the complete form, and in the webservice, will be saved in the database through the persist method. My teacher gave us this code, but...
asked by 19.11.2018 / 20:15
3
answers

How to submit JQuery variable content to an html textarea?

I'm having a hard time sending the contents of a JS variable to a <textarea> (in a modal bootstrap) and with the XML formatting defined in the variable. Both JS and textarea are in the same html. The code is bas...
asked by 02.12.2017 / 21:14
3
answers

Search Database when Select options Select

Good morning. I have a small problem that I can not solve. The situation is as follows: I have 2 selects (state and city), I would like when selecting a state the system would search my DB to find distributors of that state and when selecting th...
asked by 11.12.2017 / 12:05
2
answers

Change input color according to value

Good afternoon Friends I have an input with the name of MARGIN, where a value is displayed according to some calculations that are made ... I need the input to change the color to red if this value is less than 25, if it is bigger it maintain...
asked by 09.05.2018 / 20:21
3
answers

Required in Ajax

I have a code that requires that when I submit, some fields are required to be filled, type required in html only in Ajax, instead of using the alert as I am using it, use required as in html. Here is my code below: function...
asked by 03.09.2017 / 15:21
1
answer

Value not being taken via POST

No index.php has 1 field input that sends a value by ajax , which should be read by cdb.php . index.php: <script type="text/javascript"> $(document).ready(function(){ $("#formulario").on("...
asked by 17.01.2018 / 13:29
2
answers

How to cause an XMLHttpRequest error?

I would like to understand in which cases readyState will be equal to 4 and status will be different from 200 and the difference of that for event onerror : xhr.onload = function (e) { if (xhr.readyState === 4) {...
asked by 24.08.2017 / 20:50