Posts by Thiago Santos • 1,957 points
72 posts
-
1
votes1
answer98
viewsA: Dficulty to handle a list with Javascript
First, check the ; at the end of the lines. Following, add the jQuery just above your script and check if the error persists, like this: <script…
javascriptanswered Thiago Santos 1,957 -
12
votes1
answer17973
viewsA: What is the difference TEXT and LONGTEXT?
In the Documentation you will find a lot about each type, summarizing in Sizes: Tipo | Tamanho Máximo -----------+-------------------------------------- TINYTEXT | 255 (2^ 8−1) bytes TEXT | 65,535…
mysqlanswered Thiago Santos 1,957 -
0
votes3
answers464
viewsA: Should the checkbox label be on the right or left of the controller?
This question focuses a lot on opinion, but, when it comes to UX, the most accepted concept says that the Label should be in the right of control. With all kinds of reasons: Consistent alignment;…
-
0
votes4
answers1845
viewsA: How to identify Focus in a div?
I made some simple changes to your Fiddle and it worked perfectly: $('.form_campos').on('focus blur', function(e) { $(this).parents('.form-group').toggleClass('focused', (e.type === 'focus' ||…
-
0
votes3
answers133
viewsA: Update in database not working
In your code, besides not having the code for the connection, mysql_connect there is the mysql_query who would be responsible for taking your variable $update_data and pass it as SQL command to your…
-
0
votes2
answers349
viewsA: Checkbox Switch - One of them must be marked as true or 1
I tweaked your fiddle a little bit, treating the items a little differently, but I believe it achieves the result you seek: https://jsfiddle.net/vh8d9un8/15/…
-
1
votes2
answers294
viewsA: How to configure jquery.maskedinput to accept valid dates only?
I believe that’s it: $(document).ready(function(){ $('#calendar').mask('99/99/9999'); }); function validateData(){ var dob = document.getElementById("calendar").value; var data = dob.split("/"); if…
jqueryanswered Thiago Santos 1,957 -
0
votes2
answers494
viewsA: move_uploaded_file does not work properly
Try the following amendment: move_uploaded_file($_FILES['txtFoto']['tmp_name'], $caminho_imagem.$_FILES['txtFoto']['name']);
-
2
votes1
answer294
viewsA: $_SESSION returning null
I think you’ll solve it very simply: <?php session_start(); Put session_start(); as a first thing, first and only once, in both your files.
phpanswered Thiago Santos 1,957 -
0
votes1
answer86
viewsQ: Extract data from HTTP Auth with PHP
I want to access a URL of my site as follows: http://username:[email protected] How do I, with PHP, receive data from Username and Password without using Curl? There is the possibility?…
-
4
votes1
answer207
viewsA: What is the error in this while PHP?
Turns out you’re calling the function FETCH in the object $video but at the end of the code you’re on writing the variable that had a OBJECT with a STRING, there the error. Change the ending to:…
-
1
votes1
answer1120
viewsA: How to transform a div and input text?
Uses the .replaceWith jQuery. An example: function converter() { var elementos = document.getElementsByClassName('convs'); var val = ""; var len = elementos.length; for(var i = 0; i < len; i++) {…
-
3
votes2
answers616
viewsA: Delete placeholder value in input by clicking Angularjs
As follows: <input type="text" ng-model="inputText" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Nome'" placeholder="Nome" />…
angularjsanswered Thiago Santos 1,957 -
1
votes1
answer56
viewsA: Notifications in the browser
I believe you are looking for desktop notification, correct? Here is well clarified and with example, but in English: https://stackoverflow.com/questions/2271156/chrome-desktop-notification-example…
-
0
votes1
answer68
viewsA: Problems with updating the ajax page
The function Success is not being called. The truth is that many reasons can cause this, you have, for example, put a console.log(dados) so that we can see what is being passed as JSON? Another tip…
javascriptanswered Thiago Santos 1,957 -
1
votes1
answer371
viewsA: In Javascript - How to make the input accept comma and dot in this my scribe. Returning the values of the installments
Do the following that should work: var temp = document.getElementById(campo).value; var valor = temp.replace(",", ".");
javascriptanswered Thiago Santos 1,957 -
0
votes2
answers189
viewsA: How can I not let the session expire in Joomla when it closes? (or last longer)
The way to do this is by using COOKIE instead of SESSION. Take a look at the Manual for PHP who is always a savior.…
-
1
votes1
answer33
viewsA: Set amount of returns per function that filters JSON
Change your function as follows: var SearchTag = function (jogo) { var arr = arrary(); for (var i = 0; wallpapers.length > i; i ++) { if (wallpapers[i].jogo === jogo) { arr.push(wallpapers[i]); }…
-
0
votes1
answer134
viewsA: Banner in IFRAME does not open new IOS and ANDROID Window
If you simply want to click on Iframe to take you to a new tab use the opposite, the <a> involving the <iframe>. Thus: <a…
-
4
votes4
answers1951
viewsA: Upload with Ajax and formData does not send data
I’ve been reading about similar problems and I believe your Date variable is the problem, since it certainly doesn’t have a valid JSON. Check out that Fiddle which is applicable to your case. what…
-
0
votes2
answers107
viewsA: Problems sending mail with mail()
I believe it’s the fact that you’re skipping a parameter: bool mail ( string $to , string $Subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) Check out the…
-
0
votes2
answers567
viewsA: Undefined index: action when sending ajax data to PHP
Do two tests, the first: data:{ acao: "logando", // nota que eu mudei para aspas duplas usuario: $("#usuario").val(), senha: $("#senha").val() } And the second: data:{ "acao": "logando", // quando…