Questions tagged as 'javascript'

1
answer

Transition to dynamically created elements

I am creating a system to upload images with drag and drop, the idea is that each image is added by appearing in a grid, I use promises so that the image only appears when it is already loaded with the onload event, but not I get it to appear wi...
asked by 17.04.2017 / 04:46
1
answer

window.open adding styles at the time of printing

I have a page in HTML of test and inside it a button which activates a function so that the page can be printed. How can I do so that at the moment of printing I respect my styles css on the page? This is the code of the butt...
asked by 24.03.2017 / 19:43
1
answer

404 errors in Asp.net MVC application

I have a page, that although it works correctly, when entering the crome debugger (ctrl + shift + P) it marks me errors of resource not found 404 However, the folders and resources are available and well addressed. What can this erro...
asked by 25.03.2017 / 01:02
1
answer

How to reset or indetermine a bootstrapswitch?

I have a checkbox with bootstrap-switch style, when I run the view it creates it with the value "indeterminate", if I execute state I can change the value to true or false , but I can not put it in "indeterminate" as in the...
asked by 08.05.2017 / 21:16
1
answer

Create canvas with ID according to array

I have the following code and then in a function out of all these functions I want to do a getElementById, but the created canvases do not have ID, they told me that I should add it to id inside the function per, but I'm disoriented, if someone...
asked by 04.05.2017 / 15:31
1
answer

Create Array in javascript reading from local file

I need to create an array in javascript of the style var data = [1,2,3,4]; to represent that data on a canvas. The data would be collected from a file on the desktop with an input of the file type. The content of the file would be: 1 2 3 4...
asked by 09.05.2017 / 13:53
1
answer

problem uploading file with ftp_put ()

when using function ftp_put() of php to upload file to an ftp, it actually uploads the file, but it arrives without weight, that is 0 B, I attach the code that I am using (it is not problem of permissions of the folder where I'm sending i...
asked by 03.03.2017 / 14:22
1
answer

Get width and height of an external image with Javacript

I want to save in some variables the height and width of an image that is loaded through Javascript (no libraries, plugins, frameworks, etc) using your url. img[i].addEventListener('mouseover', function(){ link = this.parentElement.href;...
asked by 06.03.2017 / 07:53
1
answer

Javascript dependency

I am using Framework7 to make a mobile application with phonegap . My doubt arises with javascript , in which I am totally new. My question is if I can import a .js from another .js for example;    A main docu...
asked by 02.05.2017 / 11:33
1
answer

Hamburger menu How can I make it responsive and correct the problems I have?

My idea is to make a hamburger button with horizontal displacement and that is responsive. I currently have this, I do not have much knowledge, so I would like to know if someone can give me a hand with this menu. I want the menu to open with th...
asked by 28.04.2017 / 22:44