Questions tagged as 'jquery'

1
answer

WebService Read Script

I'mtryingtomakethiscodework,butintheexcerpt:success:function(retorno){If(retorno[0].erro){$("h2").html(retorno[0].erro); } An error is occurring, and I can not identify what is missing. The message the debu...
asked by 16.01.2018 / 19:13
2
answers

How to make the value of the input appear in json?

So I'm having doubts here, would it be possible to make the input fields I have play what I typed in a JSON? EX: This would be the form <form role="form" method="post" id="searches" accept-charset="utf-8" action="<?php bloginf...
asked by 20.03.2018 / 02:56
1
answer

Problem passing some Json messages to Jquery

Well, I have a form that is passed to my PHP via Ajax in Jquery and returns the result via Json to my console. Here's a snippet of code in PHP. if($tabela == 'setup') { if(isset($_POST['nome'])){ $nome = $_POST['nome']; if...
asked by 07.05.2018 / 21:58
1
answer

result of ajax in php session

I am filtering a cpf / cnpj through imput / datalist and checking the result with ajax. I want to bring the result in 2 php sessions but I can not. The page that contains the filter: <!doctype html> <html> <head> <meta...
asked by 03.05.2018 / 00:04
1
answer

How to make a global variable jquery?

I have this following variable: Site = { Alert: function(titulo, conteudo, data){ var id = Math.round(Math.random()*10000); } } I would like to access it anywhere in my code, specifically here: User = { ConfirmSair: functio...
asked by 30.07.2017 / 22:21
1
answer

add an id with Jquery

I have two functions: One is a function that counts how many characters there are and within that of a color and percentage the progress bar for an if The other is a bar that counts how many ids there are and from that the given number, what I w...
asked by 15.09.2017 / 19:57
2
answers

Check Internet connection, if not add modal

I have this code below that checks if there is an image in the url, if it does not exist. I would like that in the place of the alert that he called a modal informing that this without internet friends somebody of that gallows here to friend....
asked by 19.05.2017 / 02:18
1
answer

JQUERY, PHP, HTML 5

How can I circumvent a CPF validation, and in the company that I work if the customer has any pending in the CPF, the sales page does not allow to proceed. By other means, there are one or two employees who are able to circumvent this process th...
asked by 29.12.2017 / 13:21
1
answer

mask is not a function

I'm having a bug in a jQuery mask function. Here's my code: //############## MASK INPUT $(".formDate").mask("99/99/9999"); $(".formTime").mask("99/99/9999 99:99"); $(".formCep").mask("99999-999"); $(".formCpf").mask("999.999.999-99");...
asked by 14.12.2016 / 14:39
1
answer

Read URL values in Javascript [duplicate]

I need to read all the values of a URL (below) in Javascript, taking both the name and the value to store in a database. cadastro.php?codigo=4355&nome=Renan&[email protected]&celular=66992541453&40=on&11=on Can any...
asked by 10.01.2017 / 14:39