Questions tagged as 'javascript'

1
answer

Javascript does not work in Webview

I have this simple search engine, it works in all browsers, even in android chrome, but it does not work in Webviews, some suggestion of what it might be and if there is any other compatible code that can replace this, without being by javascrip...
asked by 18.04.2018 / 20:29
1
answer

Would someone have a solution to turn "checkbox" into "radio"

I have a Jquery code along with Js, because I want to turn checkbox into a radio, this code works with radios, with just one click in the same place it unmark the radio if it is checked, and if the user clicks another it unchecks the previous on...
asked by 24.05.2018 / 00:05
2
answers

Popular select dynamically

I have a query that returns a array where I want to pop a select dynamically, but by the code below it gives undefined for(var i = 0; i <= cidades.length; i++){ var html = ""; html += "<option>"...
asked by 23.05.2018 / 19:57
2
answers

How to create regex that accepts only characters with no accents

In my form html , I have the "name" field. In this field, I want to allow the field to accept only characters with no accents. How to do this validation using Regex? I do not want a function, I want to put an attribute type in the field...
asked by 22.05.2018 / 15:18
2
answers

Problems with thumbnails in list and grid mode with bootstrap

I need to make these cards in list mode and grid mode I am using flex-column to leave the dynamic grids more when I add the cards they do not work anymore this is the layout mode of my layout: andthisisanoutlineofgridmode: followmycode: $("...
asked by 23.05.2018 / 15:29
2
answers

The 'map' property does not exist in type 'Observable Response'

I'm using version 6 of Angular and found an error when using Observable. It says that the map property does not exist in the Observable type. my code is like this. import { Observable } from 'rxjs/Observable'; import { Injectable } from '@angu...
asked by 24.05.2018 / 07:35
2
answers

How to assign all the characteristics of one object to another, least one in particular?

I'm creating a card game that runs in the browser and I need in some situations, there may be the same cards in different hands ("Computer" or "Player"). However, I do not want to have to create another object to represent the enemy cards. This...
asked by 23.05.2018 / 21:55
1
answer

show text on another page

I am doing the form field validations, and I want to show a message in case they are wrong, as in the example: Passwords do not match Thisisthecodefortheactionpagewhereyoudothevalidations:<!DOCTYPEhtml><html><head><title...
asked by 22.05.2018 / 15:40
1
answer

Passing JS variable to ManagedBean

I have a variable in js, and I need to send it to my ManagedBean, what is the most correct way to do this?     
asked by 03.04.2018 / 14:21
1
answer

How do I get php variables and pass to a different JS file with ajax?

$(document).ready(function(){ $("#botao").click(function(){ $.ajax({ url:'../../../consulta.php', type: 'POST', var senha = document.getElementById('#senha').value; data: { senhap: 'senha', succ...
asked by 03.04.2018 / 14:15