Permalink
Switch branches/tags
Nothing to show
Commits on May 30, 2011
  1. added prettify.js

    pilif committed May 30, 2011
    we're going to use this for the nicer API demo to come
  2. add a real API

    pilif committed May 30, 2011
    while still a long way off the node.js file API, this shows how, with
    the tools available, we can make a nice JS-API that maps the somewhat
    ugly Java-Interface (why can't I pass around callbacks directly?) to a
    really nice JS one.
    
      var reader = new FileReader();
      reader.readFile('/etc/passwd', function(){
       // do stuff
      });
    
    you can't have it nicer
  3. allow invoker to set the name of the caller-marshaler

    pilif committed May 30, 2011
    window.caller seems way too risky for me, so let's just make this
    configurable
  4. increment version :-)

    pilif committed May 30, 2011
  5. work around a marshaling issue with webkit

    pilif committed May 30, 2011
    webkit somehow doesn't like an array passed in from java. I will have to
    investigate this one a bit, but for this proof of concept, one argument
    is fine
  6. reading any local file :-)

    pilif committed May 30, 2011
  7. initial readme file

    pilif committed May 30, 2011
  8. deploy to demo dir by default

    pilif committed May 30, 2011
  9. added little demo page

    pilif committed May 30, 2011
    demonstrating how the callback mechanism works using window.caller which
    gives us a configurable this-pointer. This isn't as good as a closure,
    unfortunately, but it has to do.
  10. proof-of concept callback handling

    pilif committed May 30, 2011
    I would have loved to get closures to work, but, alas, I don't. Live
    Connect was made in the pre-crockford days. But with a bit of magic
    (which, I guess, is a fitting tool for fighting zombies), I can still do
    it
  11. correctly configure classpath

    pilif committed May 30, 2011
  12. initial import

    pilif committed May 30, 2011