Digging into WebDriver today an interesting question popped up. How does WebDriver interact with browser?! Only thing I knew that it was using JNI to connect to native DLL’s.
Lloyd Hilaiel of Yahoo! BrowserPlus fame, has a little holiday gift for us. He has created a simple library called Orderly that "is a textual format for describing JSON. Orderly can be compiled into JSONSchema.
No doubt that Web2.0 is one of the best things that happened in our lifetime (besides the internet itself). When we mention Web2.0 first things that come into our minds are AJAX, rounded corners, clean and light layouts and of course RSS feeds.
In this article I would like to show how JSON (JavaScript Object Notation) and Java servlet can be used together in a little AJAX (Asynchronous JavaScript and XML) application.
Usually, i write software in ASP.NET/C#, because this is what my job requires, however i always lilke to play with other technology to keep myself up-to-date. I’ve been writing alot of Ajax enabled websites in ASP.NET recently, and have to say Microsoft have made it very easy to integrate with an ASP.NET Aplpication.
If we want to serve JSON data and want it to be cross-domain accessible we can implement JSONP. This means that if we have a Groovlet with JSON output and want users to be able to access it with an AJAX request from the web browser we must implment JSONP.
ColdFusion 8 (Scorpio) is right around the corner and for me, the greatest thing about this release is that there is nothing really big in it. The whole release is little stuff tailored to the developer – allowing us to better plug ColdFusion into virtually any scenario.
I am not sure if this is the fanciest way to get the job done but it works REALLY well. What job am I referring to? I am referring to outputting data as JSON in a CakePHP view and then parsing it in a jQuery AJAX response. Its fairly easy to accomplish with the JSON parser provided by json.org. Scroll to the bottom and download/include json2.js.
Getting an AutoComplete JavaScript widget to work with a server-side framework involves a few more steps and integration points than what it would take for e.g. a simple date-picker widget. It makes for an interesting example that shows off the strengths of Apache Wicket when it comes to creating custom components – especially when Ajax and integrating third-party JavaScript and CSS is involved.
An interesting piece by Neil Fraser shows that using JSON-P with generated script nodes can be quite a memory leak. Normally you'd add information returned from an API in JSON-P with a generated script node:
Ajaxlines is a project focused on providing its audience with a database of most of Ajax related articles, resources, tutorials and services from around the world.
Its purpose is to showcase the power of Ajax and to act as a portal to the Ajax development community.