Posts by fernandodelrio • 361 points
6 posts
-
7
votes2
answers363
viewsA: Error in Javascript code
It is not considered an error for some reasons. The point does not indicate that the method will be called, because for the call of a function the parentheses are mandatory. Otherwise you are just…
-
4
votes1
answer291
viewsA: How to apply ! Important to a property with multiple values
I believe the right thing to do: background-attachment: fixed, fixed !important; Although it’s not bringing the result you expect, this rule in the class overrides the rule set to the ID. However,…
-
1
votes2
answers365
viewsA: Cordova battery API does not work
You need to wait for the event deviceready from Cordova. Try as follows: document.addEventListener("deviceready", onDeviceReady, false); // Cordova is loaded and it is now safe to make calls Cordova…
-
1
votes1
answer298
viewsA: Utilizar objeto entre as funções Javascript - Phonegap
The initialize causes app.db is null. You could do this on initialize: this.db = window.sqlitePlugin.openDatabase({name:'4routes'}); It seems that with this SQLitePlugin you need to call the…
-
2
votes1
answer105
viewsA: How do you implement a "Preprocessor" Annotation?
What happens is that Lombok uses a mechanism known as APT (Annotation Processing Tool). With this it is possible that the getters and Setter are still generated at compile time. An interesting link…
-
5
votes1
answer189
viewsA: Problems with Phonegap and HTML5 Storage
To get the number of returned elements in the query use: res.rows.length Instead of : res.rows.item.length It is also worth remembering that the following line is trying to access the element in…