calling webservices from mootools, jquery or dojo

Posted by Nikolaus Gradwohl Sun, 24 Jan 2010 15:44:44 GMT

I wrote a small webservie using java6 and jax-ws. Then i wrote clients for the webservice using some some popular javascript frameworks. I used mootools, jquery and dojo for writing the clients.

I tried to use the same simple form for all the three clients to make them comparable. I also used no libraries besides the core framework classes.

click here to download the sourcecode of the clients and the java-service

Read more...

Tags , , , , ,  | 1 comment

Tweet This! submit to reddit Digg!

processing.js in dashboard widget

Posted by Nikolaus Gradwohl Tue, 07 Apr 2009 03:45:00 GMT

I managed to get processing.js - a javascript based processing clone - to run in an apple dashboard widget.

processing.js widget

Read more...

Tags , ,  | 2 comments | no trackbacks

Tweet This! submit to reddit Digg!

JavaScript CalDAV-Frontend

Posted by Nikolaus Gradwohl Sun, 29 Mar 2009 10:39:00 GMT

I just wrote a realy simple and small frontend for caldav calender (~700 lines of code including html) using the mootools framework it supports multiple calendar and displays a read-only week-view.

i'm using it with a DAViCal server

to install it, simply download the package, unpack it on your caldav server and enter the caldav urls of your calender in the config.js file.

thats it

have fun :-)

UPDATE: the code is released under the MIT License, but it would be nice if you link to my blog if you include it in your project :-)

Tags ,  | 4 comments | 1 trackback

Tweet This! submit to reddit Digg!

Linedemo in processing.js

Posted by Nikolaus Gradwohl Mon, 20 Oct 2008 17:47:14 GMT

Todays usless processing-sketch is written in a processing dialect written in java-script. The demo shows a rotating line and uses the canvas element. So if you can't see anything try another browser.

Tags ,  | no comments

Tweet This! submit to reddit Digg!

automatic proxy configuration in firefox

Posted by Nikolaus Gradwohl Sat, 03 Nov 2007 14:43:00 GMT

In an erlier article i describe how to switch between the network environments i am using, but there was one programm i could not convince to let me change the proxy settings via apple script - firefox.

i still needet to switch the firefox settings per hand - something i didnt like at all.

one day the little "fetch proxy settings for url" dialog part from the firefox proxysettigns made me courious and i found out, that firefox expects a javascript file on this url, which tells firefox what proxy to use.

function FindProxyForURL(url, host) {
    if ( dnsResolve( host ) == "127.0.0.1" ) {
        return "DIRECT";
    } else {
        return "PROXY proxyhost:8080";
    }
}

this script can use some predefined functions like "isInNet" or "dnsResolve" to determine which network Im in and use the appropriate proxy. the file doesnt even have to live on a http server, a file:// url is sufficient.

e voila - no more manual proxy switching

Tags , ,  | 1 comment

Tweet This! submit to reddit Digg!