Questions tagged as 'javascript'

2
answers

detect the browser language with js and redirect the visitor

Hello I need that when a user opens my website, detect the language and redirect it to the browser language. I'm trying this but it goes into a loop and the page loads constantly. I hope you can help. There are 3 languages that I have to address...
asked by 25.11.2018 / 18:46
1
answer

Validate formulas

I have an array of operators [*, -, +, %] and another array for variables [FE, GE, PRD, RON] . In an input text, the user with both arrays can create formulas that is, FE + GE * RON for example. How can I validate that the formul...
asked by 24.11.2018 / 14:10
0
answers

Make Scroll go down automatically

I am doing a chat, but the problem is that when sending a message the scroll should go down, but you should also be able to see the previous messages. This is my code in js: function Scroll(){ document.getElementById('chat').scrollTop =documen...
asked by 29.11.2018 / 05:55
2
answers

Event that hides two tables with Javascript

Good afternoon I have a code that works well and what it does is that when I give it in room 1 + room it shows me room 2 and in room 2 when I give it + room it shows me room 3 in each one I can hide but I would like it in room 1 could hide and s...
asked by 21.03.2016 / 21:24
1
answer

Infinite Scroll With Jquery and Ajax

Hello, I have been assembling this code that works in its part of the condition of the height of the scroll but not in the part in which the AJAX has to automatically enter the .html which fails? $(document).on('scroll', function() {...
asked by 18.03.2016 / 20:15
1
answer

Problems editing a Laravel line

Thank you in advance for reading, and I hope that if you are not bothered, you could guide me to solve this problem. I have a form called a server, in that form I enter the important data, including the server and the version it has....
asked by 23.11.2018 / 17:24
2
answers

Use of ajax ASP.NET MVC

I'm exporting to Excel But I need to use ajax , because I need that when I give in Exportar a Excel leave me in the same view This is from my controller where I have: My ActionResult of index and void wher...
asked by 23.11.2018 / 17:33
1
answer

Browse html elements with the same class with javascript

I have the following table which contains 3 rows, in each of them I put a checkbox to which I assign a value in the value attribute, what I need to do is go through the checkboxes and determine which ones they are selected to save their values...
asked by 22.11.2018 / 20:29
1
answer

When you login, launch an ANGULARJS component

I want to do, that when I login, launch another component about.html                     </head> <body ng-controller="MainCtrl"> <h3>Login</h3> <!-- Form to get username & Password --> <form>...
asked by 02.12.2018 / 21:43
1
answer

How to replace the hover effect in mobile

I have created a list ul and in each element I have placed images, the case is that desktop when I hover over these images a layer is displayed over the image that I had previously hidden, in that layer it shows information about the image. When...
asked by 21.11.2018 / 17:43