Questions tagged as 'javascript'

1
answer

Problems invoking a variable String to Integer in PHP

My problem is that when I want to transform a JS variable captured as a prompt to a PHP variable, the value obtained is always zero. I have used several forms in PHP and I always get an integer at the end but with zero value. here is the code:...
asked by 04.07.2017 / 22:51
1
answer

Overlap entry and exit records

I need to overlap records in the same query of a table. The records in the table are as follows: |---|--------|----------------|------------|-----------------|----------------|-----------------|----------------| |Id | Nombre | E-mail...
asked by 11.07.2017 / 16:51
1
answer

Verify password with JS and stay in the form

I'm doing a login for a project that needs design in css and js. The problem is that I have a code but it does not work, I would like you to help me with the following: <html> <head> <meta http-equiv="Content-Type" c...
asked by 05.07.2017 / 04:09
0
answers

Problem with data tables, custom filter

I have the following table: var grid = new Datatable(); grid.init({ src: $("#datatable_cheques"), onError: function(grid) { toastr['error']('An error occurred while getting details list'); $('div.loading').remove(); }...
asked by 04.07.2017 / 22:39
2
answers

Reset Form with jquery, empty input error Select2 delete the list

I am using the following code: $('#formarea')[0].reset(); This allows me to reset a form but in some cases it does not do it with the data that has been written with ajax or elements added with ajax. I also empty the display none fields,...
asked by 11.07.2017 / 15:14
1
answer

Variable range in onfocus event of an Input

I'm working with ionic 2 and I have a variable that I want to access in an event in my html code, but by console I get it undefined, how do I get to reach that variable? Code ts: import { IonicPage, NavController, NavParams} from 'ionic-a...
asked by 07.07.2017 / 21:23
1
answer

Implement correctly Angular ui-bootstrap date picker

I just integrated the datepicker into a project but it does not work correctly. HTML <div class="form-group"> <label>Date</label> <p class="input-group"> <input typ...
asked by 07.07.2017 / 22:45
1
answer

Problem with drag and drop

Good, I really do not know how to ask the question, what happens to me is that when I try to upload a file with the tool, my browser has a memory crash, really do not explain it. Here is the function in Java Script. $(function(){...
asked by 08.07.2017 / 03:44
2
answers

Create button by asp code and assign a javascript method

I am generating a button by code (I generate a button to delete, there is a button for each row of a dynamic table) and I need to generate an alert to prevent them from deleting information by mistake. Button boton = new Button(); boton.Text...
asked by 01.07.2017 / 00:47
4
answers

onclick inside append

I try to do an onclick on an anchor inside an append and it does not work How can I solve this? $(function(){ var weekday= ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]; var months = ["Jan...
asked by 01.07.2017 / 15:29