Posts by Erick Zanetti • 403 points
41 posts
-
1
votes0
answers75
viewsQ: Import an angular design within another angular design
I would like to know if it is possible for me to import an entire project in angular in another project, exemplifying let’s say I have a financial project and a stock project both ready and running…
-
1
votes0
answers930
viewsQ: Convert Base64 to pdf
I have in my application a function that converts the pdf to Base64 and saves in the database and then, I need to return this Base64 and show the contents of the original file.…
-
8
votes3
answers281
viewsQ: Pick up reply email content
I’m using the library of imap to log into a company account and bring in the new emails, when it’s an email reply I’d like to pick up only the new content but I can’t get it just the full…
-
2
votes2
answers681
viewsQ: Exchange contents of a div for an html file
I am making a simple portfolio that will not need any framework as angular or React, what I would like and do something so that I could create separate html files and a main just by swapping the…
-
1
votes2
answers832
viewsQ: Disable Initial validation of the Angular form
this.loginForm = formBuilder.group({ 'login': [null, Validators.required], 'senha': [null, Validators.required], 'estabelecimento': [null, Validators.required], }); Here I have my Validators…
-
1
votes0
answers185
viewsQ: Create fields with ngFor
I want to do something where I can every time I click the button to make new fields. What I’ve done is the following: <label for="">Contatos</label> <div *ngFor="let contato of…
-
0
votes1
answer109
viewsQ: Pass function by two way data bind
I was wondering if it’s possible to pass a function through two way data bind angular. I will try to explain, I have a component with 3 buttons and I would like to use them in several parts of my…
-
0
votes2
answers723
viewsQ: Implement function in child element
I have my template on a parent element and my child elements extending the parent element class. import { Component } from '@angular/core'; @Component({ selector: 'ngx-cadastro', template: ` <div…
-
1
votes1
answer4887
viewsQ: Send POST requests via browser or other program
By the browser it is possible to only perform gets by entering the url in the browser, would have some way to make POST requests by the browser or other application, this will greatly facilitate…
-
3
votes2
answers1305
viewsQ: Parent component receiving child component data
It’s kind of confusing what I want more come on I have my parent component that contains some buttons and a search field, and I have my kids components, I want to implement the function of the…
-
3
votes1
answer868
viewsQ: Angular Interceptor 5 is not triggered
Follows my code: app module.: import { APP_BASE_HREF } from '@angular/common'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from…
-
0
votes0
answers559
viewsQ: Instantiate class on application start
I would like to know if it is possible to instantiate a class and use it throughout my application without having to instantiate it and import it. I have my app.: import { Component, OnInit } from…
-
2
votes5
answers1389
viewsQ: Disable body click for a period of time
Would there be some way to disable my click events body. When I call a function I would like to disable the events in the processing which is a little time consuming and when it finishes activating…
-
0
votes1
answer28
viewsQ: Image conversion with PHP
It’s my first day with php and I’m doing a select that returns an image, as I do to render this image. Follow my select and the return of the image: class CooperMaisController { public function…
-
0
votes1
answer515
viewsQ: Change column value in Firebird
I have a table with approximately 7 thousand records, I need to create a new column in this table but I would like all old records to have the value’S', when I try to create the column the fields…
-
0
votes2
answers611
viewsQ: Row hover and table column
I would like that by hovering over a cell in the table the column and the respective row of the cell change the background only to the cell. follows an example of how this and how I want it to stay:…
-
0
votes1
answer605
viewsQ: Table in html with excel classes
<!DOCTYPE html> <html> <head> </head> <body> <table> <tr> <th>Company</th> <th>Contact</th> <th>Country</th> </tr>…
-
3
votes3
answers707
viewsQ: Foreach wait for the select result to proceed
I have a forEach which traverses a code list and within it I have a select that queries the database records. After the forEach, data is sent from my server to my client, but forEach does not expect…
-
0
votes1
answer698
viewsQ: How to improve select performance
I have to use Firebird, but I do not get along very well with database, I selected the following way: select first 5 skip ((1 - 1) * 10) distinct PRO.CODIGO, PRO.NIVEL_INTERESSE, PRO.DATA_RETORNO,…
-
1
votes0
answers26
viewsQ: ng-click and ng-dblclick in the same element
<div ng-click = "clickOne()" ng-dblclick = "clickTwo()">Enter</div> Javascript> $scope.clickOnce = function () { alert("CLick One"); } $scope.clicktwice= function () { alert("CLick…
-
0
votes1
answer360
viewsQ: Read Filereader generated string in result function
Next I’m able to generate a string in base 64 but I can’t send it to my server, follow the code: $scope.cadastraFoto = function(){ var input = document.getElementById('fotoPerfil').files[0] var…
-
0
votes1
answer429
viewsQ: Upload photo with Javascript
I need to take a photo and pressing the button this photo is sent to my server so I save in my database on base 64, I just can’t grab the photo and convert to Buffer. My code: (function() { 'use…
-
0
votes0
answers130
viewsQ: The requested Resource does not support http method
My code: var data = JSON.stringify(orderNo) options.path = "/1/sales?merchantOrderId=" + orderNo options.method = 'GET'; console.log(options) var req = https.request(options, function (res) {…
-
5
votes2
answers636
viewsQ: Request of type Options
My question is, whenever I make a request before it is actually sent a Options request, I wonder what it’s for exactly. What impact can I have by removing this request both on performance(internet)…
-
2
votes2
answers1240
viewsQ: Is there a way to auto-increment the id in Mongo?
You can do this, every time I create a new user for example it auto increments _id. Starting from 1 and going up to the number of users
-
1
votes1
answer50
viewsQ: Search for similarity in Mongo
I need to make a find in my Mongo by likeness example [ { "nome" : "Erick", "codigo" : 1, "periodos" : 10 }, { "nome" : "Erica", "codigo" : 1, "periodos" : 10 }, { "nome" : "Arthur", "codigo" : 2,…
mongodbasked Erick Zanetti 403 -
1
votes1
answer424
viewsQ: Block commits on Github
I have a repository on Github and recently my friend also started helping me in this repository, I was wondering if there’s a way I can reject his commits or something
-
0
votes1
answer294
viewsA: Select for card expiration
I did something that might break a branch <div class="col-md-3 col-lg-3 col-sm-12 col-xs-12"> <label>Ano</label> <select required ng-model="customer.yearCard"> <option…
-
2
votes1
answer294
viewsQ: Select for card expiration
I wanted to make two fields select one for the month and one for the year to use as expiration dates of a card, but wanted it to be generated dynamically and that when selecting the year 2017 for…
-
2
votes1
answer75
viewsQ: Ng-repeat passing a number
I want to mount a select whose options will be generated by an ng-repeat, but for this I want to pass a number, for example if I pass the number 5 in the variable will be mounted 5 options with…
-
0
votes0
answers233
viewsQ: Request to Cielo with Node.js
Giving the following error code: TypeError: First argument must be a string or Buffer My code is like this: request: function (dataJson, callback) { var options = { hostname:…
-
2
votes1
answer33
viewsQ: Javascript object does not create new Keys
I am using Mongodb and returns me all the right data but when I want to add a new Key simply does not create. exports.validaLogin = function(req, res) { login.find({ "nome": req.query.usuario…
-
0
votes0
answers137
viewsQ: Problems sending requisition to Cielo
I am setting up a transparent payment method for Cielo and I use Ode on my server I have already set up my Json. But I can not send the data correctly to Cielo, someone knows some way to send the…
-
-1
votes1
answer290
viewsQ: Create Options with div and interact with Javascript
I need to create something similar to an opiton using div and sapan, which contain images like icons, and still have an interaction with Javascript. My code works like this, if you see any server…
-
0
votes1
answer322
viewsQ: Image in select
I have a language select and I would like to leave flags instead of words, I searched and saw that this is not possible, I would have to redo the select using div and span. My doubt is how I do it.…
-
1
votes1
answer624
viewsQ: Div in body size
I have a div that is in my page footer, similar to a footer, the problem is that this div is inside other Ivs, I wanted it to be the exact size of my body, without touching the html only in css.…
-
0
votes1
answer38
viewsQ: Auto-redirect
I need something to keep listening to the url ie if the url: http://localhost:15000/api/Returnpayment/return for acessa I want to redirect to another url. The problem is that the url is generated…
-
2
votes1
answer702
viewsQ: Construct an Array with the date range
I will receive two dates, Example: 01/10/2017, 31/10/2017. How can I create an array with every day between these dates. Array = ["01/10/2017", "02/10/2017", "03/10/2017", ... ,"31/10/2017"]…
-
6
votes1
answer96
viewsQ: Date conversion
I have a date in this format "2017-10-13T18:15:41.143Z" And I would like a date in this format 10/06/2017 01:42:34 PM (-0300) How can I make the conversion?…
-
1
votes2
answers258
viewsQ: Create interactive grid with CSS
I wanted to create a grid interactive where when the person clicked on the image this same one appeared large beside, shopping site style. <div id='gridImagens> <div> <div>…
-
2
votes0
answers25
viewsQ: Render a directive
I have a directive that when I load the page it is rendered, the content of this directive will undergo some changes during use. I wanted a way that by pressing a button to reload this directive to…