Posts by Eduardo Breno • 720 points
17 posts
-
4
votes1
answer839
viewsA: Jquery Validate max as per condition
You can change the rules dynamically! I added the excerpt below in the fiddle to demonstrate. When there is a change in the combobox and if the value is 0 it removes the rule, otherwise it returns…
-
4
votes1
answer561
viewsA: Add X days on a predefined date in Mysql
You can use the function DATE_ADD(criado,INTERVAL 10 DAY) will add 10days upon field value criado
-
1
votes1
answer281
viewsA: Cakephp actions not found in Wampserver Vhost
I’ve had SSL issues in cakephp, but it was due to the server being set up wrongly I used this apache configuration for localhost and redirected http to https only in . htacess for SSL/https…
-
4
votes2
answers120
viewsA: Error running mysql_query
You are using mysqli_connect and using mysql_query without the i, it does not find the connection and says access denied to the user '' Because he can’t find the connection.…
-
1
votes1
answer286
viewsA: Cakephp 3 - How to do rollback
I was sabotaged by Mysql Workbench. It generated the tables with the Myisam engine that does not have rollback support, even being marked as Innodb. Solving it worked out.
-
1
votes1
answer286
viewsQ: Cakephp 3 - How to do rollback
In cakephp 2 in birds transactional with $data_source->begin(); ,$data_source->commit();, or $data_source->rollback();. So when I needed to insert into more than one table, and the data was…
-
5
votes2
answers399
viewsA: Using Node.js and PHP on the same server (Amazon EC2)
Yes you can, Apache by default uses port 80 and you can set another port to Nodejs as 8888.
-
0
votes1
answer86
viewsA: Angularjs - Filter ng-repeat checkbox
Following example, see if it meets you. function MyCtrl($scope) { $scope.itens = [ {id: 1,name: "nome 1"}, {id: 2,name: "nome 2"}, {id: 3,name: "nome 3"} ]; $scope.marcados = function() { var…
-
1
votes1
answer242
viewsA: Mysql Database Request $HTTP Api
Angularjs is executed on the client side a request is made for a URL, this URL must be provided by an APACHE application server, NODEJS among others. The tutorials that you must follow, should…
-
8
votes1
answer245
viewsA: How should the data of a route be stored?
Save the data to a database table or json file, as you prefer. But you need to have the time it was registered and the position in order to trace the route. You need to set a time interval or…
mobileanswered Eduardo Breno 720 -
2
votes1
answer936
viewsA: Total amount of values in PHP array
See if he answers you. <?php $array[] = array(500038, 204932); $array[] = array(100398, 204932); $array[] = array(100398, 204932); $array[] = array(500038, 204932); $array[] = array(100398,…
phpanswered Eduardo Breno 720 -
0
votes3
answers4878
viewsA: Open Function onclick in Select option
@Alh, follows an example without using jquery with javascript for better understanding. I suggest using jquery as the answer to @Giovane function nomeDaFuncao(elem){ var indiceDoSelectEscolhido =…
javascriptanswered Eduardo Breno 720 -
3
votes2
answers137
viewsA: Opening another page with Angular and Sweet Alert
You can use the $window.open('https://www.google.com', '_blank');
-
0
votes1
answer352
viewsA: Googlemapsapi - create markers filter
If I understand, missing you filter the markers, you should save them in an array and then remove the ones that are not in the list. var markers = []; var m = new google.maps.Marker({ position:…
-
0
votes2
answers72
viewsA: Is it possible to upload an image and rename it only with Java Script?
No, for security reasons you have no control to handle client-side files, you can rename after it gets on the server side.
-
3
votes2
answers162
viewsA: Error while capturing JSON field?
Your Json has several levels here you only enter level 1 $resposta = $jsonObj->data; within it has messages andlinks you need to say the next level to make iteration foreach…
-
1
votes3
answers246
viewsA: I need to check if my JSON is empty to search for url with parameter set in Curl
You just need to validate the variables tipo = $('#tipo').val(); if(tipo=="")tipo=0;