Posts by Tivie • 545 points
12 posts
-
0
votes2
answers330
viewsA: Capture and decrease values of multiple Ivs and inputs
It does not work because this HTML is invalid: "There cannot be two entities with the same id." Anyway, if your problem is PHP errors, try adding this at the beginning of your code:…
-
6
votes4
answers361
viewsA: Decrease span field value with preg_replace
Parsing HTML with regex is a bad option and can lead to madness. There are many ways regex fails to read HTML (e.g., upper or lower case TAGS, spaces between classes, extra lines between html…
-
2
votes3
answers7017
viewsA: Update $Scope in Angularjs
The problem is that $scope.dados belongs to the controller’s Scope avaliacao and the search function belongs to the controller pesquisas. Avaliacao is the son of pesquisas, soon pesquisas does not…
-
1
votes1
answer467
viewsA: How to submit a post using Django Rest Framework and Angular.js
Although I have found the answer, I thought it best to clarify something that might be useful: According to the RFC 2616 verb PUT is an idempotent method, that is, no matter how many times I repeat…
-
1
votes3
answers543
viewsA: Make a rest screen with Jquery
Here is an example: (PLUNKR) $( document ).ready(function() { var timeout = setTimeout(showTela, 3000); $(document).mousemove(onEvent); $(document).mousedown(onEvent); $(document).keydown(onEvent);…
-
1
votes1
answer1115
viewsA: Copy HTML and change ng-model
Angularjs works differently than jquery so you have to let go of jquery-like thinking and go on to do the "the angular way thing". In your case, I think you want to "duplicate" the first input…
-
7
votes2
answers1386
viewsA: Mail function and its limits
Well, answering for parts... I need to know the limit of the mail function and current servers? The mail function has no limits, per se, but is limited by the maximum memory that can be allocated to…
-
3
votes2
answers537
viewsA: How to avoid calling the function
Question of the PO: From what I understand, the steps of its application (in a real context) are as follows:: User selects an option from the menu The loading image is enabled An AJAX request is…
-
5
votes3
answers157
viewsQ: Why does this violate Strict Standards?
take into account the following definitions of classes: class SuperDate {} class SubDate extends SuperDate {} class Foo { public function setDate(SubDate $date) {} } class Bar extends Foo { public…
-
2
votes3
answers10480
viewsA: How to store multiple values in a variable?
Well, without knowing more information it’s hard to understand what you want. How to store multiple values in a variable? Using an array(array) or an object. $array = array('a', 'b', 'c'); //Array…
-
6
votes9
answers6629
viewsA: Why is using Sessions not a good alternative to authentication?
I may be misinterpreting but I didn’t quite understand the question because, except for the forwarding of credentials in each request (request), the only way to keep an authenticated user is through…
-
5
votes2
answers299
viewsA: What is a "tick Event" in PHP?
In what situations it could be useful? Adding to the MLMOS response, giving more concrete examples... Ticks have some debugging utility. For example, to define a memory usage profile (code…