Questions tagged as 'javascript'

1
answer

AdminLTE, get width of an element using the "pushMenu" plugin when using "collapsed / expanded"

As you can see I am using a template for my web development (AdminLTE), in this case the AdminLTE, and I am using the jqGrid to work my records. What I want is to obtain the current width of an element after having made the expand / collapse...
asked by 20.04.2018 / 04:54
0
answers

link a select option with a checkbox. C # MVC

I come with you as I would like to know how to do the following. In this table: When I select the checkbox I generate an arrangement to save the value of the selected checkboxes, the detail is that I need to be able to link the value of...
asked by 30.04.2018 / 16:35
1
answer

Show only when you type in the text field

In the tutorial of Bootstrap 4 of W3 there is a section called B4 Filters, it is like a search engine with JS, and it looks for the words that are in a DIV with a text field. But I want the DIV to be hidden and shown only when I type in the text...
asked by 28.04.2018 / 18:31
0
answers

Auth - Api rest Wordpress

You will see I am studying how the wordpress application works but according to the documentation. To create, edit and delete a publication it is necessary to do an auth and give the following code in jQuery: $.ajax( { url: wpApiSettin...
asked by 28.04.2018 / 17:16
0
answers

Question about post calls with postman, mongoose and populate

I am new to this and I do not know how to add an objectId from one collection to another, I saw that it is doing this in my case: {type: mongoose.Schema.Types.ObjectId, ref: 'Weapon'} But it does not work for me, first I want to create a we...
asked by 17.04.2018 / 19:00
1
answer

Open a modal from a select

I'm printing the next select opt <select id="select_ic"><?php ?> <option data-toggle="modal" data-idsubseccion="<?php echo $id_sub_seccion ?>" type="option" class="btn btn-default" data-toggle="modal"...
asked by 17.04.2018 / 17:17
1
answer

Translation of leaflet routing

I am trying to translate the leaflet routing component. Currently my code is the following. With the instruction language: 'sp' it does not work very well since only translates the form but not the instructions of the route. I know I must us...
asked by 18.04.2018 / 09:49
2
answers

Precision subtracts javascript [duplicated]

I'm doing accounting software and I have serious problems with calculations of decimals. Here is an example: if I do the subtraction 3.00 - 2.70 it gives me 0.29 and not 0.30 as it should console.log(3.00-2.70);     
asked by 18.04.2018 / 09:07
0
answers

How can I update a form with ajax in laravel?

I have this small table in the options column on the second button that is to edit, I would like to click on it to open a modal like the one shown below. that I will upload the data and that I can change the values that I want acc...
asked by 23.04.2018 / 13:59
2
answers

Problem when exporting with HTML2Canvas

I need to capture a div by clicking on a <a id="capture">exportar png</a> and then automatically save it in a folder could you help me with some serious example of a lot of help. Thanks. $(function() { function down...
asked by 23.04.2018 / 14:30