Questions tagged as 'javascript'

1
answer

Add HTML from another page

I needed to add the contents of another page in HTML , type, I open the link page and in the HTML of this page would have an event or some javascript that loaded the link , but without changing the URL .     
asked by 21.07.2017 / 15:11
2
answers

Script via Link requires double click the first time it is requested

I have 3 inline-block Divs in a row. These divs contain 1 text paragraph with a link at the end to extend the div and print the remaining paragraphs. At the end of the extended div, there is another link that returns the div to its normal state....
asked by 06.07.2017 / 13:44
2
answers

Show and hide field based on SELECT

I developed a PHP code that queries a table in the database and inserts the values into a select into the HTML. Since the user does not find the desired option within this select , he should select the "Instituição não encontr...
asked by 17.07.2017 / 17:17
2
answers

How do I get the value of a checkbox with javascript and move to another page?

I have 2 pages: A page that has a checkbox and a form submit button 2nd A page that shows which checkboxes have been clicked The problem is that I do not know how to pass the checkbox value from one page to another, could you help me?...
asked by 17.07.2017 / 20:05
2
answers

Problems with 'onsubmit' in form and function 'setTimeout'

When I invoke the 'valid' function nothing happens. What is my mistake? I also need to make the 'valid' and 'like' message disappear after 5s (I could not use setTimeout) function dislike() { document.getElementsByClassName('esconde')[0...
asked by 14.07.2017 / 21:15
1
answer

if (isset ($ _ POST ['send'])) does not work with Ajax

I am sending information to another page via Ajax: <script type="text/javascript"> //Função para enviar as informações para o arquivos processa.php //via Ajax function envia(x){ jQuery('#form_protocolo_' + x).submit(functi...
asked by 18.07.2017 / 14:34
1
answer

Change input value with javascript

I have a field to insert notes and I would like that if the value entered was greater than 10 or less than 0 the value was erased from the input. I tried to do with the code below, but without success. function verifica(v){ if (v >...
asked by 17.07.2017 / 22:15
2
answers

Build / start object via string parameter in a function

I need to dynamically start objects with JavaScript Ex: Sample class: function sayhello() { this.init = function() { alert('Hello'); } } Function to load and instantiate classes dynamically: function iniciaClasse(nom...
asked by 29.07.2017 / 14:40
1
answer

Form does not receive registered data

What's happening: I have a system that, when you finish filling out the form and saving, does not save the changes appearing a alert "saved without changes" and returning to the previous page. It does not seem to be a connection pr...
asked by 31.07.2017 / 14:27
2
answers

How do I add bookmarks to the google map by clicking on it? - JavaScript

I'd like to know how to add bookmarks to the map by clicking on a point in google maps. Actually creating / adding the marker "manually" I already know, what I really wanted was to trigger the function of adding the marker by passing the latitud...
asked by 28.07.2017 / 22:56