Clojurians
#hoplon
<
2016-03-02
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

alandipert00:03:47

@numberq: hm that's odd. are you able to share your server-side code?

alandipert00:03:21

@numberq: ajax is just the buzzword for the function browsers expose in the JS environment that allows one to asynchronosly send an http request to the server

numberq00:03:51

@alandipert:

alandipert00:03:40

i think you may need to supply wrap-castra with the namespace you want to expose

alandipert00:03:52

eg (wrap-castra app-routes 'my-project.handler)

alandipert00:03:06

i'm not certain this is the reason for your problem though

numberq00:03:06

Hmm, well that certainly seems like a step in the right direction. I'm not currently at a computer I can develop on, but I'll try adding the namespace when I get a chance.

alandipert00:03:29

cool, lemme know how it goes

numberq00:03:38

Sure, and thanks for the help!

alandipert00:03:22

albeit an incomplete one

alandipert00:03:42

it does demonstrate github oauth + castra backed by datomic, though

numberq00:03:56

That looks really useful, I'll see if that helps. Thanks! :)

alandipert00:03:14

surely. happy computing :computer:

numberq00:03:59

Ah, datomic - we ended up dropping that in favor of postgresql since we couldn't get it to work. Maybe your example will help with that too :P

levitanong05:03:04

So i’m trying to make a “layer” element suitable for dropdowns and popovers. This element/function takes a test and a tpl. It watches test, and appends or removes tpl to and from document.body. The layer element itself returns nil. The tpl positions itself based on the parent of the layer element. Is the append-child! function meant for this use? I’m looking at the source and this might be it, but neither jQuery nor (.getElementById js/document) yields any Node or Element that seems to be capable of using append-child!

levitanong05:03:39

Oh wait, it actually worked! Silly me. I was working on the wrong file :stuck_out_tongue: