[Ur] Javascript toolkit integration
Hey folks, Just a quick question, how would one approach integrating some kind of a Javascript toolkit (e.g. http://dojotoolkit.org/) into Ur/Web? One could of course write the toolkit-specific code manually as it wouldn't clash with Ur, but that's not an optimal idea. To see what code one would have to insert for an e.g. dropdown widget, you could see: http://dojotoolkit.org/reference-guide/dijit/form/DropDownButton.html#dijit-form-dropdownbutton Click on View Example, and in the new window that pops up, there are JavaScript and HTML tabs respectively. This toolkit (and probably all others) also support some non-static behavior, such as dynamic ajax requests, events and some form of IO, which are additional things to consider. Thanks, -Davor ___ Ur mailing list Ur@impredicative.com http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
Re: [Ur] Javascript toolkit integration
On Sat, 11 Dec 2010 08:43:14 -0500 Adam Chlipala ad...@impredicative.com wrote: This toolkit (and probably all others) also support some non-static behavior, such as dynamic ajax requests, events and some form of IO, which are additional things to consider. One thing to keep in mind is that Ur/Web presents a novel alternate picture of how to program client-side applications. Many newcomers ask how they can access jQuery. From my understanding of that library, I think the question is misguided, since Ur/Web provides, out-of-the-box, alternate, better ways of doing the main things jQuery does. You might find that everything you're accustomed to needing to build up laboriously in JavaScript is actually trivial to do in the default Ur/Web client-side model. Let me ask a specific question: let's say you wanted to insert a date selection widget with functionality such as: http://dojotoolkit.org/reference-guide/dijit/form/DateTextBox.html#dijit-form-datetextbox (Click View example on that page, as usual). Would you code it yourself, or use a toolkit? ___ Ur mailing list Ur@impredicative.com http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
[Ur] Documentation codes
Hey folks, I've taken a look at the Ur/Web demos the other day and read a couple emails on the list. if anyone's worried about Ur/Web surviving or gaining wide-spread adoption, well, just fill in as much info/examples on the Wiki as you can, and add any usable code you might have, or link to your projects. For example, I'd be very interested in seeing what Marc did with the Ruby connector. Cya, Davor ___ Ur mailing list Ur@impredicative.com http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
Re: [Ur] Documentation codes
On Wed, 08 Dec 2010 16:23:43 +0100 Marc Weber marco-owe...@gmx.de wrote: Excerpts from Karn Kallio's message of Wed Dec 08 16:08:21 +0100 2010: http://www.impredicative.com/wiki/index.php/Using_Top.Fold_to_count_fields_of_a_record Great. Does it make sense to create a new page for each snippet? I'd start a ur-snippets page and add all of them to one page. Then you can even subscribe to changes - so you won't miss new ones. Even better: What about creating a snippet library? urweb eliminates dead code so collecting code at the begging could be interesting to all. Great. Plus, it offers a convenient way for anyone knowledgeable to go over the snippets and adjust/improve them to best-practice form so it's a benefit for posters and readers. We could even post snippets with description what we'd like done, and wait for someone to fill the solution in ;-) Cya, Davor ___ Ur mailing list Ur@impredicative.com http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
Re: [Ur] Documentation codes
On Wed, 08 Dec 2010 16:54:53 +0100 Marc Weber marco-owe...@gmx.de wrote: Excerpts from Davor Ocelic's message of Wed Dec 08 16:31:45 +0100 2010: We could even post snippets with description what we'd like done, and wait for someone to fill the solution in ;-) which vcs ? I'd suggest one of fossil, git, mercurial, bazaar, monotone I think its very important that everybody can push without asking. I know about github and gitorious (git hosting services) which let you add collaborators easily. A git gist could do the job as well - however I don't know how long they live. fossil is great because it includes a wiki and a bug tracker. So you could eventually also add tutorials (?) and read them offline. Any preferences? I thought you meant the snippet library on the Wiki, so everyone with wiki write access can edit it. But any other means wouldn't hurt either... git repos (and probably all others) can easily be browsed from the web. Davor ___ Ur mailing list Ur@impredicative.com http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
[Ur] Vim plugin
Marc, could you give just brief clarification how to enable the Vim plugin? I am looking at the README on https://github.com/MarcWeber/vim-addon-urweb and see notes about ctags and vimrc config files, but don't understand where do I have to actually git clone the files and what to run, before moving onto hooking them into config files. Thanks, -doc ___ Ur mailing list Ur@impredicative.com http://www.impredicative.com/cgi-bin/mailman/listinfo/ur