mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
mneorr has quit [Ping timeout: 272 seconds]
e_dub has joined #opal
ryanstout has quit [Quit: ryanstout]
mneorr has joined #opal
e_dub has quit [Ping timeout: 276 seconds]
e_dub has joined #opal
ryanstout has joined #opal
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
marcandre has quit [Remote host closed the connection]
e_dub has quit [Ping timeout: 276 seconds]
e_dub has joined #opal
ryanstout has quit [Quit: ryanstout]
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
mneorr has quit [Ping timeout: 248 seconds]
DrShoggoth has quit [Ping timeout: 252 seconds]
DrShoggoth has joined #opal
DouweM has quit [Ping timeout: 272 seconds]
mneorr has joined #opal
mneorr has quit [Read error: Operation timed out]
e_dub has quit [Ping timeout: 245 seconds]
e_dub has joined #opal
e_dub has quit [Ping timeout: 276 seconds]
dfranciosi has joined #opal
mneorr has joined #opal
elia has joined #opal
elia has quit [Remote host closed the connection]
elia has joined #opal
mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
elia has quit [Quit: (IRC Client: textualapp.com)]
elia has joined #opal
mneorr has quit [Ping timeout: 248 seconds]
kludge` has quit [Ping timeout: 260 seconds]
kludge` has joined #opal
royvandermeij has joined #opal
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #opal
wmnnd has joined #opal
<wmnnd>
Hey there, I'm trying to get/set the state of an input[type=checkbox] with opal/opal-jquery. However, I'm not quite sure how to do that. This is what I have tried so far, but with no success: http://pastebin.com/D14psz61
DouweM has joined #opal
DouweM has quit [Ping timeout: 276 seconds]
<wmnnd>
Alright, checkboxes can wait, but how do I pass data to a request with HTTP.post?
<elia>
wmnnd, you sure the selector is right (just to sort out common errors)
<wmnnd>
Yes, I'm pretty sure. If I call remove, the checkbox vanishes.
<wmnnd>
Also, nevermind about the POST request, I figured that out by looking at the opal-jquery source :)
<adambeynon>
wmnnd: I have never tried to use checkboxes via opal-jquery, so it might be the case that it isnt implemented
<adambeynon>
or rather, the method hasnt been bridged from jquery
<adambeynon>
give me 10 mins and I will have a look
<wmnnd>
adambeynon: That would be awesome. However, I will be away for a little while now so no hurry in looking it up :)
<wmnnd>
Maybe, if it isn't bridget yet, it would be even nicer (or more rubyesque) if checkboxes would return true/false for their value, because that seems to me what they're really all about :)
wmnnd has quit [Quit: leaving]
<adambeynon>
wmnnd: yep. I want to make opal-jquery a lot more rubyeqsue
<adambeynon>
I dont like the element.html("foo") style
<adambeynon>
hmm, a bit late for that message perhaps..
<elia>
adambeynon, no worries, I'm still reading :P
meh` has joined #opal
dfranciosi has quit [Remote host closed the connection]
dfranciosi has joined #opal
<adambeynon>
:D
<elia>
adambeynon, you done anything on the sprockets side?
<elia>
adambeynon, I'd hate to overlap work
DrShoggoth has quit [Quit: Leaving]
DouweM has joined #opal
marcandre has joined #opal
DrShoggoth has joined #opal
fkchang has joined #opal
DrShoggoth has quit [Read error: Operation timed out]
DrShoggoth has joined #opal
mneorr has joined #opal
mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
mneorr has quit [Ping timeout: 272 seconds]
<adambeynon>
elia: sorry, completely missed those two notifications
<adambeynon>
I havent got any further than what was discussed
<adambeynon>
I think we could go down the route of handling a ruby require vs a normal sprockets require specially
<adambeynon>
elia: do you think it is a good idea to include a version of jquery.js inside opal-jquery
<adambeynon>
the demo code works well until I keep having to say "go download a version of jquery and add it into the load path"
<adambeynon>
Im thinking maybe an optional jquery.js version
<adambeynon>
require 'opal-jquery/jquery.js'
<elia>
adambeynon, I'd go with jquery-rails
<elia>
it's already bundled with rails and does just that
<adambeynon>
elia: problem is that it requires the whole rails stack
<elia>
ouch
<meh`>
in lissio
<meh`>
I minified marked.js, converted it to base64 and added it to the __END__
<elia>
classy
<elia>
adambeynon, yes I think it's ok to bundle under a namespace and tell rails ppl that they can use their own
<elia>
adambeynon, if you also vendor zepto that could be a good excuse to ask for an explicit require
ryanstout has joined #opal
mneorr has joined #opal
mneorr has quit [Remote host closed the connection]
mneorr has joined #opal
DouweM has quit [Ping timeout: 276 seconds]
mneorr has quit [Ping timeout: 246 seconds]
elia has quit [Read error: Connection reset by peer]
elia has joined #opal
elia has quit [Read error: Operation timed out]
mneorr has joined #opal
wmnnd has joined #opal
<wmnnd>
adambeynon: Your message was not too late, I read it in the log :-)
dfranciosi has quit [Remote host closed the connection]
mneorr has quit []
<dragonnkh>
evening
DouweM has joined #opal
mneorr has joined #opal
<wmnnd>
Hey there, I have yet another question: How do you use window.setInterval in Opal/opal-jquery? The $window element doesn't seem to support it and if you use `window.setInterval(Opal.$something, time)`, the called function will not work. It seems to get called but it tells me that self.$puts is not a function. When I call the function directly from Opal, everything works fine.
DouweM has quit [Ping timeout: 252 seconds]
kings has joined #opal
<kings>
I'm loving opal !!!
DouweM has joined #opal
kings has quit [Quit: Leaving...]
<fkchang>
wmnnd: u still having problems with that?
<wmnnd>
Yes.
<fkchang>
wmnnd: not exactly your issue, and possibly dated but I show how to wrap setInterval and have a block get called taht calls ruby. I hope it's not out of date, haven't tested it since, but it should give you ideas
<fkchang>
wmnnd: I also think it's wrapped elsewhere in opal now, maybe opal-browser
<wmnnd>
fkchang: Thank you, I'll take a look later :)
<fkchang>
wmnnd: ok, hope it helps
<fkchang>
ryanstout: do any clojure?
<ryanstout>
I've been learning it
<ryanstout>
but the syntax drives me crazy
<ryanstout>
I'm just not a lisp person, hehe
<fkchang>
I've been pointed to pedestal -- haven't checked it out yet, but I imagine lots of ideas to life
<fkchang>
s/life/slift
<fkchang>
lift
<ryanstout>
yea, I was checking out pedestal yesterday actually
<ryanstout>
similar ideas
<ryanstout>
fkchang: have you done much clojure?
<fkchang>
ryanstout: I haven't, but I actually did lisp early in my career, ages ago
<fkchang>
so in theory, I'm a real good fit, but never got around to spending any time w/it
<fkchang>
ryanstout: re: pedestal, this sentence from a friend describing pedastal seems to fit my desired philosophy "Pedestal is similar. You write your app, it seems to worry about what goes where. At least from the short time I played with it."
<ryanstout>
fkchang: not sure I follow
<fkchang>
I was talking about how meteor "blurs" front and backend, same code running on both sides, and that was the answer... but the idea of writing the code in 1 place and the framework knowing what to put where is the experience I believe I want to provide
<meh`>
wmnnd, $$.setInterval -> { whatever }, time
<ryanstout>
fkchang: yea, I'm going for something similar I think
<ryanstout>
though its nice with stuff like validations to just have it run on both sides
<ryanstout>
fkchang: so are you going to work on your own framework?
<fkchang>
ryanstout: If I can help it, I will contribute/extend someone elses
<ryanstout>
fkchang: I'm almost to the point on mine where I'll be needing some help :-)
<ryanstout>
fkchang: I need to do another video, its come a long way since last time
<fkchang>
ryanstout: then maybe that's the one. I have to admit I'm very partial to the components in lissio
<ryanstout>
mine's very componetized as well. I didn't show any of that in the last video
<fkchang>
and you saw my DSL from the other day, I think building that on top lissio, makes some sense
<ryanstout>
and I have all of the reactive stuff working :-)
<fkchang>
ryanstout: I'm certain win-over -able
<ryanstout>
fkchang: cool, I'll probably do another video tomorrow :-)
<fkchang>
ryanstout: that's cool, keep in mind, I'll want to build framework specific panes/editors into opal-inspector
<ryanstout>
yea, thats something I want to have in mine
<ryanstout>
fkchang: does lift do anything on the front end? I thought it was just a backend framework
<wmnnd>
meh`: Thanks, as always :-) I'll try it out tomorrow.
wmnnd has quit [Quit: wmnnd]
<fkchang>
ryanstout: I thought lift had front end support
<ryanstout>
fkchang: maybe, I haven't looked at it in a while
<fkchang>
though I don't think I want to go that direction, I got the impression that lift was super powerful, and thus correspondingly complicated, which is why TypeSafe went w/Play instead
<fkchang>
I'm looking for a top level DSL that is "easy enough for your kids to webapps"
<ryanstout>
seemed like Play was basically scala on rails
<ryanstout>
(or java)
<fkchang>
play started out that way, then diverged