Posts by Cleiton • 719 points
25 posts
-
-2
votes1
answer30
viewsQ: Scoring
I have a quiz, it’s 10 questions, each with up to 4 answers. I needed to give a weight to each answer so at the end have a score that classifies it into 4 profiles. Technical limitation: I can only…
-
4
votes1
answer442
viewsA: 404 Error Python Django
Change url(r'^Quiz/$', RedirQuiz), for url(r'Quiz/$', RedirQuiz), Or url(r'complete/facebook/Quiz/?$), The characters ^ and $ are special. The first( ) says that the combination must START and the…
-
1
votes2
answers104
views -
1
votes2
answers1649
viewsA: Doubt with ng-Pattern input number with 2 decimal places - Angularjs
ng-Pattern is only used for validation, in addition you will need to create a directive that requires ngModel and include a $parse to do this job. In short do something like:…
-
1
votes2
answers642
viewsA: Execute server method when closing the browser
HTTP 1.4 protocol is by definition does not wait state on connection from the client to the server, in short there is no secure way to ensure that a user has actually disconnected from their server.…
-
0
votes2
answers577
viewsA: Validate Field with Avascript
There’s a dirty way to do it: <% if(Request.IsPostBack){ %> jQuery(function() { ['<%= txtECFNrSerie.ClientID %>', '<%= Outro1.ClientID %>', '<%= OutroEAssimPorDiante.ClientID…
-
2
votes1
answer214
viewsA: System.Web.Resources.dll not found
@Hains, To find out which version and where he is looking for this DLL, I suggest you activate the Fusion log, the activation instructions are on the error page, even so, it follows how to do:…
-
0
votes4
answers79
viewsA: Dar Selected at a given value received in the JS function
Missed ", see how it should be: var el, valor; el = $('#etapa_id').find('option[value="'+etapa_id+'"]') el.attr('selected’,true'); valor = $('#etapa_id').val();…
-
-2
votes2
answers100
viewsA: Dropdown field increment
Bruno, You are confused about things. The HTML helper will run on the server, you will work with the result of the browser execution. Telerik has an API that helps you perform these client-side…
-
1
votes2
answers1188
viewsA: How to load dropdown list using Angularjs and php
Do not request using $.http of jQuery, it rotates outside the 'environment' of angular which forces you to update the $scope. In your example, to make it work, simply encapsulate the signature of…
-
0
votes1
answer52
viewsA: WCF/Asmx giving timeout but server hardware is whispered
A 'dirty' solution (but practical and that will give you time), would be to decrease the time between the pool’s Recycle serving wcf. In the meantime look for the supplier so that together can…
-
4
votes3
answers721
viewsA: Why isn’t onBlur being executed?
Italo, always separate behavior from HTML. As you start doing this, you will see that doubts in the style "Why XXXX is not running" will decrease naturally. In his example: Include a script tag at…
-
2
votes1
answer28
viewsQ: Create files from a template
I do not know if my question is intelligent and it is possible to do what I want. I need to automate the creation of files in Visual Studio, here in the company, whenever we create a VIEW it is…
visual-studio-2013asked Cleiton 719 -
1
votes2
answers270
viewsA: Link to display attachment
Marconi, You don’t need to use Webcontrol or javascript to do this. Instead try something simpler like: <a href='<%#Eval("Anexo")%>' download target="_blank">Clique aqui para ver o…
-
0
votes1
answer315
viewsQ: How to change the name of a web-like project into a visual studio solution?
Guys, whenever I try to include a new web project in my solution with the name "Web" it adds "(something number)" and I can’t change. How do I change?…
visual-studio-2013asked Cleiton 719 -
6
votes1
answer857
viewsQ: Why doesn’t Visual Studio 2013 let you use version 4 of the Entity Framework?
I don’t know why, but whenever I try to update Object Model from an old project we have, Visual Studio 2013, asks if we want to keep version 4 of EF, but even marking the right version it updates…
-
1
votes3
answers955
viewsA: How to effectively remove the metatag refresh from a page?
Chrome does not provide or allow an easy way to disable http refresh, another problem is that it is not possible to 'intercept' the content of a request before it is rendered by the browser via api.…
-
3
votes3
answers3734
viewsA: How to use emails in Azure?
Edson, there is no email service available in Windows Azure yet. But you can use partner companies or specialized services. Among the best today are: Send Grid - Never used, but is well recommended.…
-
1
votes4
answers967
viewsA: Accessing dynamically generated form fields.
You can use Knockoutjs to build your layout instead of doing it 'in the hand'. In the library documentation you’ll find what you’re trying to do.…
javascriptanswered Cleiton 719 -
2
votes4
answers701
viewsA: Error in "Git push: fatal: could not read Username" command
Tercio, Your repository has been set up wrong. To confirm, type: git remote show origin -n Check that Fetch URL and Push URL are pointing to your repository if they are not: Remove the current git…
-
0
votes2
answers536
viewsA: JQuery effect of scroll ads
The name of this 'effect' is called Carousel. There is a lot on the internet, I highlight the implementations: Bootstrap http://getbootstrap.com/javascript/#Carousel jCarosel…
-
5
votes2
answers9742
viewsA: Dynamically adding element with jQuery
Come on, I know the question is what it would be like to use jQuery, but I prefer to answer how it should be done in the best way, since what you want to do will be replicated several times in your…
-
8
votes1
answer523
viewsA: Apply CSS property "content" without resorting to style sheet
Use content:attr(attribute), follow an example: HTML <div data-text='texto que será impresso no after'> </div> CSS div:after { content:attr(data-text); }…
-
5
votes1
answer3210
viewsA: Maximum number and size of cookies
According to Internet Explorer Cookie Internals both Internet Explorer and Firefox have a limit of 50 cookies per domain and: each cookie cannot be more than 5kb; Document.cookie has its own limit…
-
8
votes2
answers457
viewsA: How do I log in through my Microsoft Live app?
Unable to login to Microsoft API using user and password. This practice has not been used for years, since it involves serious safety risks for the user. Instead, they implement Oauth as a form of…