Questions tagged as 'javascript'

2
answers

JQuery does not find form

I'm using a form like this: <form name="mapping_marc" method="post" id="mapping_marc"> <?php foreach ($all_properties_id as $compound_name => $sub_properties) {?> <div class='form-group'>...
asked by 17.03.2017 / 13:50
1
answer

How to use PNotify within angular

I have the following code and I want to use PNotify to give notifications when the user and / or password is incorrect or / and mandatory field is blank. How do I do? Remembering that I'm using ASP.NET MVC and have already referenced the PNotify...
asked by 16.03.2017 / 19:44
1
answer

How to wait for the Javascript callback

I have a problem, I know because of how javascript works, but I do not know how to work around it. I'm using Cordova and a feature needs to use Phone permission on Android. So before running the method I check if the permission was granted...
asked by 17.03.2017 / 17:02
1
answer

Show alert when select select

I have the following code $query = mysql_query("SELECT id, nome, situacao FROM clientes ORDER BY nome") or print mysql_error() <select class="js-example-basic-single form-control" id="cliente" name="cliente"> <option value="Seleci...
asked by 17.03.2017 / 19:32
2
answers

Get value from the variable in the return of the function

$scope.fetchData = function (param) { var url = param; var thumb; var imgid = get_numbers(url); var hash = ("http://vimeo.com/api/v2/video/" + imgid + ".json"); $http({ method: 'GET', url: hash }).then(function success...
asked by 16.06.2017 / 18:31
1
answer

Function parameters not previously defined

I've seen some javascript functions with parameters that are not pre-defined, but still work. Doubt came up with the function below. The myFunction() function calls the pessoas.sort() method, which in turn receives an auto-invoked...
asked by 01.02.2017 / 04:37
1
answer

How to execute a javascript code received by an AJAX request?

I have this code in the database: <script type="text/javascript"> alert("teste script-1"); var axel = Math.random() + ""; var a = axel * 10000000000000; document.write('<iframe src="https://....;ord='+a+'?" width="1" h...
asked by 27.01.2017 / 17:17
2
answers

Change the position of a word in the text (Javascript)

I would like to change the position of a word within a given text using javascript. <form> <p> Este é o paragrafo, esta é <strong>palavra</strong> a ser movida </p> <span>Troque aqui a posicao da &...
asked by 29.01.2017 / 23:34
1
answer

Pass variable angularjs through function JS

I have a dynamic modal in Jquery that is called with onclick="ShowModal()" working. However, I want to send values coming from AngularJS and I can not. It sends the code AngularJS {{dado.idUser}} , but not the 01 value....
asked by 01.02.2017 / 17:58
1
answer

JavaScript show multiple div's at different time intervals

My question is about how to make multiple elements appear with different classes and times. The idea is to do as the Live interaction of Facebook. The Code is as follows: <ul class="reactions"> <li class="size1">:)</li>...
asked by 20.03.2017 / 12:26