12, Tuesday f, 2010 - 3:13 am
Tags: debug, iphone, javascript, phonegap
Posted in phonegap | 2 comments
When I started to play whit PhoneGap, my greatest issue was: “how can I debug my code?”, I use often tools such FireBug and JavaScript debugger included in Internet Explorer 8 (which is the first good thing IE has to offers!) but write and test my code on iPhone simulator is completely different. Fortunately PhoneGap [...]
2, Saturday f, 2010 - 9:55 am
Tags: css, javascript, jqtouch
Posted in css | 2 comments
In these days I’m developing my first iPhone application, using frameworks like PhoneGap and jQTouch. This aims to be a powerful app, not a mere widget, so I’m writing a lot of code and I’m using several libraries and components in order to create a really native-like application.
Unfortunately, due to a bad CSS approach, I [...]
31, Thursday f, 2009 - 4:02 am
Tags: bug, closure, javascript
Posted in google closure | No comments
While I love Closure tools and the possibility to write a better organized and OOP based JavaScript, I’m facing some weakness and inexplicable choices in the library. The last discover is that is impossible to make synchronous ajax call using the provided classes, since I didn’t find nothing about synch/asynch options by reading API reference, [...]
27, Sunday f, 2009 - 7:26 am
Tags: browser, javascript
Posted in browsers | No comments
This is just a quick post to share my misadventure with Safari and the “private
browsing” mode. I’m working on a small JavaScript library which has the goal to abstract SQLite database api and allow users to create table, insert, update and delete
records easily… my code seems to work very well, but this morning during [...]
16, Wednesday f, 2009 - 9:20 am
Tags: eclipse, extensions, javascript
Posted in javascript | No comments
I was wondering how to wrap a string with quotes in Eclipse by using a shortcut, then I realized that there is not such command, so I started thinking for a solution and initially I created an Aptana’s snippet, but I was not satisfied, because I want to have an handy shortcut to invoke my [...]
1, Tuesday f, 2009 - 8:38 am
Tags: closure, javascript, oop
Posted in google closure | 2 comments
I will repeat it until the dead, the real power of Goolge Closure is the mechanism and the tools behind it, not the classes and methods written for you, but the possibility to write your own better JavaScript code! Today I’m gonna show you how to create and use your custom JavaScript classes and to [...]
26, Thursday f, 2009 - 3:54 am
Tags: javascript
Posted in google closure | No comments
By using Closure’s NumberFormat class (located under goog.i18n package) is relatively easy to format numbers and print readable strings. All we have to import is goog.i18n.NumberFormat:
123<script type="text/javascript">
goog.require("goog.i18n.NumberFormat");
</script>
Then, we have to create an instance of that class and specify the type of format to apply, by choosing among: CURRENCY, DECIMAL, SCIENTIFIC and PERCENT. Assuming [...]
23, Monday f, 2009 - 3:06 pm
Tags: ant, closure, javascript
Posted in google closure | No comments
As I said on insideRIA, the power of Google Closure is represented by the additional tools provided by Google: the Java compiler (which compress and optimize your javascript files) and the python script (which calculates dependencies). This tools however are not so user friendly, because you have to rely on the terminal and invoke them [...]
17, Tuesday f, 2009 - 8:10 am
Tags: ajax, javascript, xhr
Posted in google closure | 1 comment
Closure has a consistent package called goog.net, which contains a lot of classes to work with ajax and remote http requests. In this post I want to show how to create a basic xhr object to make get/post calls, listen for related ajax events and send data to server. Once imported the main js file [...]
16, Monday f, 2009 - 4:08 pm
Tags: closure, google, javascript
Posted in google closure | 2 comments
Hi everyone,
by starting with this post I would like to begin a series of posts dedicated to the new javascript library released by Google: Closure!
Today I will focus my attention on tabs creation, since this is maybe the most common user interface component in a web application.
In order to create Closure tabs, we need to [...]