fluid-work IRC Logs-2008-08-08

[09:10:39 EDT(-0400)] * Bosmon (n=Antranig@ginger.caret.cam.ac.uk) has joined #fluid-work
[09:10:44 EDT(-0400)] <Bosmon> ping
[09:42:52 EDT(-0400)] <jacobfarber> just you and me?
[09:47:03 EDT(-0400)] <Bosmon> Looks like it
[09:47:11 EDT(-0400)] <Bosmon> Just you, me and the Reorderer....
[09:47:14 EDT(-0400)] <Bosmon> It is a scary room
[09:47:24 EDT(-0400)] <Bosmon> If you can pin one of its arms I will chuck a brick at it
[10:05:45 EDT(-0400)] <jacobfarber> bosom: now that would just be mean....what did the forum ever do to you?
[10:08:53 EDT(-0400)] * theclown (n=theclown@guiseppi.atrc.utoronto.ca) has joined #fluid-work
[10:13:36 EDT(-0400)] <Bosmon> I meant the Reorderer (tongue)
[10:23:52 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined #fluid-work
[11:15:39 EDT(-0400)] * anastasiac (n=team@142.150.154.160) has joined #fluid-work
[11:27:42 EDT(-0400)] <Bosmon> Hmm
[11:27:56 EDT(-0400)] <Bosmon> I think our use of JQuery UI DnD is still crap....
[11:28:09 EDT(-0400)] <Bosmon> It is still eminently possible to find regions of perfectly plausible space where there seems to be no drop target
[11:28:33 EDT(-0400)] <Bosmon> I mean, at least the drop target now coincides with something that will actually happen, but I think it is still not correct....
[11:39:11 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined #fluid-work
[11:45:22 EDT(-0400)] * michelled_ (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined #fluid-work
[12:14:55 EDT(-0400)] * ecochran (n=ecochran@dhcp-169-229-212-74.LIPS.Berkeley.EDU) has joined #fluid-work
[13:02:49 EDT(-0400)] <Bosmon> Blarts
[13:02:56 EDT(-0400)] <Bosmon> We simply get no mouseup event if it occurs outside the browser...
[15:12:56 EDT(-0400)] <jacobfarber> could anyone do me a little favour?
[15:13:01 EDT(-0400)] <jacobfarber> runa simple test
[15:13:46 EDT(-0400)] <theclown> jacobfarber: I could in about 5 minutes...
[15:14:14 EDT(-0400)] <jacobfarber> ok, just a jQuery thing
[15:14:50 EDT(-0400)] <jacobfarber> when you have a chance, can you please run 2 different jQuery selectors:
[15:15:14 EDT(-0400)] <jacobfarber> actually
[15:15:30 EDT(-0400)] <jacobfarber> I will share it in an email on the list....too much to type here
[15:18:46 EDT(-0400)] * theclown looking for an email from jacobfarber
[15:19:32 EDT(-0400)] <jacobfarber> theclown: sent
[15:19:37 EDT(-0400)] <jacobfarber> thanks a bunch
[15:22:37 EDT(-0400)] <theclown> jacobfarber, not seeing it. Is it the fluid-work mailing list?
[15:22:57 EDT(-0400)] <jacobfarber> should be
[15:23:14 EDT(-0400)] <theclown> ok, maybe the list manager is taking its time.
[15:23:31 EDT(-0400)] <jacobfarber> antranig just responded to it....
[15:24:54 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has joined #fluid-work
[15:28:42 EDT(-0400)] * theclown has finally received it (jacobfarber's jquery test thing, that is)
[15:29:07 EDT(-0400)] <jacobfarber> the second selector should read ".columnSetup > div"
[15:33:54 EDT(-0400)] * michelled (n=michelle@CPE001310472ade-CM0011aefd3ca8.cpe.net.cable.rogers.com) has left #fluid-work
[15:41:18 EDT(-0400)] * Bosmon (n=Antranig@ginger.caret.cam.ac.uk) has joined #fluid-work
[15:47:15 EDT(-0400)] <theclown> jacobfarber, I through this together (http://clown.atrc.utoronto.ca/Fluid/jQueryJacobTest.html). Seems to give the same result for both selectors
[15:47:31 EDT(-0400)] <theclown> s/throught/threw/
[15:47:38 EDT(-0400)] <theclown> can't type....
[15:47:45 EDT(-0400)] <anastasiac> ah, but you can sed
[15:47:55 EDT(-0400)] <theclown> not really...
[15:48:23 EDT(-0400)] * phiggins (n=dante@c-68-34-199-67.hsd1.tn.comcast.net) has joined #fluid-work
[15:48:23 EDT(-0400)] <theclown> s/throught/through/ pipe to s/through/threw/ ?
[15:48:35 EDT(-0400)] <jacobfarber> hold on, antranig showed me the Pastie site
[15:48:51 EDT(-0400)] <jacobfarber> I will post my sample there
[15:48:54 EDT(-0400)] <theclown> sounds lewd.
[15:49:42 EDT(-0400)] <jacobfarber> http://pastie.org/250168
[15:50:14 EDT(-0400)] <jacobfarber> now, the problem is with Example #2
[15:51:08 EDT(-0400)] <jacobfarber> when you switch the selector for the columns
[15:51:17 EDT(-0400)] <jacobfarber> to the one thats commented out
[15:52:32 EDT(-0400)] <Bosmon> You're a lunatic
[15:52:41 EDT(-0400)] <Bosmon> YOu can't write code referring to stuff that is lower down in the DOM (tongue)
[15:53:25 EDT(-0400)] <jacobfarber> ????
[15:53:39 EDT(-0400)] <jacobfarber> document.ready() !
[15:53:52 EDT(-0400)] <Bosmon> gah
[15:55:18 EDT(-0400)] <jacobfarber> Bosmon:any glorious crashes yet?
[15:57:34 EDT(-0400)] <Bosmon> Sorry
[15:57:38 EDT(-0400)] <Bosmon> Was chatting to Dr. Chuck...
[16:08:52 EDT(-0400)] <Bosmon> You're right
[16:08:54 EDT(-0400)] <Bosmon> It is hard to explain
[16:09:04 EDT(-0400)] <Bosmon> I believe your ids are invalid by the XML spec
[16:09:08 EDT(-0400)] <Bosmon> But fixing that doesn't help
[16:09:54 EDT(-0400)] <jacobfarber> are you sure? I thought "-" was a valid lead character....
[16:12:10 EDT(-0400)] <jacobfarber> my mistake
[16:14:01 EDT(-0400)] <Bosmon> Also, I am somewhat surprised by your attempt to create a bare layout...
[16:14:10 EDT(-0400)] <jacobfarber> how so?
[16:15:16 EDT(-0400)] <jacobfarber> ok
[16:15:20 EDT(-0400)] <jacobfarber> so I think I found something
[16:15:34 EDT(-0400)] <jacobfarber> there were 2 ids with the same name (tongue)
[16:15:52 EDT(-0400)] <Bosmon> Yes
[16:15:55 EDT(-0400)] <Bosmon> I got rid of those long ago (tongue)
[16:15:58 EDT(-0400)] <jacobfarber> now that thats gone, theres no error....but there is no dnd for the second example either
[16:16:24 EDT(-0400)] <jacobfarber> I just needed to get rid of the error
[16:16:47 EDT(-0400)] <Bosmon> Well yes
[16:16:52 EDT(-0400)] <Bosmon> I mean, this configuration you have is not correct
[16:17:02 EDT(-0400)] <Bosmon> Since you haven't made any selector to choose the reorderable nodes
[16:17:35 EDT(-0400)] <jacobfarber> you mean the ".mySortable" ?
[16:17:45 EDT(-0400)] <Bosmon> Yes
[16:17:56 EDT(-0400)] <Bosmon> There is no dnd since nothing has been made "movable"
[16:18:10 EDT(-0400)] <Bosmon> So I get a failure on startup
[16:18:16 EDT(-0400)] <Bosmon> You may not be working with current trunk....
[16:18:27 EDT(-0400)] <jacobfarber> ...i think im not....
[16:18:31 EDT(-0400)] <jacobfarber> let me update
[16:18:31 EDT(-0400)] <Bosmon> ok
[16:19:17 EDT(-0400)] <jacobfarber> so how does this differ in the re-factored format?
[16:19:28 EDT(-0400)] <Bosmon> Well, there may be a fault in this: var selectors = fluid.moduleLayout.inferSelectors(layout, perms, userOptions.grabHandle);
[16:19:33 EDT(-0400)] <Bosmon> It seems to infer an empty set of selectors
[16:19:45 EDT(-0400)] <Bosmon> I'm not sure what migh thave come adrift
[16:19:50 EDT(-0400)] <Bosmon> But all the test cases pass (tongue)
[16:20:03 EDT(-0400)] <jacobfarber> strange, b/c the first example works fine
[16:20:14 EDT(-0400)] <Bosmon> Hmm
[16:20:18 EDT(-0400)] <Bosmon> There are no columns in the layout...
[16:20:38 EDT(-0400)] <jacobfarber> i thikn your misssing something
[16:20:46 EDT(-0400)] <jacobfarber> i ddint send you the css layout files
[16:20:50 EDT(-0400)] <Bosmon> ?!
[16:20:54 EDT(-0400)] <jacobfarber> so youre seeing the barebones markup
[16:20:58 EDT(-0400)] <jacobfarber> not the presentation part
[16:20:59 EDT(-0400)] <Bosmon> How should that matter
[16:21:06 EDT(-0400)] <Bosmon> There are no columns actually matched by the selector
[16:21:07 EDT(-0400)] <jacobfarber> columns
[16:21:13 EDT(-0400)] <jacobfarber> really?
[16:21:24 EDT(-0400)] <Bosmon> AHA
[16:21:25 EDT(-0400)] <jacobfarber> i get columns back when i run the query in the console
[16:21:26 EDT(-0400)] <Bosmon> I know why it is!
[16:21:32 EDT(-0400)] <jacobfarber> please share!
[16:21:42 EDT(-0400)] <Bosmon> The selector executes SCOPED TO THE CONTAINER
[16:21:51 EDT(-0400)] <Bosmon> Where the container IS the node marked .columnSetup2
[16:21:57 EDT(-0400)] <Bosmon> So.... within the container there is nothing of that name
[16:22:40 EDT(-0400)] <Bosmon> You have "broken off" the top part of the markup where the selector could match
[16:23:05 EDT(-0400)] <jacobfarber> so, within "#fluid-LayoutCustomizer-sample2" it isnt finsing "mySortable" ?
[16:23:13 EDT(-0400)] <jacobfarber> *finding
[16:23:16 EDT(-0400)] <Bosmon> No
[16:23:28 EDT(-0400)] <jacobfarber> even though....it should
[16:23:50 EDT(-0400)] <Bosmon> The issue is that within <div id="fluid-LayoutCustomizer-sample2" class="columnSetup2">
[16:24:04 EDT(-0400)] <Bosmon> You see, you have made the container identical with part of the thing you are trying to match
[16:24:11 EDT(-0400)] <Bosmon> The container is itself this node
[16:24:24 EDT(-0400)] <Bosmon> So the selector ".columnSetup2 > div" could not match
[16:24:36 EDT(-0400)] <Bosmon> There is nothing inside the container marked .columnSetup2
[16:24:40 EDT(-0400)] <Bosmon> Is this getting clearer? (tongue)
[16:24:50 EDT(-0400)] <jacobfarber> yes....
[16:24:58 EDT(-0400)] <jacobfarber> this is an issue, no?
[16:25:01 EDT(-0400)] <Bosmon> No
[16:25:02 EDT(-0400)] <jacobfarber> unless
[16:25:07 EDT(-0400)] <Bosmon> It is how scoped selectors work (tongue)
[16:25:18 EDT(-0400)] <Bosmon> jQuery "only sees" the portion of the document that is strictly within the container
[16:25:22 EDT(-0400)] <jacobfarber> but this scoping is relative to the first argument
[16:25:27 EDT(-0400)] <jacobfarber> in the init call
[16:25:36 EDT(-0400)] <Bosmon> Which init call
[16:25:46 EDT(-0400)] <jacobfarber> fluid.reorderLayout ("#fluid-LayoutCustomizer-sample2", {
[16:25:52 EDT(-0400)] <Bosmon> var columns = jQuery(layoutSelectors.columns, container);
[16:25:57 EDT(-0400)] <Bosmon> Here, this is how the columns are sought
[16:26:01 EDT(-0400)] <jacobfarber> i see
[16:26:11 EDT(-0400)] <Bosmon> And it is the only way it could be....
[16:26:14 EDT(-0400)] <jacobfarber> so the selector for the columns
[16:26:23 EDT(-0400)] <jacobfarber> should be scoped inside the container
[16:26:26 EDT(-0400)] <Bosmon> Yes, that is right
[16:26:33 EDT(-0400)] <Bosmon> We should explain this better on the "DOM binder" page....
[16:26:33 EDT(-0400)] <jacobfarber> ok, simple switch
[16:26:39 EDT(-0400)] <Bosmon> Although this thing is not actually uising the DOm binder
[16:26:45 EDT(-0400)] <Bosmon> But the DOM binder works just the same way....
[16:26:51 EDT(-0400)] <Bosmon> It is just how jQuery works
[16:27:22 EDT(-0400)] <jacobfarber> i can see how this works, but I think its problematic
[16:27:32 EDT(-0400)] <jacobfarber> b/c we're not allowing
[16:27:40 EDT(-0400)] <jacobfarber> the scope to start with the container
[16:28:02 EDT(-0400)] <jacobfarber> rather it seems I have to work at the ver least, one node deep inside it
[16:28:07 EDT(-0400)] <jacobfarber> *very
[16:28:28 EDT(-0400)] <jacobfarber> so I cant use something like
[16:28:41 EDT(-0400)] <jacobfarber> #fluid-LayoutCustomizer-sample2 .column
[16:29:12 EDT(-0400)] <jacobfarber> is this right?
[16:42:42 EDT(-0400)] * phiggins (n=dante@c-69-138-157-218.hsd1.tn.comcast.net) has joined #fluid-work
[16:55:49 EDT(-0400)] * phiggins_ (n=dante@c-69-138-157-218.hsd1.tn.comcast.net) has joined #fluid-work
[17:20:13 EDT(-0400)] * phiggins (n=dante@c-69-138-157-218.hsd1.tn.comcast.net) has joined #fluid-work
[18:04:48 EDT(-0400)] * theclown (n=theclown@guiseppi.atrc.utoronto.ca) has joined #fluid-work
[22:10:52 EDT(-0400)] * phiggins (n=dante@c-68-34-199-67.hsd1.tn.comcast.net) has joined #fluid-work