*** replaceafill has joined #schooltool | 00:48 | |
*** alga has quit IRC | 01:44 | |
*** replaceafill has quit IRC | 02:11 | |
*** th1a has quit IRC | 03:02 | |
*** aks has joined #schooltool | 06:11 | |
*** aks has joined #schooltool | 06:11 | |
*** povbot has joined #schooltool | 07:22 | |
*** menesis has joined #schooltool | 08:31 | |
*** alga has joined #schooltool | 10:23 | |
*** alga has quit IRC | 10:45 | |
*** Lumiere has quit IRC | 10:53 | |
*** Lumiere has joined #schooltool | 10:54 | |
*** menesis has quit IRC | 11:28 | |
*** menesis has joined #schooltool | 11:29 | |
*** menesis has quit IRC | 11:35 | |
*** alga has joined #schooltool | 11:45 | |
*** menesis has joined #schooltool | 13:58 | |
*** menesis has quit IRC | 14:08 | |
*** aks has quit IRC | 14:20 | |
*** menesis has joined #schooltool | 14:24 | |
*** th1a has joined #schooltool | 15:09 | |
*** yvl has quit IRC | 15:11 | |
*** alga has quit IRC | 17:15 | |
*** replaceafill has joined #schooltool | 17:52 | |
th1a | replaceafill: I need your invoice. | 17:56 |
---|---|---|
replaceafill | th1a ah yes, i'm going to the mall to scan my receipts | 17:57 |
th1a | Do you plug your laptop into a display model? | 17:57 |
replaceafill | no, i use their multifunctional scanner | 17:58 |
th1a | I was joking. ;-) | 17:58 |
replaceafill | :P | 17:58 |
th1a | Did you get any jquery fun in yesterday? | 17:58 |
th1a | We're all going to be very curious about this... | 17:58 |
replaceafill | yes, i read the docs for the modal stuff | 17:59 |
replaceafill | today i'm going to try to do what yvl suggested yesterday | 17:59 |
replaceafill | having a button that creates the form | 17:59 |
th1a | You could just do like "Add group" or something. | 18:00 |
replaceafill | yes, something simple to start | 18:00 |
th1a | See any gotchas? | 18:06 |
replaceafill | my only question is: should we load the form in the same page or call another page that returns the forms body | 18:07 |
replaceafill | usually the form is hidden in the page | 18:07 |
th1a | Yeah, I'd do that. | 18:07 |
replaceafill | when you click the button, it shows | 18:07 |
th1a | It is simpler, right? | 18:08 |
th1a | Just potentially a bit slower. | 18:08 |
replaceafill | but we could also use ajaxy methods to retrieve content | 18:08 |
replaceafill | but yes, the hidden form is easier | 18:08 |
th1a | Let's go with easier, definitely. | 18:11 |
th1a | No premature optimization. | 18:11 |
replaceafill | right | 18:11 |
replaceafill | menesis are you around? | 18:20 |
* replaceafill needs to install natty... | 18:20 | |
replaceafill | th1a are you running natty? | 18:37 |
th1a | replaceafill: Yes. | 20:18 |
replaceafill | ah, never mind, i wanted to know the version of the natty package for jquery-ui, but i found it: http://packages.ubuntu.com/natty/libjs-jquery-ui | 20:18 |
replaceafill | th1a zyt? | 20:59 |
replaceafill | http://69.164.203.135:7080/schoolyears/2011/groups | 20:59 |
th1a | ahoy replaceafill. | 21:09 |
replaceafill | click New Group | 21:09 |
th1a | Nice! | 21:10 |
th1a | So... thoughts on the process? | 21:10 |
replaceafill | 1. validation | 21:10 |
replaceafill | client side/server side | 21:10 |
replaceafill | client side: hightligth stuff, etc | 21:11 |
th1a | We don't reall do client side at all now, right? | 21:11 |
replaceafill | the gradebook a little, i guess | 21:11 |
th1a | But not in general. | 21:11 |
replaceafill | no | 21:11 |
th1a | So this actually makes that easier? | 21:11 |
replaceafill | i think we need to define a general way to do it | 21:12 |
replaceafill | what i've done is still a hacky solution | 21:12 |
replaceafill | 2. translations | 21:12 |
th1a | back to 1. | 21:12 |
replaceafill | ah ok | 21:12 |
th1a | Do we NEED better client side validation for this to work? | 21:12 |
th1a | Or does it just suggest also improving client side validation? | 21:13 |
replaceafill | click on New Group and not enter a title | 21:13 |
replaceafill | and hit Add | 21:13 |
th1a | That's client side. | 21:14 |
replaceafill | *that* is javascript | 21:14 |
replaceafill | yes | 21:14 |
th1a | Otherwise, I'd get a new page with an error message? | 21:14 |
th1a | Or, you'd need to write a whole error view. | 21:14 |
th1a | Or something nasty. | 21:14 |
th1a | It would be worse than just keeping the old way. | 21:15 |
th1a | ? | 21:15 |
replaceafill | what i'd like to do is what yvl said | 21:15 |
replaceafill | our current forms | 21:15 |
replaceafill | but taking only the <form></form> part | 21:15 |
replaceafill | and letting the form to render | 21:16 |
th1a | Hm. OK, I see. | 21:16 |
th1a | Would that be loaded via ajax? | 21:16 |
replaceafill | yes, well, jquery provides a .load() method that you can use like: | 21:16 |
replaceafill | $('somediv').load('+/addGroup.html') | 21:17 |
replaceafill | and you can specify ids and parts | 21:17 |
replaceafill | like '#content-body form' | 21:17 |
th1a | Ah. | 21:17 |
th1a | So then our "old" server side validation would be usable. | 21:18 |
replaceafill | yes | 21:18 |
replaceafill | but we have to sync stuff like the form label and button labels | 21:19 |
th1a | OK. So that's really probably an easier path. | 21:19 |
th1a | Is that dialog generated by the interface or just hardcoded? | 21:20 |
th1a | your group prototype. | 21:20 |
replaceafill | the form is hardcoded in the template | 21:20 |
th1a | Eventually it should be generated from the interface, right? | 21:20 |
th1a | Like the other forms? | 21:20 |
replaceafill | http://pastebin.com/4Mx4JjJm | 21:21 |
th1a | Well... unless we just use the same forms, I guess. | 21:21 |
replaceafill | if the form uses z3c.form we can create a new view, use the same class and just a different template that spits <form></form> | 21:22 |
th1a | OK. | 21:22 |
replaceafill | in this case, the group add form uses zope.app.form | 21:22 |
th1a | This doesn't seem too deadly. | 21:22 |
replaceafill | i'm here to experiment, right? :P | 21:22 |
th1a | Yes. | 21:23 |
th1a | I'm not criticizing. | 21:23 |
replaceafill | will try to do that: z3c stuff | 21:23 |
replaceafill | just to compare | 21:23 |
th1a | Yes. | 21:23 |
th1a | So what about adding straight confirmations? | 21:24 |
th1a | Is that easy? | 21:24 |
replaceafill | same deal, all the dialogs use the same api, being just popups, confirmation, forms, etc | 21:24 |
replaceafill | i mean, same jquery ui api | 21:24 |
replaceafill | you just define different parameters when you call $('...').dialog() | 21:25 |
th1a | I guess in some cases we'll have to decide if we're going to completely eliminate the "standard" version of the dialog. | 21:29 |
th1a | Oooh... jquery wizard plugins... shiny... | 21:30 |
replaceafill | :| | 21:30 |
th1a | Must resist... | 21:30 |
replaceafill | :)) | 21:30 |
replaceafill | we're not going to replace big form with this idea, right? | 21:31 |
replaceafill | like the add form for persons? | 21:31 |
*** menesis has quit IRC | 21:31 | |
th1a | Probably not add persons. | 21:54 |
* th1a was just talking to welsh. | 21:54 | |
replaceafill | :) | 21:54 |
replaceafill | i hope we get rid of old zcml directives <addform> <editform> <menuItem> for the next release | 21:55 |
replaceafill | hhmmm http://docs.jquery.com/Plugins/Validation | 22:22 |
* replaceafill goes to scan his receipts | 23:03 | |
*** replaceafill has quit IRC | 23:04 | |
*** alga has joined #schooltool | 23:19 | |
*** jelkner has joined #schooltool | 23:49 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!