Questions tagged as 'javascript'

1
answer

JavaScript Android Interface WebView Call Java function From JS onclick

I have all this code but I can not get JavaScript Interface to work with an html button to execute a function in java that starts an application with the intent method. I'm using Webview chrome client, an index.html file located in / main / a...
asked by 28.12.2017 / 16:34
1
answer

Problems running fadeOut

In the following function, if I change the class hidden due to a fade, the rest of the script does not work, except if I reload the page. That is, the element affected by the fade no longer appears when%% of the button is made. hide: fu...
asked by 29.12.2017 / 18:46
4
answers

Validate a drop-down list with a button that opens a modal window in bootstrap

I have a button that displays a modal window with bootstrap. <button id="btnPrueba" type="button" data-toggle="modal" data-target="#VentanaProducto" style="height: auto; background-color: lightgray;"> But now I need to eval...
asked by 21.03.2018 / 15:36
1
answer

How to control / restrict users from commenting

I have my end-of-course project (in Web Application Development), in which I allow to value and comment to registered users different small commerce stores. The thing is that how do I check that a user has commented or not to a trade? What I...
asked by 30.03.2016 / 09:42
3
answers

problem with ajax and php

my question is: I am sending data through ajax to the server, for that I have a bit of code in php and js. but what happens is that when the data is correct it sends me to the php screen telling me that they are correct but it does not show me t...
asked by 27.02.2018 / 23:08
2
answers

The correct syntax to use the trim () function in a form that uses javascript and php

I have a problem using the function trim , the problem is to modify the value of an object by a variable that is influenced by the function trim . var mat = $("#Name").val().trim(); var opc = $("#Name"); What I'm going for is: I...
asked by 04.08.2017 / 13:35
4
answers

How do I show the result of a loop in a table?

I am trying to make a page that shows the conversion of 1 to 10 dollars, dollar for dollar and that is printed using a while loop but inside a table, but until now I have not been successful. The code that I created goes something like this: &...
asked by 03.08.2017 / 17:59
1
answer

Search data in the drop-down list from a text field

How can you get a text field to search for a data that is in a drop-down list and that it automatically searches for the requested data from the text field? . I found an example in Javascript very interesting, but when I called the text fi...
asked by 09.11.2017 / 20:09
1
answer

Problem with JSON object [closed]

I have a problem with the JSON object (jQuery using the $.post method) where I try to search my database (mysql) with an input and fill in the rest after consultation. The point is that I fill in these fields for a few seconds, with the c...
asked by 23.08.2017 / 18:46
3
answers

problem to send form by ajax

[! [enter the description of the image here] [2]] [2] I am trying to send a form via ajax, to prevent the page from refreshing: function form(){ $.ajax({ type: 'POST', url: 'formulario.php', data: $('#for...
asked by 11.07.2017 / 16:05