Posts by Marcos Souza • 409 points
21 posts
-
1
votes1
answer42
viewsA: How to make a top designer with these breakups in Woocommerce?
Using CSS and images you can do as follows: body{ margin: 0; padding: 0; } .container { margin: 0 auto; width: 100%; display: flex; height: 110px; background-color: #f6f6f6; } .blocks { width: 25%;…
-
1
votes1
answer177
viewsA: How to loop, capturing the keys and values of an object
To display the two key and value can do so var obj = { 'Name' : 'String 1', 'Age' : 'String 2', 'Key N': 'String N' } Object.keys(obj).forEach(function(item){ console.log(item +' => '+…
-
0
votes4
answers995
viewsA: User permission - Angularjs
Create a third party to execute the admin function whenever there is a request. It could be like this: //interceptador angular.module('seuapp').factory('authInterceptor', function($rootScope, $q){…
-
0
votes1
answer220
viewsQ: Function javascript in html string
I have a loop that displays multiple Ivs,and I have a span that has a function called remove, however when click to run the error function always but in html it is correct. (function() { //Seta…
-
2
votes1
answer95
viewsQ: Use of keys to display javascript
With angular and other frameworks it is necessary to display values or call javascript functions inside keys in the middle of html code.example: <div>{{exibeNome()}}</div> How can I use…
javascriptasked Marcos Souza 409 -
1
votes0
answers271
viewsQ: Loading large JSON file
Staff I have equipment here that provides a log on JSON which is inserts the data each 2 seconds,It provides this log for reading, the problem is that this file has log 30 days, I am using ajax to…
-
2
votes1
answer2812
viewsA: How to select the ids of a table with checkbox and save in the bank?
You so to collect the Ids you want to change, then send the new array with Ids for your PHP saved in the database. function coletaDados(){ var ids = document.getElementsByClassName('editar');…
-
1
votes3
answers164
viewsA: Retrieve a checkbox id by the class using getElementsByClassName()?
You can do it this way. function selecionaDactes(){ var ids = document.getElementsByClassName('editar'); gravaArray(ids); } function gravaArray(dados){ var array_dados = dados; for(var x = 0; x…
javascriptanswered Marcos Souza 409 -
1
votes2
answers100
viewsA: How do I combine a checkbox with a switch?
This code you posted is half empty, lack to know the correct options. But you can do this to validate the checkbox marked and validate according to the correct answer. function verificaRespostas ()…
-
0
votes1
answer2023
viewsA: Different links in Bootstrap
You can do it like this. <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title></title> <link…
-
2
votes1
answer174
viewsQ: React class constructor error
I have the following error when I try to use Component in this way. client?cd17:119 ./src/App/Components/AddNote.js Module build failed: SyntaxError: super() outside of class constructor (9:4) 7 |…
-
1
votes1
answer245
viewsQ: beforeupdate sequelize does not work
I am trying to make the data update encrypted the user password but simply does not work and does not issue error. Have the following model of sequelize. import bcrypt from 'bcrypt'; export default…
-
-1
votes2
answers922
viewsA: Secure connection to the database
The most secure way to make connection I believe is using PDO. Right here at Stackoverflow you have a similar question and the answer is for your enquiry. Using PDO is the safest way to connect to a…
-
2
votes1
answer161
viewsA: How to get out of an Angularjs SPA (Single Page Application)
At the SPA, you can put a button to exit or in some function return to some home url, you can use the window.location.assign("http://exemplo.com.br/home"); javascript.
-
3
votes2
answers13268
viewsA: How to delete files in a directory with batch script?
Since it is a subfolder of your root directory, not the need to quit, but I in particular always prefer to use the command with an absolute path for greater security. del…
-
1
votes1
answer44
viewsA: Carousel shows no photo
I have an example that I use here and works normal, the only thing that seems to be missing is in div of the picture one class="active item" why the carousel needs to have a div with an active…
-
0
votes1
answer190
viewsQ: Error with angular intercerptors
I’m trying to implement an authentication system with Angular + json web token, but when I try to make one $http.interceptors.push('nomeDo Interceptor') error in application and browser console…
-
0
votes1
answer185
viewsA: How to Do Automatic Scrolling
I tested this way here and it worked, try to see. <div id="peguntaResposta" style="height:100px;overflow-y:scroll" id="test"></div> It’s important to remember that you have to have one…
-
1
votes1
answer49
viewsA: Sqlserver on a network
Yes, just on your pc in Visual Studio, add a server in the tab (server explorer),right click and the context menu that opens will have the option, add server, then just enter with the…
sql-serveranswered Marcos Souza 409 -
2
votes3
answers496
viewsQ: List json object returned by php
I need a help, I am developing an app with HMTL5, JS, CSS that lists a pizza menu. My PHP returns an array that I use the json_encode() to be available in JSON format. So far everything then I have…
-
0
votes2
answers960
viewsA: How to make Nginx display error messages on screen in the same way as Apache does instead of '502 bad gateway'
If I understand well what you want is to show the execution errors. Usually with apache you just enable DISPLAY_ERRORS in the php.ini as follows. [raiz]php.ini DISPLAY_ERRORS= ON In my case I define…