Posts by Dirty Old Man • 1,064 points
38 posts
-
0
votes3
answers664
viewsA: Mobile dynamic iframe
<script> function Map() { var retorno; var largura; var altura; largura = ($(document).width()) - 20; altura = ($(document).height()) -200; …
-
1
votes2
answers706
viewsA: PACE JS - Page Load Only
You can try adding the ignoreURLs in options: Pace.options = { ajax: { ignoreURLs: ['some-substring', /some-regexp/] } }
-
0
votes1
answer1158
viewsQ: Passing $_POST through the URL
I have a form that is mounted dynamically according to the preferences of each user and is submitted via post to the page that does the process. In the process page I need, among other things, to…
-
5
votes1
answer6096
viewsA: Decrease fixed menu as you scroll the page
Just create a new css class with the changes you want, and assign to the menu when you listen to the scroll. To identify the scroll: <script type="text/javascript">…
-
1
votes2
answers932
viewsA: How to focus on a specific browser tab from a php check
Not it is possible to make tab change due to browser security precautions. But in any case if it helps you, there is how to detect whether or not the system page is active at the moment, through the…
phpanswered Dirty Old Man 1,064 -
6
votes1
answer2922
viewsA: How to make a page load time progress bar?
You can use the Pace.js, which is very simple and has several options with cool visuals. To put in practice just download and add the call: <head> <script…
-
2
votes2
answers1030
viewsA: What are the meta tags that should not be missing in the header of a good site?
The most basic meta tags that cannot be removed are: <meta name="description" content="Descrição sobre o conteúdoda página..." /> <meta name="keywords" content="palavras, chaves, sobre,…
htmlanswered Dirty Old Man 1,064 -
0
votes1
answer1269
viewsA: Open external link in Windows Media Player
You need to use the file:/// (yes, it’s three bars), if you want to connect to local files. <a href="file:///C:\Programas\meu_arquivo.mw"> Link 1 </a> <a…
-
1
votes1
answer252
viewsA: Nice Scroll does not work
I use the Smoothscroll no problem. Just download and add the call below in the footer file of your pages: <script src="SEU_DIRETORIO/SmoothScroll.js"></script>…
-
2
votes1
answer557
viewsA: How to change mouse cursor
I tested with an image png and worked right in Chrome and Firefox, in IE no. You can also try to convert this png for cur for Convert.…
-
1
votes2
answers1233
viewsA: SELECT HTML field displaying Previous, current and next month only
See if that code helps you :) //FUNCAO PARA ESCREVER MES POR EXTENSO function mesExtenso($mes){ if($mes == '01'){echo 'JANEIRO';} if($mes == '02'){echo 'FEVEREIRO';} if($mes == '03'){echo 'MARCO';}…
-
1
votes3
answers128
viewsA: List with display inline does not work properly
To stand side by side you can set: ul li { list-style-type:none; float:left; } Still it would not have a result as you wish, as they would not be centralized, but then just set a width for your ul…
-
23
votes3
answers12225
viewsA: What is deadlock in SQL Server?
A deadlock happens when two or more tasks block each other permanently, with each one blocking a feature, which the other task is trying to block. For example: Transaction A acquires a shared block…
sql-serveranswered Dirty Old Man 1,064 -
1
votes1
answer469
viewsA: Which version of Visual Studio supports Classic Asp?
First, by default, when you open a site in Visual Studio, you’re opening through the file system, couldn’t see IIS. Therefore, Visual Studio uses an internal web server called Cassini, instead of…
-
2
votes2
answers1223
viewsA: Transition effects on a slider
Your code is already using the effects of fadeIn and fadeOut of jQuery to make the transitions. Just change the effects for the ones you want to happen, take a look at the documentation list jQuery…
-
2
votes2
answers1667
viewsA: Leave photo rounded equal Whatsapp
You can make a simple circle with white border and transparent content: // res/drawable/circle.xml <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="0dp"…
-
2
votes2
answers459
viewsA: What does "Auto Packing the Repository for Optimum performance" mean?
This happens to speed up the process when Git identifies that the drive involves many files. To make it easier, you can think about packing like Git doing a compression .zip of the files to move…
-
2
votes1
answer540
viewsA: Recover most viewed videos from youtube channel
The method search.list allows you to search for videos, channels or playlists that match specified criteria. You can search based on video properties, keywords or topics (or a combination of these),…
-
8
votes4
answers827
viewsQ: Another option to use @ in PHP?
I don’t feel very comfortable having to use the @ before some variables and sessions when making conditions, to avoid error of Unexpected Index which happens when the variable or session was not…
-
5
votes2
answers1325
viewsQ: Browse query records with PHP PDO
I’ve always worked with ASP connections using ADODB and navigating the regressions that the query returned to me was not a problem because there were: <% rs.movenext //anda para proxima linha do…
-
3
votes2
answers477
viewsQ: How to use PDO bindParam in query IN()?
I have a query similar to this: $modelos = "1,2,3,4"; $sql = "Select codigo_modelo, nome From modelos Where codigo_modelo in (:codigo_modelo)"…
-
3
votes2
answers7455
viewsQ: Change banner according to screen size?
Aiming for the best performance in the load time of my site I wanted to make the input page banner smarter. For screens of up to 1600px would have to be loaded a banner simpler, of lower quality and…
-
3
votes0
answers378
viewsQ: How to see the final query that was executed? PHP PDO
I make my appointments as follows: $sql = "Select * From minha_tabela Where meu_campo = :parametro"; $sql = $db->prepare($sql); $sql->bindParam(":parametro", $parametro, PDO::PARAM_STR);…
-
0
votes3
answers450
viewsA: Video Html5/css3
Friend, the sample site you showed is made based on wordpress, then probably be some plugin ready that mounts this issue of video and menu. But here’s a way to start: <html> <head>…
-
1
votes2
answers1247
viewsA: Change the color of a specific time slot in Fullcalendar
Maybe use the Annotations can serve for what you need. To add the Annotations: $('#calendar').fullCalendar({ .... events: [ { title: 'All Day Event', start: new Date(y, m, 1) } ], annotations: [{…
-
0
votes3
answers1624
viewsA: Place an Array in a PHP cookie
If your cookie name has one dot, when using the setcookie, he will be transformed into underline. In my example, how was storing the cookie ged.permissao.visualizacao, I recovered it as…
-
1
votes3
answers1624
viewsQ: Place an Array in a PHP cookie
I have a query that returns the accesses of the user who just logged in. I need to turn them into an array and store them in a session and a cookie. Follow code: //ARMAZENA AS PERMISSOES DO PERFIL…
-
3
votes2
answers886
viewsA: Share Facebook
You need to include the meta tag down in your html for the image to be detected in the sharing. <meta property="og:image" content="LINK_DA_IMAGEM"/> For more information about meta tags,…
-
1
votes2
answers158
viewsA: Video loop in Html5 making endless re-downloads. Overflowing bandwidth
To avoid "infinite re-download" you can try to download the video and make it available on your server instead of using the traditional iframe with youtube content. If you try to do this, I suggest…
-
2
votes3
answers403
viewsA: Only first row of table being displayed!
The while is the command that goes through the records of your query. You need it in the specific part of table that you want to repeat, in your case, would look something like: echo ' <table…
-
3
votes2
answers1804
viewsQ: Destroy sessions in PHP
I was researching on functions of logout in php and saw some examples like: if(isset($_SESSION)) { unset($_SESSION['minhaSessao']); //repetir para cada sessao session_unregister();…
-
1
votes1
answer771
viewsA: How to change the menu position using the scrollTo function?
Since your menu is at the top of the site and does not change in size (according to the link of the site you made available), a solution would be to leave it with position:absolute; and create a div…
-
6
votes1
answer805
viewsQ: PHP - Concurrent user control?
I have a finished and working system, done in full ASP. I am rewriting version 2.0 of it, and as I will review it 100%, I decided to try my luck with PHP. A problem arose in user control: I need to…
phpasked Dirty Old Man 1,064 -
1
votes1
answer643
viewsA: Parameters with Javascript
Your code has some errors like the missing tag completion <script> above the form, and also the lack of tag completion input below it. Taking into account that these errors are only the…
-
1
votes3
answers4067
viewsA: Use "text-overflow" with "height"
There is no way to display only part of the text and still add ellipsis at the end with the properties CSS. You would need to use native commands of the language you are using (PHP, ASP, etc...),…
cssanswered Dirty Old Man 1,064 -
1
votes1
answer1177
viewsA: How to place border-Radius on an iframe maps?
Just use the border-radius even, but in a span out of frame: HTML: <span id="mapa"> <iframe…
-
2
votes1
answer320
viewsA: How to load or download points on Google Maps when clicking a div?
I suggest you take a look -> Gmaps.js I’m not sure if it will solve your problem, but for all the applications involving google maps that I needed to develop until today this API gave account,…
-
-3
votes4
answers1502
viewsA: Divs floats in a container with height auto
The CSS property "overflow" specifies what happens if the content exceeds the box of an element, giving you even the ability to control the side and horizontal scrollbars. See more about the…