Can't seem to get it to work. Have tried posting to a .Net Mvc 4 action, and a Ruby/Rails action. Have had no success at all. It attempts and then just throws an exception:
"SYNTAX_ERR: DOM Exception 12" "Error: An invalid or illegal string was specified." Problem is, that doesn't really help much. I've tried creating an object from form data manually. Tried using cloSure to create the needed form data. Tried serializing both. ect. Really new to clojurescript and cloSure, so I'm hoping it's something really simple. Just can't find any examples that work that don't involve a clojure based framework. (defn get-form-action [formName] (let [form (dom/$ formName)] form/action)) (defn callback [reply] (js/alert reply)) (defn ajax-json [formName] (let [action (str (get-form-action formName) ".json") formData (.toObject (.getFormDataMap goog.dom.forms (dom/$ formName))) serialized (goog.json.serialize formData)] (.send goog.net.XhrIo action callback 'POST' serialized ))) -- 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