XML is like violence – if it doesn’t solve your problem, you’re probably not using enough of it.
Titanium Desktop (0.7.0)
Titanium Mobile (0.7.1)
via kwhinnery/Suds – GitHub.
Looking for a simple way to convert XML to JSON Object?
Cross-domain Ajax requests
MARCH 11, 2011
Before you get any hopes (or worries), the following is just a technique that comes handy for development, not for production.
I’m developing a PhoneGap app with Sencha Touch. The app needs to do a few Ajax POST requests to a different domain. You can do that without problems from your PhoneGap app.
Though, the development environment of choice for a Sencha Touch developer is the browser. Browsers don’t let you do that, at least not by default. (You can do cross-domain GET requests easily via JSONP.)
By default, the browser, WebKit in this case, returns the following error: XMLHttpRequest cannot load URL. Origin http://localhost is not allowed by Access-Control-Allow-Origin.
Though, you can easily disable that security policy by opening the browser with –disable-web-security.
So, if you’re using Google Chrome on a Mac for development, run the following in the Terminal:
open /Applications/Google Chrome.app –args –disable-web-security
via Cross-domain Ajax requests – Sencha Touch Bits.
YUI 3 — Yahoo! User Interface Library
via YUI 3 — Yahoo! User Interface Library.
If you pass argumentCollection=data to a CFC method (or any UDF), then ColdFusion acts as if you had passed arguments name, age, and coolness. As I said above, this isn’t new at all, but I’ve never seen it used with an AJAX post like this. What’s nice then is that on the server side, you can have a “proper” method without any if/else statement to see if the result was JSON. As a quick example, here is an updated version of the front end code based on the previous example. I went ahead and added jquery-json to the template to further simplify things.
via Raymond Camden’s ColdFusion Blog: Using argumentCollection with AJAX calls to ColdFusion Components.
Awesome tip and as usual a complete and yet concise example of how to use it.
Google rolls out new developer tools – CNN.com.
SproutCore Blog – SproutCore 1.0 is Done!. I have been watching this one and you may want to also. I think it will be a future arrow in the quiver.
Here is the link for the demo examples. Don’t quite get the iPhone demo though, from web or iPhone?
Nice table comparing developer features of various current browsers with ratings of usefulness. Nice job.
Elegant Code » FireFox+Firebug vs IE8 Developer Toolbar.