Questions tagged as 'javascript'

2
answers

Why does $ .post () not return an object?

I have a function something like this: $('#btn-load-more').click(function(){ var key = $('#hash').val(), limit = 0, i = 0; setTimeout(function(){ $.post('api', {type: 1, limit: limit, key: 128921}, function(res){ co...
asked by 30.05.2017 / 02:41
1
answer

Can not read property 'addEventListener' of null

I'm trying to use the scrollleft in my project with the button, it works normal in jsfiddle But when I put it in my project it returns me this error:    Uncaught TypeError: Can not read property 'addEventListener' of null.     
asked by 26.05.2017 / 17:46
3
answers

Increase the word size, value of the placeholder attribute of the type inputs?

How do I increase the size of the word, value of the placeholder attribute of the text input tag? <input type="text" name="login" placeholder="Login" required id="login">     
asked by 08.02.2017 / 23:37
2
answers

How to limit the size (kb) of a photo with JS?

I have the following question, can you limit the size (kb) of the photo on the client side with JS (or jquery)? I'd like to limit by up to 500kb using input type="file" <input type="file" name="imagem"/>     
asked by 15.02.2017 / 16:36
2
answers

Selecting Bootstrap Attributes

Well, I'm having trouble selecting an attribute of a certain element of bootstrap with jquery , for example: <ol class="carousel-indicators"> <li data-target="#carrossel-principal" data-slide-to="0" class="active">...
asked by 16.02.2017 / 11:44
2
answers

How to change the type of text in a list with JQuery?

How can I make an effect on the text inside the lists with JQuery? For example, when the mouse rolls over the text in the lists, the color becomes clearer and the text is underlined. p { line-height: 1em; } h1, h2, h3, h4 {...
asked by 13.12.2018 / 21:21
1
answer

Change site background with script according to day time

I have this script that changes the color of the website as the page refreshes. <script> function random_bg_color() { var x = Math.floor(Math.random() * 256); var y = Math.floor(Math.random() * 256); var z = Math.floor(Math.r...
asked by 04.01.2019 / 01:21
2
answers

Understanding parameters and arguments in functions

I'm learning programming and I know there are some answers on this topic, which have already made me (theoretically) understand the parameter and who is the argument , however I do not understand the following: If I can do this: <?php...
asked by 05.01.2017 / 17:01
1
answer

Possibility to view doc, docx in browser

Is there a library that can view documents (doc, docx) to be viewed in the browser on an intranet without the need for external resources like google docs or office live? I need some component that does not need external access.     
asked by 07.01.2017 / 15:10
2
answers

How to make more than one select in the same query?

How can I make more than one select in the same query? I tried the following (using UNION), but it did not work: DATABASE Table: lines_cameras id_camera_linha | nome_linha_camera Table: Manufacturers id_fabricante | nome_fabri...
asked by 09.01.2017 / 13:23