Posts by Erik • 717 points
16 posts
-
2
votes4
answers1112
viewsA: Is there an XHTML5 (XHTML + HTML5)?
I find it interesting you understand what is specification and implementation. XHTML 4.x, HTML5 are specifications, are a set of rules that define how HTML should be interpreted by browsers, is…
-
0
votes5
answers6499
viewsA: Save the binary content of an image in the database
What you’re looking for is not binary, it’s Base64. With this function you can transform the image into a format that you can save in the database and use in HTML easily. However Base64 takes up 1/3…
-
4
votes2
answers390
viewsA: What types of attacks can I suffer with global variables and how to prevent
The best way to avoid this type of problem is to define well the domain of the values you expect for a certain value and validate against these domains. Do this with all values that comes from the…
-
9
votes6
answers15200
viewsA: What is and how does Bootstrap work?
bootstrap is a collection of js, css/Less/Sass files among others, which aims to give you a starting point for your layout. It’s not a template, the idea of bootstrap is not to add a unique look to…
-
1
votes1
answer888
viewsA: Manual update of PHP Version
Whether or not you can use your custom php.ini depends on apache settings. Just put it at the root of your site, if it works it is why it is possible (: The . htaccess file is already limited by the…
-
1
votes2
answers234
viewsA: How to reference the current board
On UNIX (Linux, BSD, etc) systems you use ./ to refer to the current directory.
-
1
votes2
answers578
viewsA: Perl for web development
It’s definitely possible, by the way, 10 or 15 years ago, it was widely used on the web. At the time it was called the server-side part of CGI scripts, which were mostly Perl scripts. I believe that…
-
3
votes1
answer661
viewsA: How to use Bootstrap responsive system
Basically you add a class to your html element. For grids the class structure is: .col-tamanhoDaTela-EspaçoASerOcupado .col-sm-1 /*ocupa 1 espaço em telas pequenas*/ The bootstrap grid is based on…
-
0
votes1
answer278
viewsA: Page of product comparison
From what I understand your problem is with javascript. I recommend using a library called jQuery. With jQuery you can do: <script…
-
1
votes1
answer622
viewsA: Website navigation without Reload using ajax does not work properly
Your PHP script for the internal parts of the site returns only the middle part of the site. So when you make a request XHR(AJAX), you get what you want, only the middle part and you play what you…
-
3
votes3
answers1146
viewsA: How to stop running $.map?
You cannot "break" the execution of the map function. I recommend taking a look at the function $.each.
-
2
votes1
answer582
viewsA: How to use Javascript using FPDF
Rafael, The Javascript you are using is that of the browser, by the time it starts running the pdf file has already been generated and it has no means to read or edit the file data. If the variables…
-
6
votes3
answers918
viewsA: Alternative to check if the window is a popup
The method window.open returns the window object that was opened, so if it is on the same domain I believe you can add an attribute to the popup window object after opening and checking it. Tab that…
-
1
votes3
answers275
viewsA: How to use Cookies in Internet Explorer?
IE does not trust cookies from iframes that have no privacy policy (p3p). Then you would have to make an XML file that identifies your privacy policy. That would be the compact version. To do it…
-
20
votes6
answers27772
viewsA: When, why and how to use the "use Strict" directive in Javascript?
Javascript is a dynamic language and it was not planned for the dimensions it is used today. So it has some little problems. For example the variable declaration, if you use a variable without var…
-
3
votes4
answers4778
viewsA: How do value types and reference types work in Javascript?
In Javascript there are types Primitive and types Complexes. Primitives would be string, number, Boolean and Undefined. Primitive types are copied by value. So: var x = 1, y = x; x = 2;…