Questions tagged as 'javascript'

1
answer

Alert / pop up message in ASP.Net MVC

How to create alert or pop up to have the same effect as MessageBox in a web application? My code [HttpPost] public ActionResult NovaSolicitacao(Solicitacao pedidoSolicitacao) { pedidoSolicitacao.Usuario_Id = GetUser(); if (...
asked by 25.09.2014 / 16:48
3
answers

Adding current class to the menu

I'm having the problem in my JS it's adding the Current class to all #li. html <ul id="navlist"> <li id="home"><a href="/">Home</a></li> <li id="sobre"><a href="/sobre">Sobre</a> &...
asked by 26.03.2015 / 14:38
1
answer

AJAX request gives error and status "canceled"

I have this code: $("#go").click(function(){ var email = $("#email").val(); var password = $("#password").val(); $.ajax({ dataType:'html', type: 'post', data: 'email=' + email + '&password=' + password...
asked by 09.07.2014 / 04:22
4
answers

How to clear html form fields? [closed]

javascript variables that reference each field in my form var checkbox = $('input:checkbox[name^=check]:checked'); var categoriaVeiculo = $("#codCategoriaVeiculo").val(); var descricaoVeiculo = $("#descricaoVeiculo").val(); var pla...
asked by 27.02.2015 / 20:54
1
answer

ReferanceError while executing script

The code below changes the innerHTML of a DIV and when I run the function item.Footer(); the javascript console tells me "ReferanceError 'item is not defined?" (function() {var item ={ Name: "site-info" Html: "Powered by <...
asked by 27.04.2015 / 17:02
2
answers

Know the last index of a .each

I'm running a .each and would like the last position to have a alert . For this I am trying to get the last position of index : if (index == len - 1) { alert("Última posição"); } Complete code: $.getJSON("/Contrato/...
asked by 23.07.2014 / 17:45
4
answers

How to check if there is only one position in the array element?

In my code I do a search on BD adding array to the results found. And before the value I enter a letter to identify the results. <?php $w_select ="SELECT * FROM public.sai_cad_patr_seri WHERE...
asked by 29.10.2014 / 14:18
2
answers

fade in / fade out does not run

<script type="text/javascript"> $(document).ready(function () { alert("ready"); $("#comentario").fadeIn(1000); $("#nome").fadeIn(2000); $("#foto").fadeIn(4000); $(".back").click(function () { $("#comentario").f...
asked by 15.10.2014 / 06:37
3
answers

if condition with JavaScript within PHP

Is it possible to check if the variable is null in the JS snippet in PHP? <?php print("<SCRIPT language=javascript> string_patr = \"$string_patr\"; string_seri = \"$string_seri\"; if(string...
asked by 29.10.2014 / 15:43
2
answers

Wanted to show an alert after a form is submitted, PHP, JAVASCRIPT, HTML, AJAX

I'm having problems, where my form is being sent to the bank but in the alert it appears alert("erro ao enviar formulário"); . <?php if(!empty($_FILES['uploaded_file'])){ $username = 'root'; $password = ''; $connec...
asked by 06.10.2018 / 15:41