Posts by Higor Cardoso • 120 points
8 posts
-
2
votes0
answers27
viewsQ: How to receive SESSION value in real time with AJAX?
Well, what I have achieved so far is to make the user click on any of the pagination buttons (1, 2, 3...) PHP save a SESSION with the corresponding page number. Follows the code: <!-- BOTÃO COM O…
-
0
votes2
answers78
viewsQ: Limit text to be selected from input with Javascript
I would like to know how to limit the value to be selected with Javascript. For example, I want to take only the country indicator of the number typed, but it is different the amount of characters…
javascriptasked Higor Cardoso 120 -
2
votes2
answers243
viewsQ: How to add variable to [JS] array
I have the following code: var newLat = markerElem.getAttribute('lat'); var newLng = markerElem.getAttribute('lng'); var locations = [ {lat: newLat, lng: newLng} ] I want to take the values of the…
-
1
votes2
answers62
viewsQ: Alignment problem in CSS
I have the following navbar: But as you can see, the div#results is misaligned with the input#search. Code: <div class="container-fluid primary-bgcolor p-3"> <div class="row…
-
0
votes1
answer424
viewsQ: How to increment number to a variable in JS?
I want to know how to increment a number to a JS variable every time it goes through the while loop. For example: var num2 = 1; while(num2 < num){ new google.maps.Marker({ position:…
javascriptasked Higor Cardoso 120 -
0
votes1
answer707
viewsA: How to Recover Variable Value in a Bootstrap Modal Window
You can do like me, it’s kind of a gambit, but it served me. Just put that code inside a function and call it by an onClick(). $('#idDaModal').modal(); $("#idDoInput").val(variavalAqui); Then you…
-
-1
votes1
answer97
viewsA: Error inserting image into folder
Dude, I got a code to insert images into the comic right now. If you want to take a look, I don’t have time right now so I can’t take a look at your code, but anyway, my purpose is to help.…
-
3
votes4
answers382
viewsQ: How to call function in JS only once
Well, I have the following problem: I’m building a chat page, I’m already getting good messages, only when entering this chat page I wanted to automatically descend to the bottom of the page, in…