Questions tagged as 'javascript'

2
answers

How to invoke a C # method from a JavaScript function?

I need to call a method c # from a JavaScript function ... at the moment the user tries to leave the page ... in such a case that my function can be as follows window.addEventListener('unload', function(event) { // Invocar Metodo C# AQUI })...
asked by 11.08.2016 / 15:16
4
answers

Select several ids with javascript

I was doing an element search on a page. I try to catch all the elements with the same id, and I only get the first one with both JS and jQuery. I know that if I would do it with classes, I could do it without problems, but I still have the doub...
asked by 07.06.2016 / 12:31
2
answers

I can not redirect site after Login Facebook

Hi, I have the following JS code to execute the action when the login is made: FB.getLoginStatus(function(response){ mystatus(response); }); function mystatus(response) { if (response.status === 'connected') {...
asked by 30.06.2016 / 09:00
3
answers

Know what was clicked by the user method confirm

I have the following instruction with which my pretensions are to indicate to a user if he wants or not to print a report. in case it is True print and in case it is false redirects only Response.Write("<script lengue>c...
asked by 07.11.2018 / 22:21
2
answers

JQuery / Javascript - Sort Multidimensional Array ()

I have the following Array (): { "1 ": { "id":"12", "usuarioA":"1", "usuarioB":"2", "mensaje":"Hola mi amor", "date":"2017-01-19 03:02:12", "TokenID":"1",...
asked by 19.01.2017 / 09:22
3
answers

Get the selected select value - Javascript - DOM

I want to get the value (.value) or text (.text) of the chosen option from a drop-down list of a select in a form. How do I access the text of the selected selection? HTML code of the select element: <select name="provincia" id="pro...
asked by 22.05.2017 / 21:23
4
answers

Help with object in js access properties

I usually access the properties of the objects like this: nombre = body.first_name; The problem is that the route I receive it by parameter. var ruta="first_name" and when putting nombre= body.ruta; tries to access the path proper...
asked by 11.07.2017 / 15:00
7
answers

Close a modal using JQuery and Materialize?

I ask the question again because with all the answers they gave me I still could not solve the problem, which also seems super strange because several of the answers have a lot of logic! What do I need? Open a modal when you click on an...
asked by 19.10.2018 / 21:43
0
answers

Customize "prepopulation" in Django admin [closed]

I currently have a field that is automatically filled in by taking the value of two additional fields in order: team 1 and team two. I get the following result with this code within the Administrator class corresponding to the Match model:...
asked by 16.05.2016 / 17:34
2
answers

html table with javascript

I want to get a table like the one in the picture, but the EFR and EFA titles do not fit well, and how to get the last row with a bit of space? I would also like to improve the code, it is a lot of code for a simple table var ta...
asked by 30.03.2018 / 01:29