Questions tagged as 'javascript'

1
answer

How useful is this line? [duplicate]

I want to know what this line of code inside my HTML does? Why is it that when I delete it the site stops working? <script src="js/main.js?nocache=<?php echo md5(microtime()) ?>"></script>     
asked by 04.06.2016 / 21:24
2
answers

Insert Value in Input Value with JS

I'm trying to bring a value that when clicking a button brings an input it works but the value does not appear inside the Value of the input so I can not capture this value via PHP. > Follow the code link Button <a href="#my_m...
asked by 12.07.2016 / 14:43
1
answer

How do I copy the value of a DIV to another DIV with Javascript?

My problem is this: I have a page in html, and on this page, it has 2 divs. in the second div, I have a javascript that stores a value in a given variable. What I want is to display the value of this variable in the first div. Do you kn...
asked by 07.07.2016 / 16:58
1
answer

Position scroll - JQUery - JS

Hello, I'm having trouble making a script in which I have the following structure Where the header and footer are fixed and main has a scroll with the content. I would like to know how to get the position of the main scroll? Th...
asked by 10.07.2016 / 21:54
2
answers

Perform a function while loading the page, JavaScript and Angular

I'm doing a registration page, and I need to relate a collaborator to a company, but for this I need when the page loads I already have a companies in a list > I'm already getting businesses in a list, problem and make the object companies...
asked by 12.07.2016 / 15:45
2
answers

How to create an event for href="javascript: void (0);" onclick="? ();"

By visiting the link address, you can check that I can bring and view the two categories listed in the "CATEGORY" table in the BD ( Image below), ButIwouldlikethatwhenoneofthecategoriesisselected,onlytheproductsthatarerelatedtotheselectedc...
asked by 09.07.2016 / 14:53
2
answers

autocomplete works only with jQuery 1.2.6

Well I'm using an autocomplete plugin with 2 input, where I put the value in 1 input and the 2nd is filled in. The problem is that my system works with jQuery 1.7.2 because I have several functions with it. And this auto complete only works with...
asked by 18.03.2016 / 14:38
1
answer

Cookies do not work

Hello folks a friend here in the forum helped me make a button and I thank him so much, it worked perfectly. But I failed to put cookies and I'm not understanding where I'm wrong (I was following a video on youtube to do it) <!DOCTYPE h...
asked by 07.07.2016 / 22:26
1
answer

What is the best way to hide visible JS functions when parsing HTML? [duplicate]

I have some JavaScript functions in my pages that were previously inserted directly into jsp, within the <script> tags. Later I changed them to a .js file where I only import the functions. I would like to know if there is a bette...
asked by 18.03.2016 / 20:40
3
answers

How to zoom in a page in css or javascript?

Would you like to know how do I start the site with 67% zoom in CSS or JavaScript?     
asked by 22.03.2016 / 21:16