Posts by I_like_trains • 1,430 points
113 posts
-
1
votes3
answers381
viewsA: Uncheck all checkboxes by going back to the previous page
When the page loads, use the code below on the page For jQuery version < 1.6 $(document).ready(function(){ $("checkbox").attr('checked', false); }); For jQuery version > 1.6…
-
2
votes2
answers2304
viewsQ: onclick() in elements generated through ajax?
I’m trying to use an event onclick in <li> generated through a form ajax(). I have the following code $(".option").click(function(){ alert(); var text = $(this).attr("href");…
-
1
votes2
answers97
viewsQ: Problems with setInterval()
I have the following code var inter = setInterval(function(){ plusDivs(1); }, 2500); $(".mySlides").mouseenter(function(){ clearInterval(inter); }); $(".mySlides").mouseleave(function(){ var inter =…
jqueryasked I_like_trains 1,430 -
2
votes4
answers235
viewsQ: Find out which div with the same class is larger
I would like to have a code that goes through all the divs with a certain class and then see which was the biggest height and to define their size all the same. There is a way to do this? I know how…
-
0
votes1
answer46
viewsQ: Insert upload values into an array with another name?
My problem is this, I have a form where the user uploads, with that all right, but I would like it to enter with another name but if so, it inserts blank in the database.…
phpasked I_like_trains 1,430 -
1
votes1
answer32
viewsQ: Order file display according to extension
I have a code where I want to show the files that are inserted. The names are contained in a array I will search the database. They are presented the way I want but is there any way to sort? Like…
phpasked I_like_trains 1,430 -
0
votes1
answer56
viewsQ: Explode not working for sure?
I have a variable that picks up a string to the database. I use explode to split the string and turn into a array, to be presented later. However, when I use a for, it becomes infinite. Here is my…
phpasked I_like_trains 1,430 -
0
votes1
answer42
viewsQ: UPDATE not working with ajax?
The problem is this, I have an editing form whose data is sent by ajax. Here’s the code: $("#edit_rua").click(function(){ var id = $(this).attr("data-id"); var nome = $("#nome_rua2").val(); var cod…
-
3
votes1
answer47
viewsQ: Problem with . find()
I’m trying to find a li with a certain class (selected), however, I haven’t been able to find the id hers. Here’s the code var slide_act = $(".bull").find("selected").attr("id");…
jqueryasked I_like_trains 1,430 -
1
votes1
answer498
viewsA: Redirect pages using if, Else if and Else attributes what is wrong?
The mysqli_affected_rows() return the NUMBER of affected Rows, however, you are comparing with a string. I also noticed that you’re using = in their if. What’s wrong is that = is used in comparisons…
-
2
votes1
answer210
viewsQ: Keyup() not working?
I have a function that is supposed to show how many characters are missing to get to the maximum, however it only counts after the first key is "clickada". Here is my code…
jqueryasked I_like_trains 1,430 -
1
votes1
answer79
viewsQ: Round up float value?
I have a code that calculates the number of pages based on the number of data that is called from the database. But with the code it divides the number of data by 5, ie the maximum number allowed,…
phpasked I_like_trains 1,430 -
1
votes2
answers147
viewsA: Accented words are not sent to the database - PHP
Certain symbols are not accepted as they can be used to enter the database through MYSQL Injection. One way to do it is to use htmlentities and htmlspecialchars which will replace these symbols with…
-
1
votes0
answers52
viewsQ: Sending emails inside a local server?
I have a website on my localhost and would like to be able to send emails. I tried with the function mail() but I couldn’t. So I found a way using PHPMailer. I have the following code <?php…
-
2
votes1
answer27
viewsA: how to upload a file and download it via php?
If you want to fetch the name, you have the wrong code. $new_name = date("Y.m.d-H.i.s") . $ext; On this line shown above, you give the file name with the date and time of the system. To put the…
-
0
votes1
answer44
viewsQ: Select database data within another while?
I have a calendar made by me, not very good, but made by me, in which has a while creating squares, ie the days, of the current month. So far so good, but now I would like, if a certain day had an…
-
2
votes2
answers60
viewsA: Div doesn’t stick to the top?
I figured out how to solve. Instead of loading the position of <div> menu, load it out of the function of the scroll, I mean, the code would look like this var ell = $('.menu').offset().top;…
jqueryanswered I_like_trains 1,430 -
4
votes2
answers60
viewsQ: Div doesn’t stick to the top?
I have a div that I would like you to hold to the top when the div has to touch the top. I tried to do this, resulted but the div continuous blinking. What’s wrong? SCRIPT $(window).on('scroll',…
jqueryasked I_like_trains 1,430 -
1
votes1
answer35
viewsA: Metatag aleatoria
If you want to search the site url, recommend using $_SERVER['PHP_SELF'], will fetch the name of the site and will present it. You can call him that, <meta property="og:title"…
-
0
votes1
answer36
viewsA: Connection problems
With mysqli you don’t need to use mysqli_select_db, just use the following code $conect = mysqli_connect('servidor','nome_utilizador','palavra_pass', 'nome_da_db') or die ("erro de conecção"); $link…
-
-1
votes1
answer575
viewsA: How to overlay a body image on top of a div?
If one of his divs has an attribute position: absolute or position: relative among others, you need to use z-index to increase the "importance" of div. See an example of W3schools.…
-
5
votes3
answers158
viewsQ: Css3 stop after finishing rotation?
I am wearing transform: rotate(90deg) to rotate a div when I put the mouse on top. Once I remove it, it returns to its initial position. There is a way to stop it? I have my code like this .openn{…
-
0
votes2
answers146
viewsQ: "mouseout" of a div father is fired when the cursor is on a div daughter
I’m using the function .mouseover() and .mouseout(). Both work but I have a problem. The code below is what I’m using for this purpose. The effect always does the animation of <div>: both…
-
-1
votes2
answers1338
viewsA: How do I change the color of all links and underline?
If you want to change the color of ALL the links of the page, recommend using the following a{ color: red !important; } a:hover{ text-decoration: none !important; } !important is used to increase…
cssanswered I_like_trains 1,430 -
0
votes2
answers1149
viewsA: How to update a select in html with javascript
For this you will need to use Jquery. success: function (dados) { $('select[name=campofilial]').empty(); $('select[name=campofilial]').html(dados); } In the code line above, you must enter the new…
-
0
votes2
answers293
viewsA: Height of total div proportional to content
Since the images have position: absolute, I would suggest that you height fixed to images, for example 500px and then gave the div that height.…
css3answered I_like_trains 1,430 -
0
votes1
answer60
viewsA: Hide a div when another one shows up on the screen?
I found a way to do what I wanted $(window).on('scroll', function() { var ell = $('#footer').offset().top; var ill = $(document).scrollTop(); var screen = $(window).height(); var distance = ell -…
-
1
votes1
answer60
viewsQ: Hide a div when another one shows up on the screen?
I’d like to hide one div when another appeared on the screen. The div I intend to hide has position: fixed, In other words, the scroll accompanies the page, however, the footer has a similar part to…
-
1
votes1
answer50
viewsQ: Divs fade into a loop?
I have the following code I’d like you to do fadeIn and fadeOut after 3 seconds. I thought to use setInterval to loop and then use a setTimeout to give the time that each div was visible. Is there…
-
-2
votes2
answers223
viewsQ: Hide final time of an event in fullcalendar?
In the FullCalendar the events will show the start time and the end time. There will be a way to show only the start time?
fullcalendarasked I_like_trains 1,430 -
1
votes1
answer622
viewsQ: Increase space between words to occupy the width of the div?
I have a text that I would like to "stretch", that is, leave spacing between letters until the end of the div, is there any way to do it? A div must have height static. I can use both Jquery as CSS.…
-
0
votes2
answers190
viewsA: Problems with accentuation
The problem is that the database does not allow accentuation but allows special characters to replace them. Recommend this site. In the top box type the database text, then convert and paste into…
-
0
votes2
answers208
viewsA: Slidedown from bottom to top
Use the .slideUp(), does the opposite of slideDown().
-
-1
votes2
answers42
viewsQ: Is there any way you can use volume buttons to browse the site?
I have my website that on the computer, when pressing Enter, it moves around the site, but by mobile, as there is no Enter key, I wish the user could scroll with the sound button.
javascriptasked I_like_trains 1,430 -
1
votes1
answer79
viewsA: Problems with overlapping rotated elements
Like what I put down, just add one position:relative in the 2 Ivs and z-index in both, putting the blue with the higher value to be on top #divgirada { position:relative; z-index:998; width: 500px;…
-
0
votes1
answer493
viewsQ: How to change the font-family of a single div with . tff file?
I’d like to change the font-family of a div in particular for a font that I can’t find the source, but I found a file font. How can I add this font? Does there exist a code for it? In this link…
-
1
votes2
answers435
viewsQ: How to appear required in an input without form?
I wanted to make a form but without using <form> because I intend to send the inputsfor ajax. The problem is that if you take the form, it will not be required because as you have said in…
javascriptasked I_like_trains 1,430 -
0
votes1
answer69
viewsA: Why can’t I create the <div> in the right place?
I think this div has position: Absolute or one of those middle Ivs has, causing it to stand over any Ivs below, as if it did not exist, remove it and it will be right.
-
0
votes3
answers2682
viewsA: How to do horizontal scroll with screen size Divs
In the example you have, the div with the class wrapper_child is 400% width, that is, 4 times larger than the screen, that is why it puts scroll. If you intend to have the same effect, you have to…
-
2
votes2
answers2878
viewsQ: Open a modal with a button in another modal?
I have a modal of bootstrap where there is a button that closes the modal but I wanted as soon as I closed the modal, to open another. I tried to put one id button to open the modal again but it is…
-
1
votes3
answers2423
viewsA: How to break line between CSS tags
An example that I describe below label{ display: block; } <label>1</label> <label>1</label> <label>1</label> <label>1</label> In this code, it changes…
-
0
votes1
answer63
viewsA: Run ID in sequence without auto increment
If I understand correctly, you want to PHP, so you can do it this way. First make a SELECT of all users before inserting, use a code similar to this $este=mysqli_query($variavel_db, "SELECT * FROM…
-
0
votes6
answers4895
viewsA: Success message after completing the PHP form
You can set a notification balloon with this message! At the end of php code, refresh the page and send the url &f=1 In the text balloon, add if(isset($_GET['f'])) and target the intended…
-
0
votes1
answer40
viewsA: Don’t you get full id?
I found out what was wrong. The code I had written picked up the event.id but where I got the code, there’s a mistake .fullCalendar( 'removeEvents' [, idOrFilter ] ). The "," is Wrong in there, it…
-
1
votes1
answer40
viewsQ: Don’t you get full id?
I have a well structured code of fullcalendar where I can do anything but one thing. When I press the event, i wanted it to delete and remove from calendar. It deletes from database but does not…
-
0
votes1
answer36
viewsA: I cannot see the elements of a table row
As @Isac said, problem is that you have an error in the code, you lack the = in <?$licitacao['idlicita']?>. Because of this, it is sending the variable empty and cannot fetch.…
-
1
votes2
answers1262
viewsA: How can I center a banner?
As @Rafaelaugusto said above, just add a <div> before and add margin: 0 auto; and text-align:center;, that is to say <div style="margin:0 auto;text-align:center;"> <ins…
-
1
votes1
answer187
viewsA: Is there any way to position the required message?
All it will take is one opacity: 0; in the inputs and change the position of the Abels to go to their place, they continued there but did not occupy space, and even with the label you will be able…
-
1
votes1
answer923
viewsA: PHP Store Image in variable
Create a input type="hidden" keep the image path in value, so: <input type="hidden" name="img" value="caminho_da_imagem" /> And if you want to use the site in the future, you can store it in a…
-
0
votes2
answers41
viewsQ: Check if line in database exists, if not, restart query again
I have a database and would like to always fetch the value before, and I have used for example: I will fetch a news, and on this page there is a link to the previous news, and I will search for the…