Questions tagged as 'javascript'

1
answer

How to scroll through a multi-line table and select only one specific?

I'm trying to do that by clicking a tr with a unique id, opening a slideToggle with another table under the same line that was clicked. I made this example by opening the first and second line, but I wanted to do something dynamic....
asked by 16.06.2016 / 20:05
2
answers

Hiding a div while showing another

I have a problem hiding a div when I show another. If I use .conteudo_ up instead of id2 I can do this effect, but it does for everyone at the same time and I want for each one individually. How do I do this? link HTML...
asked by 06.06.2016 / 10:36
1
answer

JSON cut when sending by post with AJAX

I'm using Angular to make a database entry, I get the data from my inputs I put into an object and I transform it into a JSON and I send it by post, but it happens that my JSON is cut and I do not do the minimum idea of why. var meuJson = ang...
asked by 04.04.2014 / 19:08
2
answers

Subtraction of dates and return the number of years, months and days

Through two input='text' I launch the start date and the end date. By JavaScript I want to subtract the end date by the initial and return the amount of years, months and days. I am using the Date() function, but I am able to retur...
asked by 08.05.2014 / 14:15
1
answer

Gzip JavaScript implementation [duplicate]

JavaScript and LocalStorage go very well, but one of them is always saying that it has no space. The idea would be to get a solution like Gzip in JavaScript so we can compress the information to be saved in LocalStorage. How can we do da...
asked by 08.04.2015 / 01:41
1
answer

Loading only appears after page loaded

I have a page with a side menu, and the contents of this menu is opened inside an iframe. CSS #preloader { position: absolute; left: 0px; right: 0px; bottom: 0px; top: 0px; background: #ccc; z-index: 9999; } A...
asked by 08.12.2014 / 19:29
1
answer

I can not hide SCM Music Player on Tumblr

I'm trying to hide the SCM Music Player and expand the main container to 100% (because the player reduced it slightly in the bottom) in my Tumblr blog but my code does not work. The Javascript code: setTimeout(function () { $(function()...
asked by 15.12.2014 / 03:04
1
answer

How to handle Ajax requests with business error?

I searched the internet and still did not find a mature enough answer to a problem. I have an Ajax request and taking errors thrown by the application as a possible connection crash, for example, I do not want to throw an exception if I have...
asked by 12.12.2014 / 21:47
1
answer

customize input for multiupload of images

How can I customize an input field of file type for multiupload of images? I would like to get some image information, such as: format, size. (I know there are several plugins for this, but I'd like to learn from scratch how to do it) E...
asked by 16.11.2014 / 02:52
3
answers

Prevent Bootstrap collapse

I'm using Bootstrap on my site and I'm making a bar with navbar. The menu consists of a brand, 3 "li" items, a search bar and a link. How could I do that by using smaller screens or even resizing the browser, the search bar would not go in...
asked by 11.02.2016 / 01:27