Posts by Diego Souza • 16,524 points
642 posts
-
0
votes2
answers2413
viewsA: Ajax does not work - send PHP data without refresh
Exchange this: <input type="submit" name="text" /> That’s why <input type="button" id="envia" name="text" /> And in the ajax exchange this: $("#textoResp").submit(function() That’s why:…
-
3
votes2
answers333
viewsA: Equivalent Hide and CSS show
I believe the best way is to do it with Javascript or using the library jQuery. Follow an example: $(document).ready(function() { $('.show-hide').on('click', function() { var id = this.id;…
-
3
votes1
answer515
viewsQ: Click Link Inside Clickable DIV
In the code below comes demonstrating a div clickable in case it is mobile. When you go full has an icon that appears inside the div when passing the mouse over, hover. HTML <div class="item"…
-
2
votes1
answer22
viewsA: Is it possible to perform a "prepend" on an attribute?
You don’t have to use prepend. var imagem = $('img').attr('src'); var meuCaminho = "C:/" $('img').attr('src', meuCaminho + imagem);
-
2
votes1
answer568
viewsA: How to make a Modal Portfolio appear from left to right?
Follow the same property CSS that’s in that Fiddle. Put that down in your code CSS. .modal.fade .modal-content { transform: translate3d(-30%, 0, 0); } .modal.in .modal-content { transform:…
-
1
votes1
answer245
viewsA: Send data from one modal to another modal
<button type="submit" data-toggle="modal" data-target="#alterar" class="modalAlerta">Salvar</button> Put a class on button, in which case I called modalAlerta. Create a function like…
-
1
votes1
answer548
viewsQ: Access Pseudo Elements ::after and ::before and Other
It is possible to access an element ::after raised in the CSS with jQuery ? For example: ul.pager{ position: relative; width: 100%; text-align: right; max-width: 960px; z-index: 30; margin: auto;…
-
2
votes1
answer199
viewsA: How to put 3 slides together in Bxslider?
I just made a basic example. These elements starting with .slider must be inside the DIV that mounts the block of his slider. I never used that bxslider, but it must be the same as the others.…
-
3
votes1
answer1016
viewsA: Error " Duplicate entry '1' for key 'PRIMARY' "
If the primary key column is auto incremented, you do not need to put it in the INSERT. Reset your table and run the tests again. Comments on a INSERT and rotate the page. Then comment on the other…
-
5
votes1
answer116
viewsQ: In a repetitive structure are there differences between working with Object or Array?
When I do a query in the database by PHP and want to return this data with while, usually use the fetch_object(), which returns the data in type object. For example: $query = "SELECT * FROM TABELA";…
-
1
votes1
answer89
viewsA: Include variable in json output
Just do the concatenation of the variables. $url = "http://www.site.com.br/"; while($row = $rs->fetch_assoc()) { $arr[] = $url.'/'.$row['image']; } In the variable $row, amid colchetes you need…
-
5
votes2
answers186
viewsA: Border-bottom with linear gradient
Thus ? .bot-left { position: relative; } .bot-left:after { content: ""; position: absolute; bottom: -3px; left: -3px; } .bot-left:after { right: -3px; height: 3px; background-image:…
cssanswered Diego Souza 16,524 -
5
votes4
answers268
viewsA: BETWEEN demands arguments in ascending order? Why?
Because it is at all times of minor (10) to the greater (15). BETWEEN begin_expression AND end_expression https://technet.microsoft.com/pt-br/library/ms174081(v=sql.110). aspx Example SELECT…
-
1
votes2
answers1524
viewsA: HTACCESS URL rewriting by ignoring existing files and folders
Bro, this OS is top. I think there’s some power that hangs around here... there are questions I ask here and soon after, a matter of minutes I solve my problem. How do you get ? To leave the URL…
-
0
votes2
answers1524
viewsQ: HTACCESS URL rewriting by ignoring existing files and folders
When I go to pass a site in the server I put a file .htaccess with this code below: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> This code…
-
0
votes1
answer383
viewsA: Datepicker With Highlight Dates
I got it. Using this example: http://jsfiddle.net/reigel/o0o7u4k3/ I searched the bank, recorded the dates on array. And in function highlightDays the array is traversed by comparing calendar dates…
-
0
votes1
answer383
viewsQ: Datepicker With Highlight Dates
I am working with a calendar of events and I would like the calendar to show me in different color the days that have events. Use the datepicker.…
-
1
votes1
answer500
viewsA: Flash Session does not work, Laravel 5.1
I like to do so: Routes.php Route::controller('en/user/login', 'UsersController'); Userscontroller.php # Alterei aqui para Index, que é a primeira página a sera acessada quando acessa a URL padrão.…
-
1
votes3
answers960
viewsA: Is Mysql embedded in Easyphp?
A database management program does not come in the installation package of Easyphp or another server program, type Wamp, Xampp and Apache. You can download the part of a program that manages a…
-
0
votes3
answers1267
viewsA: Is there an alternative method to window.print()?
An alternative: JS function printFrameContent(id) { var cFrame = document.getElementById(id).contentWindow; cFrame.focus(); cFrame.print(); return false; } HTML <iframe id="conteudo"…
-
1
votes1
answer34
viewsA: Difficulty with PDO
Creates a array. $arrData = []; $x = 0; foreach ($saidas as $saida) { $arrData[$x]['horario'] = $saida['horario']; $arrData[$x]['retorno'] = $saida['retorno']; $x++; } echo "<pre>";…
-
0
votes1
answer7862
viewsA: Send form without updating page
Creates a button to give the submit. HTML <form action="" method="get" accept-charset="utf-8"> <input type="text"> <input type="text"> <input type="text"> <input…
-
1
votes1
answer51
viewsA: Scroll is always at the base of a div
You have to define a height fixed for your div. $("#resultados").scrollTop($("#resultados")[0].scrollHeight); #resultados { height: 300px; width: 400px; } <script…
-
1
votes1
answer506
viewsA: Fixed Report Server Header
1 - In the program, further down the screen you are Design or Create is to have a window Group of Columns or Columns Groups. In the corner has an arrow, click on it and go on Advanced Mode. 2 -…
reporting-servicesanswered Diego Souza 16,524 -
65
votes4
answers6695
viewsA: Is it possible to make a tooltip with pure CSS?
I will contribute... body { margin: 30px; } a.tooltip { text-decoration: none; color: #000; font-family: "Roboto"; font-size: 16px; transition: all 0.4s ease; -webkit-transition: all .4s ease;…
-
0
votes1
answer223
viewsA: Tooltip with mouseover inside a column of a grid js
Along those lines: { width: 100, name: 'OBSERVACAO', index: 'OBSERVACAO', label: 'Observação' }], Put at the end: class: 'alwaysShow' Upshot: { width: 100, name: 'OBSERVACAO', index: 'OBSERVACAO',…
-
-1
votes3
answers120
viewsA: Problem With PDO
You can use while in that case while($resultado = $sql->fetchObject()) { echo $resultado->nome; echo $resultado->quantidade; }
-
2
votes1
answer686
viewsA: Laravel 5 authentication shows no errors
For this I usually use Session. For example, gave login error, do this in your else. else{ Session::flash('alert', 'Deu pau no login, tente de novo'); return Redirect::to('admin/auth/login'); } From…
laravelanswered Diego Souza 16,524 -
1
votes2
answers231
viewsA: Left property does not work in position Fixed
In the right corner, not leaning. width:50px; height:100px; background:#fff; position:absolute; bottom:0; right:10px;
cssanswered Diego Souza 16,524 -
4
votes1
answer900
viewsA: How to transform (cut) only one side of the element with css?
.efeito{ color: white; height: 0px; line-height: 0; border-top: 40px solid transparent; border-right: 40px solid…
-
1
votes4
answers1837
viewsA: How to use Json in an html
You have to use the for to access the array(). for(var i=0;i<arr1.length;i++){ out += arr1[i].Name + ' - ' + arr1[i].City + ' - ' + arr1[i].Country; }…
-
3
votes1
answer66
viewsA: Anchor with Javascript
In that part: scrollTop: target.offset().top Place: scrollTop: target.offset().top - 110
-
3
votes2
answers162
viewsQ: Extract Posts from Linkedin Feed
I’m searching the Linkedin documentation for a way to extract the Posts from a particular company. You can do this ? I’m not finding methods. The closest I got was this link:…
-
0
votes2
answers76
viewsA: Sass css/js minification
Paid software I know the Prepross. Can you use the Gulp.js which is the internal processing of Codekit. GULP https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md Live Reload…
-
2
votes1
answer632
viewsA: How to leave the image in front of the text?
Place this element with a property: z-index: 9999;
cssanswered Diego Souza 16,524 -
1
votes2
answers384
viewsA: Validation of Image Size
Corrected. I didn’t know, but I found on the internet that should import the following file: jqueryvalidation.org/files/dist/additional-methods.min.js
-
1
votes2
answers384
viewsQ: Validation of Image Size
I am trying to use jQuery Validate plugin to validate a field file. I just want to check the image size. If it is larger than 3mb it is not to submit the form. Look at my code below:…
-
1
votes1
answer53
viewsA: Image does not catch characteristic of the div in which it is inserted
Has. Set the image with: position: fixed; width: 100%; left: 0; right: 0; margin: auto; margin-top: 100px; /* Aqui é o Tamanho do Header em Px */ The margin-top must be the height of <header>.…
-
5
votes3
answers341
viewsA: CSS condition for when you don’t have SRC in the image
img[src=""], img:not([src]) { display: none; } <img src=""> <img…
-
1
votes3
answers3234
viewsA: Browse data from 1 day to 3 days ago mysql
SELECT SUM(PRODVALOR) AS TOTAL, DATA WHERE DATA BETWEEN DATE_ADD(DATA, INTERVAL - 3 DAY) AND NOW() ORDER BY DATA ASC LIMIT 1 The NOW() is the present day. In this query, the first record is selected…
-
3
votes0
answers137
viewsQ: Error Connecting in Mysql PDO
My MAC disconnected out of nowhere and when connected again stopped working Mysql. Mysql is installed by MAMP. Is giving this error when accessing only one website: SQLSTATE[HY000] [2002] Can’t…
mysqlasked Diego Souza 16,524 -
3
votes2
answers379
viewsA: Fixed form goes over menu
The parent element of form must be: position: fixed; top: 0; width: 100%; z-index: 99999; /* Pra Garantir */
-
0
votes4
answers668
viewsA: Retrieve dynamic input and insert into the bank with Procedure
Your insert Stored Procedure is not wrong ? He’s as good as one update. INSERT that’s how it is: INSERT INTO TABELA (CAMPO_1, CAMPO_2) VALUES (VALOR_1, VALOR_2) So in your SP it would be like this:…
-
1
votes1
answer122
viewsQ: Condition To Run __Construct Function
I created a function __construct in the Controller.php of Laravel 5. And this function is obviously running even on the Login screen, on Auth. Is there any way I can put as a condition, run the…
-
1
votes1
answer62
viewsA: Form does not send messages
Puts a ID in his form: <form class="contact-form" name="contact-form" method="post" id="form-contact"> Never again make a list of Javascript fields to send a form. There are more dynamic ways,…
-
2
votes1
answer1182
viewsQ: PHP Mailer Does Not Work Localhost
I don’t understand why the PHP Mailer does not work on my Localhost. It’s like this: # Envia Emails Para Departamento Escolhido e para o Admin $mail = new PHPMailer; $mail->isSMTP();…
phpasked Diego Souza 16,524 -
0
votes1
answer711
viewsA: Return Json and Put to Multidimensional Array
Finally, the problem that was happening to me had no relation to the assembly of the array multidimensional for graphic assembly. The problem was in the variable caixa_entrada, that was the callback…
-
0
votes1
answer711
viewsQ: Return Json and Put to Multidimensional Array
I’m making a request to plot a chart using Flot Js. I’m returning a Json like this: [{ "status": "Finalizado", "id_status": "4", "total_chamado": "2", "mes": "4", "ano": "2015" }, { "status":…
-
2
votes1
answer1123
viewsQ: Data Management System Log System
I am developing a data management system in PHP Laravel 5. In this system I want to put a Logs. 1 - Laravel has some library that facilitates this system ? 2 - If Laravel doesn’t have the best way…
-
2
votes2
answers19595
viewsA: How to use a variable contained in another PHP page?
By way of session. Pagex.php <?php session_start(); # Deve ser a primeira linha do arquivo $frase = "Minha Frase"; $_SESSION['frase'] = $frase; ?> Pagey.php <?php session_start(); # Deve…