Posts by Bartolomeu S. Gusella • 484 points
21 posts
-
4
votes3
answers1111
viewsA: Nfe emission by Android app
I believe that the Web Service is the best option, because to request for NFE vc need to have the certificate installed, if you did this on android would have to manage the certificate on each…
-
0
votes2
answers128
viewsA: Difficulty accessing url with angular post
There is a rule that is a 'a.com.br' domain page can not make requests in the 'b.com.br' domain this is basically a security rule to avoid using the exclusive services of an application in another…
-
0
votes1
answer74
viewsA: How to copy the generated html content within ng-repeat into a textarea?
I was able to get the html through Jquery Lite that comes embedded in Angular. I put a id in ng-repeat initial and created a button with the function of placing html in the model follows link from…
-
4
votes2
answers665
viewsA: When using jQuery append displays the text [Object Object] and does not insert the element
When using the this you’re using an object from Javascript Puro that do not have Jquery implementations, to fix just give 1 cast on this box.on('click', function (e) { $(this).append(item) }) If you…
-
0
votes1
answer109
viewsA: how it returns pata html array via ajax/php
We will have 1 file called getAdressAjax.php <?php require 'function.php'; get_ADRESS(); ?> *(I’ll assume your project uses Jquery) **(following example) In this case the request is only…
-
2
votes4
answers10528
viewsA: Contact form with AJAX without refresh
You can just change put the target in the form <!DOCTYPE html> <html> <head> <title></title> </head> <body> <form name="contactform" method="post"…
-
2
votes1
answer103
viewsA: Error displaying alerts with $_SESSION[""]
"Remember that header() must be called before any current output is sent, either by normal HTML tags, Blank Lines in a file, or from PHP" Remember that header() should be called before any output is…
-
0
votes1
answer64
viewsA: Keep testing until a variable is created in php
1° - you open a connection for each query line "select id_principal from componentes where id_secundario = ".$_POST['IdAparelho']." I suggest you open 1 connection only and close it after the loop…
-
1
votes3
answers1270
viewsA: How do I not display the directory list?
Super Fast Mode to Solve This Problem create a blank "index.html" file and place it in the 'general' folder (JOOMLA methodology) You can solve the problem with index.html blank or by configuring…
-
0
votes2
answers56
viewsA: How can I return a query by grouping by the table name using Pdo, php and mysql?
I didn’t understand the column number "column name": "226", But you can make a consulate in INFORMATION_SCHEMA with the CAST (AS JSON) SELECT table_name, CAST( ( SELECT ISC.COLUMN_NAME FROM…
phpanswered Bartolomeu S. Gusella 484 -
1
votes1
answer26
viewsA: I can’t add jsonArray return
Your problem are the scopes of variable. function send_notification(){ $jsonArray = json_decode($result); $cont_sucesso += $jsonArray->success; //esta é a variavel dentro do escopo da func…
phpanswered Bartolomeu S. Gusella 484 -
0
votes1
answer47
viewsA: doubt with json
In the controller you arrow the atual = 0 Suppose your list is in a variable called registros <div class="local_exibicao_dados">{{registros[atual]}}</div> <a ng-click="atual--"…
-
0
votes3
answers665
viewsA: Form Validation with Submit
Well if you have 2 Forms and they depend on Form1, I suggest you put the Form1 data on Hidden Fields in the 2 Forms... I imagine the flow is this... 1° user fills the data in Form1 2° user clicks…
-
4
votes2
answers134
viewsA: Count only from visible cells
Since you make a loop searching the labels and setting the visibility already makes the count var count=0; $( ".data" ).each(function() { ... count++; and at the end Seto the value according to the…
-
0
votes2
answers157
viewsA: How to make "data-Binding" of two variables in the same select?
I guess just put it in the controller vm.service.id = vm.service.type ; The JS will reference the same memory space and any changes in type will reflect on id But if it doesn’t work perfectly you…
-
2
votes3
answers130
viewsA: Store PHP array value and quantity
To complement Macário Martins' response, you would first have to transform the multidimensional array into a simple array... I used the OS example $dados_unidimensional =…
-
1
votes3
answers182
viewsA: Show Quantity of items per category in virtual store?
Use Count() and group by. Your query should look like this: select cat.nome, count(prod.id) as contagem from categoria as cat inner join produto as p on p.id_categoria = cat.id group by cat.id…
-
2
votes1
answer73
viewsA: Comparison of PHP Array()
foreach ($arrBanco as $objBanco) { foreach ($arrTag as &$objtag) { if($objTag->id == $objBanco->id){ // encontrei o $objTag, pode altera-lo diretamente aqui... $objTag->jaComprado =…
-
1
votes1
answer323
viewsA: How do I perform a text search and select tag together?
I would do something like this... $("body").on("click","#faq_bt_pesquisar",function(){ $("#h2_transicao").html("<?=$i->getMensagemIdioma("Pesquisando...")?>");…
-
1
votes1
answer48
viewsA: How to place random images at each access?
If this slide were html+css3 it would also be possible without the presence of javascript? No, you have buttons with stock that css3 does not... And how can I get that image brought from the…
phpanswered Bartolomeu S. Gusella 484 -
2
votes1
answer430
viewsA: jQuery conflict with Angularjs
A common problem is the order that js are injected into html, jquery with Angularjs works... If I’m not mistaken the angular should be declared before jquery. The angular itself already has a "mini"…