Posts by Zuul • 35,190 points
501 posts
-
54
votes4
answers49363
viewsA: What is console.log?
Console object The console is effectively an object with several associated methods. The object console provides access to the browser debugging console. The operation of this object varies from…
javascriptanswered Zuul 35,190 -
3
votes2
answers5446
viewsA: How to know which script is running on a given HTML element?
You can find out which events are attached to a given DOM object via Firebug from version 1.12, where the function was introduced getEventListeners(target) (English): Open Firebug for example with…
-
2
votes1
answer334
viewsA: last item of the <li> list is not down even if you have space
Your problem is the whitespace among the li. How do you have a padding to the right that added with the padding to the left results in 25%, the whitespace increase consumption a little and the sum…
-
1
votes2
answers1640
viewsA: Add progressbar to my webview
Built-in style You can add a progress bar to WebView by defining the following code in the method onCreate(): // solicitar a barra de progresso para a activity…
-
1
votes1
answer313
viewsA: Pass value I click into popup div
From what I understand, you intend to pass the value of the variable aff_j into your popup which is initialized by the function open_popup() which in turn is called at the event click tag <a/>…
javascriptanswered Zuul 35,190 -
4
votes2
answers271
viewsA: How do I select exactly the element searched for in jQuery regardless of classes or ids?
In your role you should refer to the element you received and not locate it by the CSS class: Example in Jsfiddle function buscar_cidades(e){ var formid = $(e).closest("form").attr("id"); var estado…
-
5
votes2
answers1343
viewsA: How to know which form id a function is being sent from?
In Javascript you can pass this in your role that is called at the event change so that within it you can know which element used it. With jQuery you can then convert to an object, go up to the form…
-
0
votes2
answers123
viewsA: Sanitize email address
Using the function iconv (English) that allows us to make the conversion of a string for a charset specific: iconv('UTF-8', 'ASCII//TRANSLIT', "zuúl@ so.pt"); // zu?l@ so.pt Now, it is necessary to…
-
3
votes2
answers123
viewsQ: Sanitize email address
Assuming the following email address: $email = "zuúl@ so.pt"; I tried to proceed to sanitize the same by making use of: filter_var($email, FILTER_SANITIZE_EMAIL); // [email protected] I tried too:…
-
3
votes2
answers269
viewsA: Importing Packages Pycharm
The package is present but the method in use to verify the version of it is outdated. As there is already an answer making use of string literals, I will leave an alternative making use of tuples…
-
1
votes2
answers452
viewsA: Problem when breaking in if
Assuming I read your code correctly, you’re trying to garland that: A date entered with / is then sent with -; A date in the format "DD-MM-YYYY" is then sent in "YYYY-MM-DD". Something simpler could…
javascriptanswered Zuul 35,190 -
3
votes1
answer286
viewsA: Applet does not run in browser
Assuming you haven’t found the problem yet, I notice that in your HTML you have some errors that cause an incorrect or null visualization of your applet. Tag applet Where you define height, you have…
-
7
votes1
answer162
viewsA: What is the meaning of the "indexing equal or removed" error in Mysql?
This error indicates that you have two equal indexing keys, where you are essentially repeating data in the table indexing. Mysql warns because duplicate indexing ultimately affects query…
-
7
votes1
answer2867
viewsQ: Backup all tables except one
In Mysql we can perform backups via terminal as follows: Database mysqldump nomeBaseDados > meuFicheiroBackup.sql Table mysqldump nomeBaseDados nomeTabela > meuFicheiroBackupDaTabelaX.sql How…
-
7
votes2
answers1644
viewsA: How to store files in the browser cache
To take advantage of the browser cache, we essentially need to let the browser know when the files it has just collected expire, so that by that date it keeps them and will not collect new ones.…
-
4
votes1
answer431
viewsA: Runtimeexception: Parcelable encountered Ioexception
Note: On Android, it is usually more practical to start the analysis of stack trace from the end going evaluating the problems until we find the last reference to "Caused By". This last reference…
-
2
votes2
answers898
viewsA: Problem in database connection class
I do not know how you have the rest of the necessary settings so I will leave in a general way the steps to which you should be aware: Download the Mysql JDBC Connector (English) and include it in…
-
2
votes1
answer297
viewsA: View PDF after AJAX call with TCPDF in Laravel 4
In order for the browser to know that the content is to be downloaded, you must use the header Content-Disposition (English): Content-Disposition: attachment; filename="meuFicheiro.pdf"…
-
4
votes1
answer80
viewsA: Temporary file with Indy
Making use of class TIdHTTP of Indy, you can do it this way: http.ExecuteURL('http://pokestage.ddns.net/patch/patchlist.txt'); sRichEdit1.Lines.Add(http.sl.Text);…
-
6
votes1
answer3043
viewsA: Mysql query by loading table with search button
So that when you click the button Buscar a database query is carried out which will allow you to obtain new elements to put in the table you must make use of Javascript and the Ajax method to detect…
-
20
votes1
answer21547
viewsA: How can one CSS style class inherit from another class?
I don’t think it’s clear to you how multiple CSS classes are assigned to an element. When in your HTML you have: <div id="1" class="circulo circulo1"> Tidbits1</div> You’re saying the…
-
4
votes1
answer2175
viewsA: Is there any way to recover data from a Mysql database?
If you have the logs active binaries, you can make use of utility program mysqlbinlog to generate an SQL file and then open it and locate the lost data: mysqlbinlog meuficheiroBinarioDeLog >…
-
2
votes1
answer93
viewsA: Error in Divs positioning
Analyze I’ve been looking at the code in your Jsfiddle. The problem seems to be the organization of the elements so that the stack work the way you want. What I suggest is to use a simple structure…
-
7
votes2
answers90
viewsA: How to identify when someone is uploading to the page?
If the upload is being carried out via POST of the form, the page makes refresh to send the data. If the upload is being carried out via Ajax, can use a global variable to control upload status: var…
javascriptanswered Zuul 35,190 -
2
votes1
answer267
viewsA: Change HTTP User Agent
Although in your question you hint that you want to limit the use of PHP to a particular application, where you should implement an authentication system, follow how to pass a UA customized: private…
-
6
votes1
answer119
views -
2
votes2
answers583
viewsA: click on table and load the information on the screen
For elements dynamically added to the page, the click event must be attached to a parent element and delegated to the elements where we intend to "fire" the click. This is necessary because when the…
-
2
votes2
answers1688
viewsA: Handling $_GET with line break
So you can pass by $_GET line breaks or other non-alphanumeric characters, you must encode the value to stay URL safe. In PHP you can make use of the function urlencode(): $string = "primeira…
-
17
votes2
answers13586
views -
5
votes3
answers1585
viewsA: Background image 100%
There are several techniques for getting an image to occupy the full width and height of the screen. Each technique is considered suitable for a particular scenario because we can handle the problem…
-
2
votes1
answer434
viewsA: Camouflage sender address in a PHP email
You should talk to the Technical support from Kinghost to get an exact answer to your question, but from what I see in FAQ for email configuration, sending emails requires authentication which is…
-
2
votes1
answer453
viewsA: Improve file_get_contents performance in loops
With the use of cURL (English) to collect the page and DOMDocument (English) to extract the title significantly simplifies the work done: Function to collect HTML function…
-
2
votes1
answer1204
viewsA: Prevent an Android app from 'minimizing'
Android is particularly designed to do pause to an application when the home is used. Because of this, there are two methods to manage what should happen when someone uses the home or navigate out…
-
1
votes1
answer116
viewsA: How to inactivate the empty area of a div?
You can achieve your objective detector where the click occurred in relation to your element: Example in Jsfiddle $("#meuElemento").click(function(e){ var meuOffset = $(this).offset(), relX =…
-
4
votes1
answer1063
viewsA: How do I make a checkbox table (Access Level Table) responsive?
The concept of "responsive" when we talk about tabular data, and in a way when we talk about any elements, has limitations that relate to usability. In the particular case of your table, some…
-
2
votes2
answers5819
viewsA: How to redeem the values contained in a span with jQuery?
In your Javascript code, you have: $('#click').click(function(){ ... } that will attach an event to the elements with the ID click. However, in your question HTML Markup you have no element with the…
-
3
votes1
answer3596
viewsA: Interpret the Mysql Explain command
In the online documentation of Mysql you can find the explanation for all the aspects present in the explanation EXPLAIN (English). derivedN Regarding your particular doubt, we can read here…
-
4
votes1
answer1503
viewsA: Removing an image via unlink does not work
According to your code, there are some things that can be improved so that there is greater coherence between what you want and what you are doing. On the other hand, some of the suggestions aim to…
-
6
votes3
answers183
viewsA: Echo returning wrong value
As strings in PHP can be encapsulated with single or double plica. When encapsulated with double plica, what happens is that the variables present in the contents of the string are replaced by their…
-
17
votes6
answers11785
viewsA: Is there an advantage to using filter_input instead of isset?
How it can be read in the function documentation filter_input (English): filter_input - Gets a specific External variable by name and Optionally Filters it That translated: filter_input - Fetches a…
-
5
votes2
answers147
viewsA: How to apply responsiveness to texts?
What you’re looking for is called Viewport Percentage Units which are units in relation to screen size: See example in Jsfiddle In Jsfiddle, manipulate the width of the preview window to see the…
-
7
votes2
answers675
viewsA: How to cancel event click on site
You can, for example, register an event by clicking on the page that will cancel the click on certain elements if your menu is open/visible: $("body") .find('a:not(#meuElementoClicavel)')…
-
3
votes2
answers993
viewsA: PHP how to pick up image, in hexa format straight from MSSQL?
As I understand your code, you are reading the image to the database, inserting the same encoded in Base64. Then you are doing the output image directly in your HTML. This way it does not result in…
-
10
votes4
answers2383
viewsA: More important than important
The denotation !important takes precedence when styles are applied. Content, if you guarantee a match to the initial statement, that is, the same path to the element that receives the style, you can…
-
1
votes2
answers146
viewsA: Move element over element where cursor is
You can achieve your goal as follows: Example in Jsfiddle $('#bts > div:not("#hoverLayer")').on('mouseenter', function() { $target = $(this);…
-
13
votes10
answers360
viewsA: Organization of CSS
There is no established rule for how CSS files are indented and/or formatted. Each programmer has their own style which makes things difficult when we talk about standardizing. However, there is a…
-
5
votes3
answers1142
viewsA: Adapt query to create VIEW that returns sum of count of two Subqueries
After a few tests, here’s a way to resolve the issue: SELECT ( (SELECT COUNT(*) AS total FROM tabela1 WHERE escondido='não') + (SELECT COUNT(*) AS total FROM tabela2 WHERE escondido='não') ) AS…
-
5
votes3
answers1142
viewsQ: Adapt query to create VIEW that returns sum of count of two Subqueries
Of agreement with the documentation, Mysql does not allow the use of Subqueries in the FROM when the consultation is a view: Subqueries cannot be used in the FROM clause of a view. Resulting in the…
-
5
votes1
answer338
viewsA: How to advertise on my Firefox OS app
Any advertising network running in a browser will work in Firefox OS. You can use Leadbolt, Inneractive or Google Adsense, among others. Note: the Hilty member of HTML5 Game Devs Forum placed some…
-
4
votes1
answer332
viewsA: Web service made with Nusoap in PHP. I can’t access in Java
Your original error should be within these lines: com.sun.xml.internal.Ws.streaming.Xmlstreamreaderexception: Unexpected XML tag. expected: {}enviar but found:…