If you are using clojure on the backend, I'd look into
https://github.com/ibdknox/fetch , it really simplifies things.

It is possible to send compiled clojurescript data, though its harder
to get up and running with that, and if you are only sending data (as
opposed to functions) , it might not be worth it.


On Mon, Apr 23, 2012 at 10:34 PM, Brent Millare <brent.mill...@gmail.com> wrote:
> I have some dynamically generated data that needs to be sent to the
> clojurescript code running on the page. Now I know there already exists the
> URL which can have query data (accessed via (. js/window -location) but has
> the disadvantage of requiring to be read in by the reader), and
> goog.net.XhrIo (which has the disadvantage of requiring another request from
> the server and then parsing the string).
>
> I would like to evaluate other methods which may involve:
> -parsing hidden strings in the html code
> -compiling orĀ retrievingĀ from cache, javascript code generated from
> clojurescript serverside with the data literals in javascript form already,
> no parsing of clojurescript needed.
>
> Any thoughts, suggestions or advice?
>
> --
> 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

-- 
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

Reply via email to