Hi, I'm brand new to ClojureScript and have been trying to get myself familiarized with it's javascript interop capabilities by implementing the Dojo toolkit tutorials. I've successfully implemented several of the tutorials, but now I've run into something that I can't figure out and am looking for someone to point me in the right direction.
I am calling the DGrid(Dojo grid) constructor using the function maingrid (ns couchadmin.core (:use [jayq.util :only [clj->js]]) (:require [clojure.browser.repl :as repl])) (defn greet [dom fx] (let [element (.byId dom "greetingcljs")] (set! (. element -innerHTML) "Hello from Dojo using ClojureScript") (.play (.slideTo fx (clj->js {:top 200 :left 200 :node element}))))) (defn maingrid [dom grd] (do (grd. (clj->js {:columns (clj->js {:first "First Name"})}) "grid") (js/alert "hello world"))) (defn ^:export main [] (comment (repl/connect "http://localhost:9000/repl")) (comment (js/require (array "dojo/dom" "dojo/fx" "dojo/domReady!") greet)) (js/require (array "dojo/dom" "dgrid/Grid" "dojo/domReady!") maingrid)) When the page is loaded the grid is constructed, but afterwards I see the following javascript exception Uncaught Error: No protocol method ILookup.-lookup defined for type object: [object HTMLDivElement] I'm wondering what this message is indicating. Did I call the constructor incorrectly? Is this an incompatibility with Dojo? Do I need to implement ILookup somehow? Any help would be greatly appreciated. Brian -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en