Posts by Gymo • 393 points
18 posts
-
0
votes1
answer46
viewsQ: How to edit the title of ALL Alerts in the Ionic app, and not just one?
By following the Ionic documentation, I can edit the title of an Alert using the one taught in the following link:insert link description here However, when Alert is fired from within an iframe, it…
-
0
votes1
answer189
viewsQ: How to copy div from iframe to parent? (replicate) can be using ajax, jquery, javascript
I have an index.php that does a post in.php content, and takes the result and writes to the div #content inside index.php. Post: <script type="text/javascript"> $(this).on('load',function(){…
-
2
votes2
answers356
viewsQ: Take any variable from an array that has a certain id in Angularjs
With the following code, I am saying that in the second array contained in the object $scope.listademercadoria there is the property "quantity", and I am declaring it as value 0.…
-
1
votes1
answer159
viewsQ: Sort by id in Angularjs (Javascript)
I have an Angularjs object: $scope.listaDoCarrinho = [0: { id: "55", setor: "alimento", foto: "Produtos/Produto (55).jpg", descr: "Espaguete Renata", de: 15, … } 1: { id: "1000", setor: "biscoitos",…
-
1
votes1
answer333
viewsQ: How to perform . filter between arrays/objects Angularjs Javascript
I have the following two objects in Angularjs: $scope.listaDoCarrinho = [0: { id: "55", setor: "alimento", foto: "Produtos/Produto (55).jpg", descr: "Espaguete Renata", de: 15, … } 1: { id: "1000",…
-
0
votes1
answer45
viewsQ: How to KEEP only what was filtered in Angularjs?
I have the following Angularjs file: <script> angular.module('meuModulo', []) .controller('mercadoriaCarrinho', function($scope, $http) { var ctrl = this; $scope.listademercadoria = [];…
-
4
votes2
answers454
viewsQ: How to sum up all the elements of an ng-repeat?
Example: I have any ng-repeat, which repeats each one a number. How do I store a variable that is equal to the sum of this number of each repeat? Code Angularjs: ngular.module('meumodulo', [])…
-
0
votes2
answers904
viewsQ: How to reference the variable within HTML through Angularjs?
Inside an ng-controller, I want a variable to appear, and it is not appearing. HTML code: <div class="body" ng-controller="mercadoriaCarrinho as merc"> <span>Total dos produtos:…
-
0
votes2
answers680
viewsA: How to make a button appear/disappear only from one of the loops created by ng-repeat? (Programming in Angularjs)
Solved! I set a "boto" variable inside each ng-repeat loop, so that boto was always $mercadoria-1. When clicking remove, then the boto received $boto+1, thus leaving the two variables equal. And I…
-
2
votes2
answers680
viewsQ: How to make a button appear/disappear only from one of the loops created by ng-repeat? (Programming in Angularjs)
My angular code has an ng-repeat as follows: Angularjs: angular.module('meumodulo', []) .controller('mercadoria', function($rootScope, $http) { var ctrl = this; $rootScope.listademercadoria = [];…
-
2
votes2
answers105
viewsQ: How do I use dynamic information coming by ng-repeat {{}} and use it as the argument of an ng-click (button) function?
I have a function ng-click: ng-click = "adicionar(0);" This function ng-click is inside the loop ng-repeat = "mercadoria in listademercadoria". There is a way to pass on information according to the…
-
1
votes1
answer50
viewsQ: Why does variable increment function not work in Angularjs? Am I not accessing the variable correctly?
Hello. I need to change the value of a variable in Angularjs but I am finding the following problem: "Cannot set Property 'quantity' of Undefined". By clicking the button add, need the variable…
-
0
votes1
answer2495
viewsQ: When calling an iframe inside a . php file, how to send a variable and receive it on the page pulled by the iframe?
I have an index.php page that contains the following script: <html> //cabeçalho... <div id="conteudo"> </div> <script type="text/javascript"> $(this).on('load',function(){…
-
1
votes1
answer411
viewsQ: Set a text file on the server to be read every time you run . html (with embedded Javascript language)
I need the browser to return me pre-registered information of people and their addresses, where each one has two houses on the same street. To do so, I simulated a server in my pc folder, and thus…
-
12
votes4
answers299
viewsQ: What does the "do" function do in Javascript?
I searched a lot and I can’t find the functionality of do in Javascript. Example: function b(a, b) { do a = a[b]; while (a && 1 !== a.nodeType); return a }…
-
3
votes2
answers281
viewsQ: What does the term typeof module mean in javascript?
What the term "typeof module" means in javascript? Example: function(c,p){"object"==typeof module&&"object"==typeof…
javascriptasked Gymo 393 -
1
votes1
answer2739
viewsQ: How is the . js extension file that is used by the browser to open web pages created?
How is created the . js extension file that is used by the browser in opening web pages? I’m studying a site already created to understand the operating system of the sites. In the archives of this…
-
1
votes2
answers148
viewsQ: What does this line mean? --> $.ajaxSetup({ scriptCharset: "utf-8" ,contenttype: "application/x-www-form-urlencoded; charset=UTF-8" })
Hello, I’m analyzing a program already made to learn, it’s working, but I got to this part and I’m not finding online the meaning of it. Could someone help me? Follow the line of code: $.ajaxSetup({…