Posts by edson alves • 2,147 points
86 posts
-
1
votes1
answer308
viewsA: Real-time search with jQuery
You can use this function by passing the searched value and where to search: function busca(value,targetSelector){ $(targetSelector).show(); $(targetSelector+':not(:contains("'+ value…
-
2
votes1
answer52
viewsA: Bring to PHP a div
It is almost there, but you need to access the text differently, using the method .text() of jquery $(function(){ $("#cadastrar").click(function(){ var conteudo = $("#wmd-preview-0").text();…
-
1
votes1
answer47
viewsA: Function running before receiving value in ngModel
Hello, I created a test in Stackblitz: https://stackblitz.com/edit/angular-sak5da In the template (click)="checkouAnuncio()" passes the ad by clicking and no longer uses ngModel: `<mat-checkbox…
-
-1
votes1
answer365
viewsQ: Why use a packer like Webpack?
I was talking to a friend about the flash and how all the code is compiled in a single file and "zuamos" about the "1tera" that the user has to download, of course, exaggerating... But then a…
-
1
votes2
answers246
viewsA: Create a dynamic object recursively
I’ve devised an alternative using object functions Array javascript that I particularly like enough: var obj = ['cor', 'caneta', 'hexadecimal'] .concat([null]) //Remover caso não queira que o ultimo…
-
1
votes4
answers81
viewsA: Query with Javascript
Perhaps this modification in the function will help you, it has become much smaller and, in my opinion much easier to understand: function retornaCandidatos(vaga, candidatos) { var x =…
javascriptanswered edson alves 2,147 -
2
votes1
answer85
viewsA: Elements running away from the mouse
This effect is made by particles in a <canvas>, in this case, the site you submitted uses this plugin: https://vincentgarreau.com/particles.js/ Just import the script <script…
-
5
votes1
answer69
viewsA: Prevent the Element Edge from growing when using Transform:Scale
This is because the transform: scale(2) scale the whole object, including its edge. So that it does not happen, It is more interesting to increase your height and width, but its content will not…
-
1
votes1
answer246
viewsA: How to update a page after Insert, update or delete with ajax without reflesh
Analyzing your question better I realized what has happened: As your link is added after the page startup it does not have the System Event that is added right at startup and necessary for the…
-
0
votes3
answers166
viewsA: Disable tab showing all results
By the link you added in your comment that defines what will be active is the active class (class="active") and what defines who belongs to the filter is the code data-filter="" where * (asterisk)…
-
1
votes1
answer561
viewsA: Tansformate a JSON response in a list and display the data on the screen with IONIC
It seems your problem is on this line: <ion-option *ngFor="let lista_postes of lista_postes; let i = index;" value={{lista_postes}}>{{ i + lista_postes}}</ion-option> *ngFor acts as a…
-
2
votes1
answer2229
viewsA: fatal error in mysql_select_db( )
The function mysql_select_db() has been removed since version 7.0.0, as indicated in the documentation itself: Warning This Extension was deprecated in PHP 5.5.0, and it was Removed in PHP 7.0.0.…
phpanswered edson alves 2,147 -
0
votes1
answer372
viewsA: Angular login visible in the request header
To hide this information you need to install an SSL certificate in your backend. Certificate works by encrypting data between server and client. The SSL protocol provides privacy and data integrity…
-
-2
votes1
answer49
viewsQ: What do you do when this happens?
I am working on a system in which I must register several data from a form in different tables using mysql. It works like this: The person makes a registration and in the same form requests a…
-
1
votes1
answer614
viewsA: How do I return the total sum of the repeated words within all div?
Simply select the whole text and count the word’s incidences in the string, take the example here. I created a div for hold on the others, so I took the selected text of the same and counted the…
-
45
votes2
answers4966
viewsQ: How does an artificial neural network work?
I know that this question is quite commonplace and it is easy to find the answer, however, I would like a functional answer, I have seen enough about, but nothing enters my puppy, I’d like something…
-
0
votes2
answers43
viewsA: Problems with vertical bootstrap menu
your problem is in css in that part: li{ display: inline-block; height: 10px; margin: 1px; border: 1px solid @carousel-indicators-border-color; border-radius: 10px; cursor: pointer; } You are…
bootstrapanswered edson alves 2,147 -
1
votes1
answer226
viewsA: Javascript show several div'’s in different time intervals
I don’t know if it’s the best way to do it, but it worked: $(document).ready(function() { var ul = $("ul").find("li"); var rand = function() { var randNumber = Math.floor((Math.random() * ul.length)…
-
1
votes1
answer398
viewsA: Consult BD after leaving the input focus and return results without refreshing?
You can do it this way: When leaving the field sends a request by ajax to a php page, it in turn searches the data as needed and returns to ajax, which adds the data on the screen as desired,…
-
7
votes1
answer507
viewsQ: Custom HTML attributes
I am developing a system aimed at managing public tenders and I need it to be compatible with as many devices as possible. In some situations it was necessary to use custom attributes, example:…
-
0
votes1
answer344
viewsA: How to activate counter with a particular scroll
You are using an animation, and it repeats itself. To stop the repetition you need to use the method stop() when the animation is complete. The first parameter says to clear the Queue of animation,…
-
1
votes1
answer1264
viewsA: How to insert page . php inside an HTML element with JS
It is not possible to include a php file inside the javascript, because it works on the user’s local machine, while php works on the server, which is interpreted and sent to the browser in html…
-
0
votes1
answer31
viewsA: Bring data like the facebook wall
Try using the Appendto('#element') or isertAfter("#element") function, both will keep the current content and add the new content at the end of the element passed as parameter. Would look like this:…
-
0
votes1
answer95
viewsA: Update amount of like/deslike with Jquery
Dynamically loaded elements do not accept adding a listener directly. Add the same to the parent element, or any other screen fixture as follows: $("body").on("click", "#Seuelemento" function(){…
jqueryanswered edson alves 2,147 -
1
votes2
answers87
viewsA: New schedule scheme - Database
Create a table with these times and list them in select, so if you have to add more times then it’s easy, just add them to the table. Save them in time format, if you don’t need the seconds just…
-
0
votes2
answers321
viewsA: Send and receive array via jQuery
These strange characters are [] for the html array. Try sending this data by post instead of get, but anyway get more information so we can help you.…
-
2
votes3
answers2846
viewsA: Block access to PHP pages with SESSION
the use of <script>window.location='index.php'</script> for redirecting is not fully recommended since simply disabling the javascript of the browser is possible to access without any…
-
3
votes2
answers1809
viewsA: How to reset all data from a form if the user goes back to page?
You’re on the right track, but when the browser comes back, it doesn’t reload the scripts, so you need a way to fire it. Using the event onpageshow it should be possible to trigger such an event. I…
-
2
votes2
answers549
viewsA: Display Multiple input images with Jquery
Based on a friend’s response Mathias, I made an example that fits your question better because you have a Multiple input and not just one file at a time as in the answer. Just add a loop that goes…
-
0
votes2
answers142
viewsA: Popular Dropdownlist from another
Using the method clone() you copy an element with all its properties, making it easy to manipulate it, in the example : https://jsfiddle.net/qk07Lg03/, i clone a dropdown and Seto the first option…
-
0
votes2
answers883
viewsA: Browse variable type php array
This is due to the inability of php to work directly with Json. You need to convert it to an associative array via the method json_decode. Just pass the string containing the json to the method and…
-
0
votes3
answers950
viewsA: How to limit the characters of a label?
I don’t know how to do this in jsp, but in direct javascript in html would be the following: in js: <label id="label">Estou num projeto e-commerce, e preciso exibir o nome de um…
-
0
votes1
answer241
viewsA: Reduce character size with PHP
Just don’t save files directly to the bank! Instead just save the file to a folder and its path/name in the database. Simple as that, never save.
-
0
votes3
answers9296
viewsA: How to make a countdown timer with Html5+css+javascript, which at the end of the selected time tap(or run) a *.mp3
Unfortunately, the answers citing the function setTimeout are not very valid since it will only perform the function if it is free. It will wait at least the stipulated time, but may take longer. In…
-
-1
votes1
answer253
viewsA: Save form "Registration of Presence" - Multiple Radios Inputs
You need to pass the data in array format, not sure how to explain but you can create an input with the same name and save the data in php later through a foreach In html: <input type="radio"…
phpanswered edson alves 2,147 -
0
votes1
answer264
viewsA: How to capture Javascript value with PHP
Like the friend Leo Caracciolo said, Javascript in this case, runs in the user’s browser, this means that it is only possible to send information to php via HTTP requests. It would work like this:…