Questions tagged as 'javascript'

2
answers

save data to an object Using FOR

I have this for, the idea is to save the data in the object: let data_array = {}; for (var i = 0; i < data.length; i++) { //console.log("datos completos -> " + data[i].id_expediente); data_array = {...
asked by 28.06.2018 / 17:33
1
answer

can you get information with javascript of an xml loaded in input before passing it to the php language?

can you get information with javascript of an xml loaded in input before passing it to the php language? And if you can, how do you laugh? what I want is to extract the UUID from the xml and depending on the uuid send the variables to php     
asked by 28.06.2018 / 21:11
1
answer

Regular expression in JavaScript to resolve a problem in a chat

I have the following problem, and that is that I have a chat to which I want to place a regular expression that substitutes a word for the nickname of the user who reads it. For example, I want to put a phrase that says !! user are reading th...
asked by 17.07.2018 / 03:42
1
answer

Help, How to manage the download of a file using $ .fileDownload from a controller?

I have a method that retrieves data from the form, and passes them as parameters to a service method to perform the query, this method returns a json response, and in the view sends me a message if there is data or not data in the query. Now...
asked by 14.06.2018 / 04:59
1
answer

How to send parameters by ajax using datatable in laravel?

JavaScript code: function activar_tabla_listasedes() { var codigo = 105147000738; $('#tablesedes').DataTable({ processing: true, serverSide: true, pageLength: 5, language: { "url":...
asked by 14.06.2018 / 14:22
1
answer

Deactivate button with ng-disabled Angularjs

I have a select where I select the tipo of file that I will send if it is pdf or img , in case it is img I must send image-A and image-B just send 2 imgs must be deactivated the boton...
asked by 13.06.2018 / 12:51
1
answer

How can I hide the contents of a li without it being displayed by pressing inspect in a browser?

I hide a <li style="display:none"> but clicking on inspect in a browser allows me to see its contents. I want that content not to be displayed when I click on inspect.     
asked by 14.06.2018 / 14:23
1
answer

Validation of date 2 months later Javascript

Hello good afternoon everyone has my function that validates a date without "/" example: 010218 would be ( 01/02/2018 ).   What I basically need to add a validation but which does not come out, which would be to throw an alert like...
asked by 14.06.2018 / 18:29
2
answers

Detect click on li, not on div

I have an application that displays a menu if we right click on the central div (#body), in this div there are files represented in a list <li> , each <li> has as id #fichero . My problem is that sometimes there ar...
asked by 13.06.2018 / 12:11
3
answers

Show different Modals Boostrap

I have an app in Bootstrap which has to show different manners in different pages. For this I have thought to remove these manners and have each in an HTML file so that after each page you can call it to be displayed. I want to do it this way so...
asked by 12.06.2018 / 09:25