harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Javascript + DOM in your ruby, the simple way

Results 5 harmony issues
Sort by recently updated
recently updated
newest added

Removing window.load, this patch will make harmony works properly with rails 3. see this pastie for more information: http://pastie.org/private/o6sri73teazpf3dv3eq

irb(main):008:0> p = Harmony::Page.fetch('http://www.ebay.com') WARNIING: [Mon Aug 30 2010 18:18:25 GMT+0200 (CET)] {ENVJS} Exception while loading window: ReferenceError: $w is not defined Johnson::Error: $w is not defined from /usr/local/lib/ruby/gems/1.8/gems/envjs-0.3.7/lib/envjs/static.js:22590 [JavaScript]...

``` require 'rubygems' require 'harmony' h = Harmony::Page.new h.load 'http://ajax.googleapis.com/ajax/libs/mootools/1.2.4/mootools.js' ``` Gives me: ``` Johnson::Error: object.prototype is undefined at top level in untitled document at line 43 at top level...

I am getting this error when I run this code http://gist.github.com/581742: ruby-1.8.7-p299 > p.execute_js("document.write('foo');") Johnson::Error: this$static.charBuffer is null from /Users/bsiggelkow/.rvm/gems/ruby-1.8.7-p299/gems/envjs-0.3.7/lib/envjs/static.js:13258:in `$accumulateCharacters' [JavaScript]

We are using Harmony for our unit test and it is awesome! Thanks. Unfortunately, after adding our last unit test file, our entire suite started failing with 'spidermonkey ran out...