Posts by William Barbosa • 703 points
11 posts
-
0
votes1
answer171
viewsA: Open PDF on iOS mobile using Xamarin - C#
A practical way to open a . pdf is by using a UIWebView: var url = new NSUrl(caminhoPdf); var request = new NSUrlRequest(url); webView.LoadRequest(request);…
-
2
votes1
answer3204
viewsA: Create Phone Mask for Edittext
As of API 21, builder that receives a string containing a country code that will be used by PhoneNumberFormattingTextWatcher. The builder without parameters invokes Locale.getDefault().getCountry()…
-
0
votes2
answers755
viewsA: How to throw a block on top of the other block?
Simple solution with :hover Note that I added classes so I don’t have to use the selector directly in the element name, I advise you to do the same in your html. .texto, .imagem { position:…
-
2
votes1
answer70
viewsA: IE does not resolve URL
From what I read in the comments, the structure of your url is ti_hom.xxxxxx.yyyyy.br and the problem lies precisely in this: internet explorer has problems with urls it contains _ (underscore).…
-
33
votes5
answers6116
viewsA: What is the difference between the functions var name = Function() and Function name()?
Despite the fairly complete explanation of Bacco, it is worth pointing out one thing about function expressions. When you store an anonymous inline function in a variable, the variable identifier…
javascriptanswered William Barbosa 703 -
0
votes2
answers653
viewsA: How to execute via JS the action of a send email button, whose ID always changes?
You can use Document.querySelectorAll(). This method works similarly to jQuery, looking for CSS selectors. Just watch out for jQuery browser support for this function to know if the reach of it…
javascriptanswered William Barbosa 703 -
2
votes1
answer673
viewsA: How I get the sql that Linq generates by debugging VS2013
When you select using Inline, the result will be of the type DbQuery<T>. The method .ToString() of that class is superscript to display the SQL command, then just call him: var query = from…
-
1
votes1
answer602
viewsA: Somar Campos Input
If you try to apply parseFloat in an empty string ("") or in a decimal with comma, you get NaN as return and NaN + Num = NaN. #TotalFR is causing this problem by being empty. Your best alternative…
-
6
votes5
answers7871
viewsA: Add onclick event to created element with createelement
The method createElement (Documentation of the MDN) returns an object, which you are already storing in ctrlContinue. To add an event to this object, just do the following:…
javascriptanswered William Barbosa 703 -
1
votes1
answer168
viewsA: SCRIPT5017: Syntax error in normal expression
Apparently your links are being interpreted as a Regular Expression ("normal expression"? Seriously, Microsoft?). This is because the bars of the first link and the bars of the second complement…
-
0
votes3
answers152
viewsA: Viewdata error in controller
You have no constructor defined for the person class, so you should use property initializers to initialize object properties. In your case, by putting everything within parentheses, you were trying…