Posts by pho3nix • 537 points
25 posts
-
0
votes1
answer38
viewsA: How to detect if the browser accepts xmlhttprequest events?
Do so: if(window.XMLHttpRequest && !(window.ActiveXObject)) { try { req = new XMLHttpRequest(); } catch(e) { req = false; } } else if(window.ActiveXObject) { // Se for IE usa o control…
-
0
votes2
answers212
views -
1
votes1
answer200
views -
2
votes1
answer1688
viewsA: Click button call different methods
Thus. private void MyMethod(Form frm, MenuItem itemMenu) { Form frmCadPessoaFisica = new frmCadastroPessoas(frm, itemMenu); frmCadPessoaFisica.MdiParent = this; frmCadPessoaFisica.Show(); } private…
-
0
votes1
answer61
viewsA: Site is displaying posts of the day 2 of May, however, some access the news updated normally
In your DNS Place without www with the IP of the most current content A @ IP www put before like this CNAME www atodahora.com.br This makes www.atodahora.com.br an alias of atodahora.com.br…
-
3
votes1
answer288
viewsA: Create unique attribute beyond Primary Key in code-first
You can use [Index] [Index(IsUnique = true)] [StringLength(200)] public string Username { get; set; } https://msdn.microsoft.com/en-us/data/jj591583.aspx#Index If you have to use modelBuilder, use…
-
2
votes1
answer139
viewsA: Problem with mask in form
Use the Zero instead $("#fone").mask("(00) 0000-0000"); Or put jquery in the head and then you can use jquery $(document).ready(function() { $("#fone").mask("(99) 9999-9999"); }…
-
0
votes4
answers265
viewsA: Phpmailer without ajax
You can use the form itself <form id="form-ajax" method="POST" action="sua pagina aqui"> There is a good tutoral on w3school…
-
1
votes3
answers1511
viewsA: How to send an object via SOAP web service
You have to implement the Serializable Interface public class Employee implements java.io.Serializable { public String name; public String address; public transient int SSN; public int number;…
-
3
votes1
answer75
viewsA: Reset effects after clicking on a link
use the Outline a:focus, a:visited, a:hover { outline: 0; border: none; }
-
0
votes2
answers3520
viewsA: Applying JS to Validate Input with Onblur
It must work like this: <input type="text" id="seu_texto" onblur="TestaCPF(this.value);" />
javascriptanswered pho3nix 537 -
0
votes2
answers837
views -
-1
votes1
answer369
viewsA: How to calculate international credit card IOF?
public static bool Mod10Check(string creditCardNumber) { //// check whether input string is null or empty if (string.IsNullOrEmpty(creditCardNumber)) { return false; } //// 1. Starting with the…
-
3
votes4
answers659
views -
2
votes3
answers646
viewsA: pass checkbox values to the url
You can do something like this <input type="checkbox" name="age" <?php if (isset($age) && $age=="1") echo "checked";?> value="1">1-9 <input type="checkbox" name="age" <?php…
-
1
votes1
answer1665
viewsA: How to know the type of the DOM object
Wear something like that: $('#filtos select, #filtos input').each(function (index, obj) { var $this = $(obj) var meu_elemento = $this[0].tagName; if (meu_elemento == 'input') { var meu_tipo =…
-
-1
votes2
answers574
viewsA: How to get meta tag information from an external url?
You can order as you normally do with any internal address. Then just create the crossdomain.xml file at the root of your site. See here a crossdomain.xml issue already solved. For a complete…
-
-2
votes2
answers530
viewsA: Installation problems for Visual Studio 2015 Community
This in principle is due to the fact that you have your Windows corrupted. Use the sfc /scannow command in cmd to report the system files and by fin make a chkdsk to your c: sfc /scannow…
visual-studio-2015answered pho3nix 537 -
0
votes2
answers4492
viewsA: Use PHP variables in the body of phpmailer’s HTML email
You can use ob_start() for this ob_start(); // seu codigo php aqui $mensagem = ob_get_contents(); ob_end_clean(); $mail = new PHPMaier(); // $mail->Mailer = "smtp"; $mail->IsHTML(true);…
-
3
votes2
answers240
viewsA: How do I serve a site in multiple languages in Apache?
First of all you must change the names of your files to end in . html, it must be to type index.pt.html Then you can use mod_rewrite and mod_geoip to redirect traffic from certain ips per country to…
-
1
votes2
answers1148
viewsA: How to get all selected values in a Datagridview?
I think this might help List<Modulo> lst = new List<Modulo>(); foreach (DataGridViewRow gridRow in dataGridView.Rows) { Modulo modulo = new Modulo(); foreach (DataGridViewCell gridCell…
-
4
votes3
answers24766
views -
0
votes2
answers197
viewsA: ASP.NET Web Forms and Ajaxcontroltoolkit
You cannot have <%> when you try to add controls in Runtime. To change the <%> use Code Behind before using the properties for this purpose as the this.Page.Title = "Ola Mundo"; or…
-
0
votes2
answers443
viewsA: Query an XML file - C#
You can use an XPATH syntax you have a tutorial here of the syntax. In C# you can write the XPATH query using Xmldocument.Selectnodes…
-
4
votes2
answers1064
viewsA: Error using phpmailer class
Try this require_once (dirname(__FILE__) . '/PHPMailer/PHPMailerAutoload.php');