Questions tagged as 'javascript'

1
answer

smooth scrolling with pure javascript

I'm studying pure javascript to get a little out of jquery so I'm trying to recreate simple functions that I use in everyday life, and one of them is the smoothing of scroll but n found nothing referent on the internet someone knows how t...
asked by 08.04.2018 / 15:09
0
answers

Dynamically resize image

On the webmotors site, images are resized dynamically ... manual-wmimage15381473185.jpg? s = fill & w = 800 & h = 300 & q = 50 "> link At the end of the image we have .jpg?s=fill&w=800&h=300&q=50 . How do I do thi...
asked by 07.04.2018 / 23:31
0
answers

Maps Api JavaScript - Problem saving site search in MySql database

I need the user to click on the save button that is displayed when the marker is clicked, the location information is saved to the database. Hidden fields that receive values from the location when searched: <input type="hidd...
asked by 08.04.2018 / 00:13
1
answer

Doubt with jQuery function

How does this jQuery function find the em tag to execute the prependTo () method? var em; $("#btn").click(function() { if (em) { em.prependTo("pre"); em = null; } else { em = $("em").detach();...
asked by 18.04.2018 / 19:46
0
answers

Automatically fill field on a web page which I can not change

Good morning friends! I'm starting to venture into the programming world, and I came across a question. Is it possible to automatically fill in the fields on a web page that I can not change the code for? If so, could you tell me what to study...
asked by 19.04.2018 / 14:09
1
answer

Remove CSS inside the iframe

Hello, I have a page and I'm displaying it in an iframe, I want to create it as if it were a version 2 of the page with another style, so I want to remove the css from it and add another one without having to edit the style.css file, because I a...
asked by 25.04.2018 / 23:19
4
answers

What is the difference between declaring variables using let and var?

Since the word let was introduced in ECMAScript I have only heard about it, so far I have not seen any practical examples and to be honest I do not know very well what a let variable is and how it behaves. The only thing I unders...
asked by 16.01.2015 / 13:56
1
answer

Change the dynamic menu item in asp.net, from "mouse hover" to click

I have a dynamic menu in ASP.NET and one of these menu items contains a submenu, however to access this submenu a mouse hover event does not appear in my code. I need to change this "mouse hover" event to click somehow, even if it is by css or j...
asked by 25.04.2018 / 14:33
2
answers

How to add and remove elements with Javascript

Hello, I would like to know how I could add and remove elements to the html using javascript (it is not allowed to use something like jQuery), my code is as follows: <!DOCTYPE html> <html lang="en"> <head> <meta charset...
asked by 26.04.2018 / 03:01
0
answers

How to make a gallery with a preview of the files of a folder / directory?

I need to build a gallery of files, scan a directory of my server and generate a preview of each file in the HTML page, where the user clicks and preview the preview, helping to choose which one to download. Does anyone know of a Javascript plug...
asked by 25.04.2018 / 15:16