Questions tagged as 'jquery'

0
answers

Call Controller with parameters from radio button click event

Controller public ActionResult Index(string Color, string Numero) { return View(); } In the (simplified) view ... <div id=”radioColor”> <input type=”radio” id=”Color” name=”Color” value=”rojo″ >Rojo</input > &l...
asked by 11.09.2018 / 03:17
2
answers

Execute javascript code inside a script called with ajax

I need to show an alert and stop the execution of the script when the user clicks on the accept button when he does not select any week to pay, this is the ajax function: $('#sub').click( function() { $("#update").submit(function(e)...
asked by 04.10.2018 / 00:52
1
answer

Get value of option selected in a child element (jquery / javascript)

I have the following scenario: a series of SELECT elements in a series of DIV with the same class. <div class="elementLine"> persona 1 <select id="coches"> <option value='si' selected>si</option> <option...
asked by 12.09.2018 / 16:59
1
answer

Read CSV with thousands of records and insert into batch database

I need to read and insert a CSV of more than 100,000 records. I have achieved that if it is of a small size of rows I do what I want, but when I work with the size that I mention, it blocks the page. My idea was to do this in batches, for exa...
asked by 18.09.2018 / 18:13
1
answer

up to 10 integers before the decimal point with regular expression

As I can make a regular expression that accepts up to 10 integers a point and up to 10 decimal places, I have the following regular expression, but it does not work it only works with decimals /^([0-9]{0,10})+\.?[0-9]{0,10})$/     
asked by 05.10.2018 / 00:56
1
answer

How to send data in JQuery ajax safely?

I send data through jquery $.ajax to the server and now that I have to send the id of the user I thought that this is not very safe ... since anyone who goes to source code or to inspect the code can see perfectly the variables, their val...
asked by 29.08.2018 / 15:55
1
answer

Problem input file Ajax-Upload loads 2 times

I have the following problem I am uploading files with the Ajax-Upload library, but when I upload the file it is lifted again, the file is saved on my server, but the window is raised again What can this problem be caused? In the jsfiddle place...
asked by 04.09.2018 / 16:31
1
answer

Error mysqli_num_rows () expects parameter 1 to be mysqli_result,

This error appears: Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given in C: \ xampp \ htdocs \ simple-shopping-cart \ index.php on line 74 at the time of loading the web, I'm not sure, if I did bad BD or somet...
asked by 24.08.2018 / 21:10
1
answer

get a data of the last insert made

The case is as follows, I have two related tables in postgres, understand Urbanization and Houses in Urbanizacion we have the following data idurb(PK-NoIncremental,varchar)| nombreurb | calle | idcasas(el campo idcasas es una FK ) and...
asked by 23.10.2018 / 04:11
1
answer

how to make promises of Javascript to insert data in a table with Json data

I hope you can help me with this little problem that has not allowed me to really move forward. I do not know much about this and I have been receiving help and they helped me with javascript promises and I did not manage them, and I can not mov...
asked by 15.08.2018 / 23:46