Posts by Gabriel.H • 187 points
20 posts
-
1
votes1
answer40
viewsQ: Blank line Elixir template
This code displays a message if it exists, but when it does not exist, displays a white line: <%= if @comprovante["transacao"]["complemento"] do %>OBSERVACAO: <%=…
-
0
votes0
answers20
viewsQ: Changing a route parameter
I have an app Ionic in which I use tabs with two different pages and I have to pass parameters to them. <ion-tabs #myTabs color="credisis" *ngIf="pagador"> <ion-tab tabIcon="person"…
-
1
votes1
answer679
viewsQ: Upload a PDF file
I need to upload pdf files with angular js. I have a field for the user to input a file, but how to send this file to the back end and save it in some folder?
-
0
votes2
answers217
viewsA: Take content from a list of a website and save to the PHP database
From what I understand you want to save only part of the html in the right bank? Well you can try to make a bank explode by passing the beginning of the html you want and then take the index of this…
-
1
votes1
answer52
viewsA: Promise Javascript
Good you can take the treatments from the AJAX function and return only the promise: function executaChamadaAPI(URL_API) { const URL_SERVICO = URL_BASE + URL_API let resultado = { erro: "NOK",…
-
1
votes1
answer540
viewsA: Difference between function and anonymity function in Javascript
Well the only syntactic difference is that the anonymous function does not have a stated name. But there is a difference in usage, since an anonymous function has no name, it cannot be called…
javascriptanswered Gabriel.H 187 -
1
votes2
answers1298
viewsQ: Which tool to use for sending SMS in Arabic
Good staff I have a PHP application and I need to send an SMS to some clients but I don’t know how to implement this function , how can I do?
-
-2
votes2
answers783
viewsA: Create a new database with Mysql user and password directly from PHP
To create a user you do not need to put a field for token , that would be permission, it is only necessary to generate this token and put in session ex: $_SESSION['token'] = $tokenGerado; the user…
-
2
votes4
answers173
viewsA: How to delete only 1 form field?
You can place the onload attribute in your barcode field and assign the function to set the null value: <input onLoad="document.getElementById('codigo').value='';" class="form-control"…
-
0
votes3
answers563
viewsA: How to give the "modal" effect on a div?
Use Jquery for this function disativa() { $("#test *").attr("disabled", "disabled").off('click'); } Call this function when the toolbar starts
-
2
votes2
answers299
viewsA: How to move the position edges after the Hover?
Friend if you want a smoother transition, add this -webkit-transition: 0.5s ease-in; -moz-transition: 0.5s ease-in; -o-transition: 0.5s ease-in; transition: 0.5s ease-in; css from div.class,…
-
1
votes3
answers248
viewsA: How do you make the edges of a div transparent?
Friend you can use a "linear gradient" div { background-image: linear-gradient( to right,white, black 50%, white ); } You define a percentage for the solid color that in case will stay in the middle…
-
0
votes2
answers255
viewsA: Is it possible to use ng-model with contenteditable?
See if this article helps It shows how to create contenteditable directive https://www.npmjs.com/package/ng-contenteditable…
-
0
votes4
answers64
viewsA: What practice is recommended to check if jQuery’s Ajax function is present and is recognized by the browser, does anyone know?
First you can create a variable to make a request ajax any Dai inside the function you will test the possible browsers , if not accept returns an error function ajaxFunction() { var xmlHttp; try {…
-
0
votes4
answers64
viewsA: What practice is recommended to check if jQuery’s Ajax function is present and is recognized by the browser, does anyone know?
You can use When in your request $.when( $.ajax ).then(function( data, textStatus, jqXHR ) { alert( jqXHR.status ); // Alerts 200 }) .catch(function() { alert ('Status xhr: não suporta Ajax'); })…
-
0
votes4
answers1457
viewsA: How to make the screen scroll by clicking on a <a> tag
Hello. just put it like this <a href = '#Exemplo'>Vá para o paragrafo sobre JS</a> <p id ="Exemplo" name="Exemplo">JS Java Script</p> just put in the link the same thing you…
-
0
votes2
answers78
viewsA: Angular validation
<div ng-show="cadastroForm.Email.$error.required && cadastroForm.$dirty"> <p>preencha email!</p> </div> here you try to access the form field by ng-Model , but you…
-
0
votes1
answer67
viewsQ: Taking the contents of an image I made from my folder
Good i have a form that uploads images , these images are played in the directory: uploads/{idcampaign}/images/ In my PHP controller how do I access this image and grab your content? public function…
-
0
votes1
answer1194
viewsQ: How to access an image that went to my uploads folder via Fileupload
I have a form what makes uploads of images , when I upload , the path is saved in the database by the field path , I recover from the bench this image and play in a array image this.image = data;…
-
1
votes2
answers1157
viewsQ: How to make a foreach in Javascript?
My application returns an array array, in which campanhas[] is an array of campanha[] which is also an array. How can I make a foreach to pick up each campaign from within the array campanhas? Below…