Posts by MagicHat • 12,262 points
358 posts
-
2
votes1
answer92
viewsA: Button with glyphicon-remove with size problem
Substitute: <button id="del_photo" type="button" style="width:20px;height:20px" class="btn btn-danger btn-sm" title="Excluir"> For: <button id="del_photo" type="button" style="padding:15px"…
-
1
votes2
answers70
viewsA: I can’t place a list
If it is a sub menu, it should stay inside the main: <body> <ul id="menu"> <li id="menu1"><a href="">Menu1</a> <ul id="sub1"> <li id="opcao1"><a…
-
0
votes0
answers66
viewsQ: Is it possible to capture Ajax-generated html data from an external URL?
Scenario : I am trying to capture the text of certain div of a website, however div seems to be generated with Ajax. When I inspect the element directly on the page through the browser debuger, I…
-
6
votes2
answers4778
viewsA: How to load default image if src="" does not find?
I found this solution... <object data="https://img.com.br/no_existe.jpg" type="image/png"> <img src="http://farm2.static.flickr.com/1094/984405951_34580c3cb9.jpg" /> </object> In…
-
1
votes2
answers515
views -
4
votes5
answers1574
viewsA: Why do "Alert", "confirm" and "prompt" lock the loading independent of the definition order?
Because those functions that you refer to, internally have a set of subroutines and one of them is : "For everything! Shows Alert and expects a user input", and each will have its own peculiar…
-
5
votes1
answer411
viewsQ: What language is used in the Apache ". htaccess" file?
For example the following lines represent which language : RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri_path=$1…
-
5
votes3
answers665
viewsQ: What does the term "routing" mean in the context of MVC architecture?
I’m beginning in the study of this architecture and came across this term : routing. Edit I need some framework to develop based on this architecture ?…
-
7
votes3
answers7194
viewsQ: What is a method " __contruct()"?
I am starting studies on POO, and came across the following method: <?php class ShopProduct { public $title = "default product"; public $producerMainName = "main name"; public $producerFirstName…
-
2
votes1
answer346
viewsA: Layout break with top menu in different browsers
I changed your code to : <!DOCTYPE html> <html> <head> <title>Introdução</title> <meta charset="utf-8"> <link rel="stylesheet" type="text/css"…
-
0
votes2
answers2477
viewsA: CSS-only carousel: problems centering and fixing size
The fastest way to meet your request is by setting a size for the images: img { width: 514px; height:400px; } Would look like this : html { font-size: 10px; } body { padding: 2rem; background:…
-
0
votes0
answers178
viewsQ: How to use a product title in the URL?
For example I have a page where I list the products : http://exemplo.com/produtos.php and when clicking on any of the products listed the URL is http://exemplo.com/produtos.php?id=2. Assuming the…
-
10
votes2
answers3309
viewsQ: What does the term "Consume an API" mean?
I see a lot of that term around here, what it would mean, and how you get it through code?
-
1
votes1
answer347
views -
9
votes1
answer781
viewsA: In distributed computing, how does the election of a leader work?
In your question already exists the answer, perhaps to understand it better one must conceptualize initially distributed computing. Distributed System A distributed or parallel processing system is…
answered MagicHat 12,262 -
2
votes1
answer6089
viewsA: Move div down
Good in css and html the elements relate, for this specific solution you can do as below, however it may be necessary to adapt, without the whole code I have no way to go beyond... <div…
-
6
votes1
answer489
viewsA: Catch text between a tag
Try: $text = '<td id="aui_3_2_0_1196">500</td>'; echo strip_tags($text); Something is going on.
-
2
votes2
answers6898
viewsA: Is it possible to do Ubmit without refreshing, and without jQuery?
This example is pure javascript, the transaction is being performed through the API Xmlhttprequest and not by action conventional... I mean you wouldn’t even need the tag form with his attributes.…
-
1
votes1
answer566
viewsA: Align image according to container using CSS
Good if you’re putting the #qrcode and #carimbo in position:absolute, then he won’t respect .carimbo-foto, another postmark-photo is a classe and is declaring itself as an identifier in css.…
-
6
votes2
answers312
viewsQ: Who is who in the use of functions?
I have searched a lot, and has a lot of good content here, which covers this topic, however I still can not understand the functioning. The characters I’m referring to are: Function Parameters…
-
2
votes3
answers849
viewsA: Remote server/local server in PHP
XAMPP is an application that offers a set of features: X - It means that it is multiplatform. A - Apache (Server acting under HTTP protocol) M - Mariadb(Emerged from Mysql, Database) P - PHP P -…
-
0
votes2
answers3841
viewsA: How do I leave the opacity of a dark image and display the figcaption text on Hover?
The problem is that the class efeito encompasses the other elements, which in turn inherit the characteristics of the parent element: .efeito{ -webkit-filter:opacity(100%); } .efeito figcaption{…
-
3
votes3
answers242
viewsA: table html shellscript
Try it this way : #!/bin/bash # make_page -Sua Página cat <<- _EOF_ <html> <head> <title> Minha Lista </title> </head> <body>…
-
0
votes2
answers386
viewsA: Last lastInsertId ID
Tried to : $stmt->execute(); $id = $db->lastInsertId(); If yes which error shows ?
-
0
votes2
answers662
viewsA: Add content at cursor position with Ckeditor 4.5
I don’t see your code, but you can try: var texto_var = document.getElementById("id_textarea").value = "O" + nomeDoCliente "está cadastrado no sistema desde "+ dataCadastro;…
-
4
votes2
answers131
viewsA: Recover typed URL
Can you try : $url_browser = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; //aqui executa o processo de login... header('Location: ' .$url_browser);
-
7
votes4
answers2266
views -
1
votes1
answer487
viewsA: How to call a class by clicking the button
I believe a language client-side is easier and practical... example: <input type="button" name="button_name" onclick="exemploF()" value="Chama class"> Jquery function exemploF() { $.post(…
-
1
votes2
answers1172
viewsA: How to make a button with Razor and Css
Can put: @Html.ActionLink("Clientes", "Clientes", "Comercial") { <input type="button" class="but_clientes"/> }
-
1
votes1
answer183
viewsA: Box shadow appearing from right to left
Here’s an idea you can adapt: *{ margin:0; } .header{ float:left; background-color: blue; height:auto; padding:16px; } li{ font: 500 16px Poppins, sans-serif; width:auto; margin-right: 20px;…
-
4
votes2
answers15005
viewsA: How to place an image in an HTML button
Try it this way : <input type="image" src="http://www.drpeppersnapplegroup.com/smedia/www/2013/04/17/img-volunteer-button_163957695590.jpg" alt="Submit" width="110" height="40">…
-
1
votes1
answer170
viewsA: How to add an image in the menu?
See if this passage helps you: self.bitmap = wx.Bitmap('imagem.jpg') wx.EVT_PAINT(self, self.OnPaint) self.Centre() def OnPaint(self, event): dc = wx.PaintDC(self) dc.DrawBitmap(self.bitmap, 60, 20)…
-
4
votes1
answer468
viewsA: How to position a Span tag on the page?
Good whatever way, you can use (as one of the options) the position:fixed. #Open_menu { position: fixed; z-index: 999; margin-top : 70px; margin-left: 33px; cursor:pointer; font-size: 20px; } Or you…
-
5
votes2
answers288
viewsQ: What is ARIA (Accessible Rich Internet Applications)?
What is the function of this technology, how to use it or even, when it is necessary to make use of it ?
-
0
votes3
answers914
viewsA: Change property of a CSS element on certain pages
You can do it in some ways : Add a stylesheet for each page. Eg :index.css/contact.css/localization.css and call each in the head correspondent. Or you can do it with javascript...…
-
15
votes2
answers2517
viewsQ: What are Web Components?
What are web components and how to use this technology ? I would like to understand a little more about this technology and visualize an example with its use.
-
1
votes1
answer153
viewsQ: How to set up "gdb" for Intel syntax
I’m trying to set up the gdb for syntax intel, however I am getting the following message : Ambiguous set command "dis intel": disable-randomization, disassemble-next-line, disassembly-flavor,…
-
1
votes2
answers907
viewsA: Redirect after php Action
You can add it to your file insere.php a redirect : if (!mysql_query($sql,$con)) header("location:pagina_destino.php");
-
9
votes2
answers1189
viewsA: What is an output parameter?
An output parameter does not create a new storage location, instead it represents the same storage location as the variable given as argument in method invocation. Output parameters are used in…
-
4
votes4
answers1225
viewsA: How to block website and leave free only for some ips?
Following your reasoning : $ip1 = '10.11.30.175'; $ip2 ='10.11.30.182'; if ( $_SERVER['REMOTE_ADDR'] != $ip1 || $_SERVER['REMOTE_ADDR'] != $ip2 ) die('Site em manutenção, voltaremos em instantes');…
-
0
votes2
answers17549
viewsA: How to do for when I click button,open link in another window
Take this example : <!DOCTYPE html> <html> <body> <a href="http://www.w3schools.com/html/" target="_blank">Visit our HTML tutorial!</a> <p>Se você colocar o valor…
-
4
votes3
answers759
viewsQ: How to style a select with Javascript only without Jquery?
I know that the jQuery UI has the method selectmenu(), as it would be with pure Javascript ? Not just the button select where will open the options, but also the window containing the options,…
javascriptasked MagicHat 12,262 -
1
votes3
answers3943
viewsA: Remove "margin" of responsive website image by CSS
You tried in your own style : *{ margin:0; padding:0; border:0; } This is a form used in resets, and it means that everything will have margin:0, and then you will need to explicitly state the…
-
0
votes1
answer514
viewsA: how to vertically align a . btn(bootstrap) button inside a Fixed top Nav menu?
I usually use the attribute line-height, to this define a heightto the nav. Thus : #nav{ height:60px; background-color: #888888;} #nav h3{ float:left; margin-left: 3em;} #nav-right{ float:right;…
-
0
votes1
answer113
viewsA: How to handle the MAC address(physical address) of the roteadot?
Oh, there’s this solution in Java : import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; public class App{ public…
-
7
votes3
answers271
viewsA: How can I make "..." appear in a certain class after reaching a limit of carcter
CSS only ! <!DOCTYPE html> <html> <head> <style> #div1 { white-space: nowrap; width: 12em; overflow: hidden; text-overflow: clip; border: 1px solid #000000; } #div2 {…
-
3
votes1
answer257
viewsQ: URL with uppercase letters
Is there any problem naming pages with high-box ? ex: http://exemplo.com.br/Minha-Pagina.php
-
1
votes2
answers23084
viewsA: Centralize DIV
You can follow this example : body{ width: 100%; height: 100%; background: #006633; } .centralizar { width: 80%; background: #fff; margin: 0 auto; text-align:center; } <body> <div…
-
0
votes1
answer279
viewsA: I need to create a regular expression to validate a Camelcase
Regex : /[A-Z]/g This way you can find all the uppercase. Testing So in code you can use something like: String s = "TudoMaiúsculoSemEspaçoQuemFezIsso"; StringBuilder out = new StringBuilder(s);…
-
1
votes3
answers21511
viewsA: How do I insert an image as the background of a div?
Seems to be working.... Check the path as mentioned in the comment. .imagemDeFundo{ border: 1px solid black; background:…