Questions tagged as 'ajax'

1
answer

TypeError: $ .event.props is undefined

I have a slider like this: link In my case it is displaying the following error in the console when I click the drag / drop button: TypeError: $.event.props is undefined[Learn More] jquery.ui.widget.js:20:361 _trigger http://localhost/201...
asked by 30.08.2018 / 19:56
3
answers

Clear select field

I have created an Ajax request to populate a select field when the user clicks on a certain specialty to appear only the trained professionals for it. However, when clicking on another specialty the name of other professionals prevail there. I...
asked by 29.05.2018 / 20:55
1
answer

How do I know if an element has the html or value property?

I have two elements that need to be updated a DIV and another INPUT One has to be updated value and another the html, example ... $.each(json, function (index, value) { if (typeof $("#" + index).val() !== "undefined") {...
asked by 23.05.2018 / 01:44
2
answers

My function is not running on page load

I'm having the following problem sirs. I have the following function function sortTable() { arr = JSON.parse(localStorage.context_data); $('#tableLemos th').click(function () { console.log("funcao carregada...") var id =...
asked by 15.09.2018 / 05:16
2
answers

Calculate total of each row in the table

I'm trying to use JavaScript to dynamically calculate my prices multiplied by the quantities and result in the total for each row, but it calculates the grand total and plays in the last field of the Total column. Like the picture below:...
asked by 26.04.2018 / 19:41
1
answer

Ajax in MVC - Select

I have a problem loading the select fields in my project. My forms are all done with Razor and only the select's (combobox) I load by ajax. Problem: When I start the form the ajax event to load the combos is triggered before I get the d...
asked by 21.03.2018 / 15:09
1
answer

Change values according to the selected option

I have a table of plans here, and it has 5 columns, for 5 plans obviously. In each column there is a select to choose the periodicity of each plan. According to the option selected in this select, it should change the value that is being d...
asked by 12.06.2018 / 20:01
1
answer

List Bank result in checkbox with AJAX and JQuery

I have a function that searches the database for an entity list and shows it in select. However, I need this same list to be shown in a checkbox where the user can select more than one option. Showing this list of results in < input type="checkb...
asked by 05.06.2018 / 15:43
1
answer

AJAX request with different domain

My Request url="http://algumip:algumaporta/dowPDFNF?cChave="+chave $.ajax({ url: url, dataType: 'jsonp', success: function (data) { console.log(JSON.stringify(data)); }, type: 'POST' }); error that returns: U...
asked by 10.05.2018 / 16:03
1
answer

Position focus on a modal window field - JavaScript and Asp.net MVC

I have a view model that has a block that opens modal windows for CRUD actions. I have 4 partial viewls: create, delete, details and edit ... All in common have the field Description (Description). I need to make sure that whenever the modal win...
asked by 11.05.2018 / 00:26