Questions tagged as 'javascript'

1
answer

Close a window in php and update the old one

Galera ... I'm not using a floating window and neither modal nor anything like that, my CBT had a problem and for the short term, I could not use this method. What I need is a code that closes the window that was opened and updates the old one....
asked by 22.11.2014 / 02:20
1
answer

Validation of input with query in "real time" to the database, to verify if the information already registered or not

I'd like to do a form validation in real time. For example, I have a input name="TituloFilme" type="text" , I in my database I have the following ID | TituloFilme columns. When I am registering a new movie title in the databa...
asked by 18.11.2014 / 22:30
1
answer

Identify SVG elements

I have this code to create SVG elements dynamically through a for, and a step number, which is the number of elements that are going to be created (by default equal to 10). I add an id to each element. I would now like to know if for example I c...
asked by 03.12.2014 / 13:00
2
answers

Problems with html select

I have the following codes in html and javascript: /** * Created by Erick on 22/11/2014. */ var data = new Date(); var meses = new Array("Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "O...
asked by 23.11.2014 / 01:00
1
answer

How to solve "Access-Control-Allow-Origin" problem [duplicate]

I'm not sure how to solve the problem with Access-Control-Allow-Origin . What do I do to work properly? function calc() { var cepDestino = document.getElementById( 'cepDestino' ).value; if(cepDestino.trim() != ""){ var...
asked by 20.01.2016 / 16:46
1
answer

Query in the send and use database in javascript

My difficulty is after sending to the java script how to separate each record: Example: In my code I'm running this function: $culturas=array(); $resultado=mysqli_query($conexao,"select *from mandioca_iea where id_cult=1");...
asked by 29.01.2015 / 03:02
2
answers

How to return the specific element when using multiple custom share buttons on the same page, using querySelectorAll?

This custom Facebook share button works great when you place just one button on each page. (This is an excellent way to make projects made in Ajax and JavaScript traceable to search engines and social networks.) When I put multiple buttons on...
asked by 16.02.2015 / 12:54
3
answers

Add effect "loading" jquery

I would like to add a load effect when the person submits the form, and after about 2 seconds, the load ends and the form displays the result (error or not) I would like to know how to deploy this system within this: <script type="text/java...
asked by 18.02.2015 / 13:42
2
answers

validation of multiple selects

How do I check if all selects have been selected? First I check if it is different from select, the user needs to check a different option than "select". Then I need to check that all selects are different from "select" While not differ...
asked by 18.09.2018 / 16:33
1
answer

Paste Numbers

How could I do to remove the dots from a number formats? For example, I get and copy a value 000,000,000 and paste it into my input , it would automatically leave this formatting of it and it would be " 000000000 ". I found a mask,...
asked by 18.09.2018 / 13:50