Questions tagged as 'javascript'

1
answer

Problem with service consumption [closed]

I want to consume this Api rest link but it does not bring me the key to be able to bring the information well. This is the JSON to try { "email": "[email protected]", "password": "candidato2017" } Here is the documentation about t...
asked by 25.02.2017 / 06:31
1
answer

Declare scripts in partial views in ASP.NET MVC

I'm working with ASP.NET MVC, JQuery, Javascript I understand that when you work with a main view that calls a partial view, the partial view is injected into the main view. If that were true, it would no longer be necessary to declare the va...
asked by 25.02.2017 / 21:13
1
answer

d3 v4 apply zoom to center

I'm trying to find an equivalent to the d3.behavior.zoom() of the v3 version of d3.js. But until now I could not find anything. What I'm looking for is to be able to do .center([width / 2, height / 2]) , meaning that the zoom is...
asked by 20.03.2017 / 15:14
1
answer

Capture connection errors with jquery

I have a video carousel made in JQuery that makes an AJAX request, so if the Internet fails, the video stops and the system no longer moves and shows these errors: I was wondering if there would be any way to capture these errors...
asked by 24.02.2017 / 20:26
1
answer

Bootstrap validator tooltip

I'm validating my forms with boostrap validator ( link ) and they look like this: But I would like that the message does not appear in the lower part, but as a tooltip from the icon something like this: I can not use the form v...
asked by 17.02.2017 / 04:50
2
answers

Separate numbers that have a point in between and save them in variable

Look, I have this problem I need to separate this code 5411.21 and save it in different variables, as you can see. in the middle $(".o tr").each(function () { var id = $(this).find("td").eq(0).text(); var existencia = $(this).find("td"...
asked by 16.02.2017 / 21:40
2
answers

How to send a parameter to a C # method through an ajax call?

What I would like to achieve is to be able to pass a parameter from my javascript function through ajax but that said variable will reach my c # method that I am calling. Ajax code: $.ajax({ url: "../../../pagina/configuracion/empre...
asked by 08.02.2017 / 15:19
1
answer

Connecting to database with socket.io and node.js

Is this the correct way to connect to a database ?, but it worked for me ... many times I find answers: "this form is obsolete", and my question is that, this is a good way to connect to a bd and to make queries? (or the only one), I found it ve...
asked by 06.02.2017 / 13:09
1
answer

Delay show load gif

I have a code in which each time I click on a button it shows me a random word from the list using a code js. Now I want the word not to be shown instantly, but it takes a few seconds to show the word and while those seconds pass it show...
asked by 04.02.2017 / 18:13
3
answers

How to refresh the row of a table when it is updated by Ajax?

I have the following Jquery script with ajax $('#btn_cofr_update').click(function(e){ e.preventDefault(); var form =$('#form_upd_requi'); var action=form.attr('action'); var id=$('#id_').val(); var data=$('#fo...
asked by 14.02.2017 / 17:27