Questions tagged as 'javascript'

2
answers

How to do method overload in javascript?

Personnel how to emulate method overload in javascript ? I know some programmers can, for example, I'm going to use gulp. gulp has method .task : var gulp = require('gulp'); gulp.task('example-task', function(){ console.log...
asked by 15.01.2016 / 21:35
1
answer

How to clear ProgressBar without using effect?

I'm making a lot of imports, and when I upload a new file I need to zero the progress, so I can set the width to 0px , but it will reset with an effect I would not want to use. Example: var progressBar = $(".progress-bar");...
asked by 22.01.2016 / 19:45
2
answers

Click a link and print the landing page as soon as it opens

I am using self.print() to call print and with this opens the option to print the page that I am. However, I'd like you to go to another page via% a% of% before printing to print ... All this when you click on the " Print " button. Is thi...
asked by 15.05.2015 / 20:51
1
answer

Remove part JavaScript String Informing the End

I have the following javascript function: var opts = document.getElementById('id_endereco'); //localiza select var str = opts.options[opts.selectedIndex].innerText; //Pega text do option I need to remove part of the content of the select, '...
asked by 11.06.2015 / 03:42
1
answer

Date Conversion

I have a date in this format "2017-10-13T18:15:41.143Z" And would like a date in this format 10/06/2017 01:42:34 PM (-0300) How can I do the conversion?     
asked by 13.10.2017 / 20:20
1
answer

CSS + Java Script: Treating image larger than a circular div

Good morning !! Home I'm trying to do the following: I created a function that when clicking on the photo, send the photo to the circ%% circular, the problem is that if the image is bigger than the div, it overlaps everything, I would like to t...
asked by 04.10.2017 / 13:56
1
answer

What is the difference between the two structures of the arrays and their repeating links in Javascript? [closed]

I would like to know which one is most suitable for working with arrays? var meu_array = new Array(1, 2, 3); var meu_array = [1, 2, 3]; Is there any performance difference between the 6 cases presented in the use of loop below? // foreac...
asked by 17.09.2015 / 21:55
1
answer

How to know the name of an image with JS?

I wrote a code in which it creates a slide of images in a div , I would like to know if with Javascript it is possible to know the name of the image that is passing on the slide, because when the image appears, I want a text to appear desc...
asked by 13.11.2015 / 22:26
2
answers

Show image and upload an input

Hello, I would like to know how to get the path of an image contained in the value of an input of type file. I'm using the following code: $(document).on("change",'#Upload',function(){ var valor=$(this).attr('value'); var ex...
asked by 07.04.2014 / 18:08
2
answers

How to connect two SELECT (combobox) in PHP and do AutoFill?

I would like to know how to connect two select . As if it had a category and a subcategory, but I want the subcategory to appear when I click on the category. I have two tables in the bd a member and another exercise, when I choose my memb...
asked by 24.09.2015 / 16:20