Posts by Almeida • 498 points
20 posts
-
6
votes2
answers4772
viewsQ: CPF and CNPJ validation
I’ve been doing research on Swift and I haven’t seen examples that contemplate the validation of both CPF and CNPJ. So any of your colleagues have a function that can validate them?
-
1
votes1
answer25
viewsA: Not accepting click on the Annotation for the second time
I just found a solution ! The situation occurred when I called the "performSegue(withIdentifier: "callDriverPopupSegue", Sender: self)" inside the didSelect because the Annotation that was clicked…
-
0
votes2
answers254
viewsA: Swift 3 - how to close one last Popover open on another Popover ?
I found a solution. With the two instructions below I managed to close the open Popover. navigationController?.popViewController(animated: true) self.dismiss(animated: true, completion: nil)…
-
0
votes1
answer25
viewsQ: Not accepting click on the Annotation for the second time
I am using a customization of Annotation in my mapkit design (Swift 3) to show more than one Annotation(pin) on the map. It is showing and being able to click on the annotationn, but only the first…
-
0
votes2
answers254
viewsQ: Swift 3 - how to close one last Popover open on another Popover ?
I have a viewcontroller that opens a Popover. This first opens a second Popover. But when I give a self.Ismiss on any of the popovers is closing all the popovers and the viewcontroller that called…
-
0
votes1
answer65
viewsQ: Swift 3 how to open a Popover so that it does not cover all viewcontroller that called it?
I already use the Popover that is opened through a "follow" and I would like you to define the dimensions (height and width) of this Popover so that it does not completely cover the viewcontroller…
-
9
votes4
answers17728
viewsA: What is a scaffold?
The explanations above have been quite thorough about what scaffolding is and its use. I will describe below how to use it in practice. Just to put my explanation in context, every time a controller…
-
1
votes1
answer854
viewsA: Asp.net MVC cshtml Divs layout alignment?
If I understand well what you want you should partition your body-content. You must place @Renderbody(), where your Index will be rendered, in a class block on the right, within a line (Row),…
-
2
votes1
answer867
viewsA: Return of Json
You are mixing the functions in the controller, to use json in a method you must use Jsonresult as the return type identifier. In Asp.net mvc there are two ways to make an Ajax call and with that…
-
0
votes1
answer25
viewsA: How to get the class value of a div that is inside a Repeateritem?
You can use to be triggered when there is a change and then use to set the new value. $('.divAtivoOnOff').change(function(){ $('#HiddenOnOff').val(novoValor); }); Obs.: I put newValue because I…
-
0
votes1
answer338
viewsA: Manipulation Images Javascript
This example in jsfiddle http://jsfiddle.net/sqJtr/ I believe it can help you, put an image on another with "div" but can change to "img" which will work as well.…
-
0
votes2
answers31
viewsA: Receive a date array other than the one chosen
You can check the click of your Ubmit button, in case you exchange for a link (), get the dates that were selected in the input and check them in a loop the dates you want to capture, at the end…
-
1
votes1
answer356
viewsA: Web API and Owin Oauth - redirect to another domain (redirect_uri)
I had a difficulty with Web API and Owin Oauth, follows below the structure and as I resolved, maybe I can help you. 1) I have a web site in Asp.net mvc that login via Identity and Owin Oauth…
-
3
votes3
answers1628
viewsQ: How do I export a trial app without the apple Developer program?
I’m concluding an app on Swift 2 IOS and would like to know if there is how to export and install on an iphone without having apple Developer program, as can be done on android.
-
1
votes1
answer657
viewsA: import image from gallery - android
The following is an example of what you need: 1) Shows on the screen option of choice: selects gallery photo or photo taking; 2) Shows in imageview; 3) Upload to a web api, I use for Asp.net mvc but…
-
1
votes3
answers850
viewsA: Remove field Hidden jQuery
The example below deletes as you wish but would have to use "Class" to refer to more than one element: <input type="text" class="remover" value="value1"> <input type="text" class="remover"…
-
1
votes2
answers339
viewsA: ASP.net MVC - Save user permissions
The best thing to do in MVC is to use Identity. I had made my own access control but surrendered to Identity from version 2.x as it is much more flexible than in previous versions. It uses the…
asp.net-mvcanswered Almeida 498 -
3
votes3
answers2680
viewsA: How to iterate over a dictionary?
It follows two forms that are quite used: Dictionary<string, int> d = new Dictionary<string, int>() { {"cat", 2}, {"dog", 1}, {"llama", 0}, {"iguana", -1} }; // Loop over pairs with…
-
1
votes1
answer711
viewsA: Retrieve JSON values and mount HTML for each record
If I understand what you want, this is the way I use to search the server and list 4 products per line on the screen: listaProduto = function () { $.ajax({ url: '/Produto/ListaProduto', type:…
-
2
votes3
answers638
viewsA: How to open a new page by clicking on the table row?
I do it this way: <button onclick="myFunction()">Abrir em outra aba</button> <script> function myFunction() { window.open('http://www.terra.com.br', '_newtab'); } </script>…