Questions tagged as 'javascript'

2
answers

Listing information with select

I have already opened a question of this here and a user of the site helped me, and healed my doubts. However, when I try to use the code again that he introduced me, he is presenting errors. He introduced me the code with States, and I modified...
asked by 07.03.2017 / 14:23
1
answer

Drag and drop only works with two clicks

I'm having trouble dragging and dropping items on my list. I can only hold and drag an item after giving a single click on it. Does anyone know how I solve this? Here is my code: <ul id="sortable"> <li> <a> <span c...
asked by 03.03.2017 / 18:29
3
answers

Send data from a html table to php

Hello I have a table <table> <thead> <th>Codigo</th> <th>Nome</th> </thead> <tr>'insira o código aqui' <td>1</td> <td>Carlos</td> </tr>...
asked by 07.03.2017 / 00:56
1
answer

Problem loading jquery load [closed]

I'm having trouble loading these values into the jquery load. Follow the code. Javascript: $('.buscando').click(function(){ var id = document.getElementById('campo1').value; $("#cliente1").load('/wbahd/servico_...
asked by 19.05.2017 / 03:46
1
answer

React Native presents error when I try to emulate Android

I have an app that should be tested on an Android emulator. After setting to the React Native and Android environment (Including the environment variable). I can not run my app on the Android emulator. Message spoof: I'm using windows 1...
asked by 11.04.2017 / 16:23
2
answers

Run css while loading Javascript CSS page

I'm developing a web application and would like to take the border off loading page, but it has the following error. Uncaught TypeError: Cannot set property 'border' of undefined JS <script> $(document).ready(function(){ d...
asked by 23.10.2017 / 02:03
2
answers

Synchronizing PHP data with JavaScript

When the page loads through the URL index.php?num=58 initially the page autosalvar.php does not recognize the value of the input name="num-edit" (containing the number 58 ), however when passing the time of 2 seconds the va...
asked by 21.02.2017 / 21:29
1
answer

Login with AJAX and PHP with database (Why is it going wrong?)

$(document).on("click","formlogin",function(evt) { $.ajax({ type:"GET", url:"http://localhost:8080/ProjetoXDK/appModelo/www/php/entrar.php", data:{ var cpf = $('#cpf').val(), var...
asked by 22.10.2017 / 20:29
1
answer

use of regex in a switch

I'm trying to use regular expressions to validate a switch, however, it occurs to me on the console that "day.match" is not a function: function dayOfWeek(day){ var regex = /[1-7]/g; if(!day.match(regex)){ day == 8; } switch(...
asked by 20.10.2017 / 19:01
2
answers

CheckBox Switch - One of them must be marked as true or 1

Example: I have 6 different checkboxes. All of them are with name="checkbox[]" , one of them must be marked with 1 or true. Here's an example in jsfiddle: link The "SUBMIT" button is not working. Update - Try 1 Here's jsfid...
asked by 07.02.2017 / 01:50