Posts by Tiago Bértolo • 331 points
9 posts
-
0
votes2
answers2026
viewsA: How to get id to edit data with Angular?
Make a button that calls an onClick function. And within this function send updated data. Example: <button ng-click="enviaConta(contaE.conta)"> Envia conta </button> And then on your…
angularjsanswered Tiago Bértolo 331 -
0
votes2
answers141
viewsA: Typescript - Error: Debug Failure. False Expression:
npm install -s @types/redis I think that’s it.
-
0
votes1
answer85
viewsA: http post error
You forgot to inject the Http. constructor(private http: Http) { } And then on your AppModule import { HttpModule } from '@angular/http'; ... imports:[ HttpModule, ], ...…
-
1
votes1
answer35
viewsA: Pseudo selectors css
ul > li:nth-child(4) the > will force you to be the direct son of ul
-
1
votes2
answers133
viewsA: Return div to previous style, after changing style, only with javascript
Using jQuery element.removeAttr('style'); element.removeAttr('placeholder'); I personally urge you to make the changes in a class as I show here on this jsfiddle With Native Javascript you can do…
javascriptanswered Tiago Bértolo 331 -
12
votes6
answers6260
viewsA: How to determine if a number is power 2?
Successively divide your x number by 2. If the rest is always 0 and you reach the quotient 1 is because x is a power of 2. Example: 8192/2 = 4096 4096/2 = 2048 2048/2 = 1024 1024/2 = 512 512/2 = 256…
-
1
votes1
answer130
viewsA: Display error in jquery mobile table
I put together a simplified fiddle with what you show and with your help I figured out what the problem is: fiddle link There seems to be an incompatibility between jquery and jquery mobile…
-
1
votes1
answer175
viewsA: Problem with Masonry’s jQuery library
Of the two: either reset jQuery (once again) or just define once. Here are at least 3 settings, improve this part: <script src="js/vendor/jquery-1.11.0.min.js"></script>…
-
1
votes2
answers3081
viewsA: How to allow cross-origin requests?
To deactivate the same origin policy try to start Chrome with the following flags: --disable-web-security --user-data-dir Source…