[Lift] Re: Problem with jQuery/JavaScript and Liftweb because of Doctype
, fbettag fr...@bett.ag mailto:fr...@bett.ag wrote: Hey guys, i've been having troubles with jQuery and Firefox/Safari due to the missing Doctype all night long: Uncaught exception: [Exception... Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML] nsresult: 0×80004003 (NS_ERROR_INVALID_POINTER) location: JS frame :: http://yourserver/include/jquery.js :: anonymous :: line 11″ data: no] The issue is described here, altho it kinda is somehow faulty xml on my part: http://fitzsimmons.ca/jquery-xhtml-11-strict-and-ns_error_invalid_poi . .. Is there any way to prepend a DocType? Searching the group didn't turn anything useful up. Best regards -- Lift, the simply functional web frameworkhttp://liftweb.net http://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 http://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net http://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 http://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Lift, the simply functional web frameworkhttp://liftweb.net http://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 http://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp -- Viktor Klang Scala Loudmouth -- Matt Williams Chief Platform Architect Managing Director Makeable Solutions Ltd m...@makeable.co.uk Web: www.makeable.co.uk Tel: 02920 007543 Mob: 07958 208482 This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Makeable Solutions Ltd. We cannot accept any liability for any loss or damage sustained as a result of software viruses. It is your responsibility to carry out such virus checking as is necessary before opening any attachment which may be included with this message. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Warnings for missing binds?
I'd like to see this - had a similar hour of headscratching myself this morning. I wouldn't be adverse to info logs on successful binds either. Derek Chen-Becker wrote: I just spent the better part of half a day trying to track down an issue with binding that ended up being a subtle typo. I'm thinking of adding in some logging (in dev mode) for the bind function to warn about unused bind elements and unused bind params, just to better help locate issues like this. Any objections? Derek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~--- begin:vcard fn:Matt Williams n:Williams;Matt org:Makeable Solutions Ltd adr;dom:;;113-116 Bute Street;Cardiff;;CF10 5EQ email;internet:m...@makeable.co.uk title:Chief Platform Architect tel;work:02920 007543 tel;cell:07958 208482 x-mozilla-html:FALSE url:http://www.makeable.co.uk version:2.1 end:vcard smime.p7s Description: S/MIME Cryptographic Signature
[Lift] Re: Lift and Goat Rodeo
This sounds very exciting David, please ensure to keep us posted on any developments. This notion of Q's - is this the method by which actors will be distributed (managed via zookeeper, i would assume)? Any reference materials you can point me to further whet my appetite? On Thu, 2009-06-18 at 00:19 -0700, David Pollak wrote: Folks, At the end of the Scala Lift Off, after I finished my third beer, Martin Odersky came over to me and asked, so, what's the future of Lift? I gave a hand-waving answer about the features for 1.1. But Martin is not a hand-waving kind of guy and I think I owe him and the other folks in the Scala and Lift communities more. There's a lot more that's necessary for web app development than Lift, an abstraction to the HTTP request/response cycle, can provide. Over the last couple of years, I've been noticing trends in web development, in the needs of my various consulting gigs, and in some other projects. It's clear to me that it's time for a unified data and data management model that goes beyond OR mapping and that is scalably transactional. I've put together a model that looks to the developer like STM but is backed with ZooKeeper and Cassandra. I've blogged about it at http://blog.lostlake.org/index.php?/archives/94-Lift,-Goat-Rodeo-and-Such.html Just as my web framework manifesto was the genesis of what has become Lift, I hope that my notions and ramblings in this blog post will become concrete, usable code over the next few months and a solid platform for building the next generation of web systems over the next few years... all built with Scala at their core. Thanks, David -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: BBCode2XHTML
Theres a textile package available in the repository. And its now 30x faster! :) On Thu, 2009-06-18 at 13:06 +0200, Viktor Klang wrote: Hi guys! I'm in dire need of an XSS-safe and generally harmless way of allowing end-users to add some markup to texts. In the spirit of re-use and lack of time, I wonder if any of you have any libraries to recommend that can transform a String maybe containing BBCode to the same string but with xhtml compliant markup. Googled it a bit and saw KefirBB and JavaBBCode but none of them seem lean enough (I mean, how much code does it need to transform a String??) So what's it gonna be guys, is there a saviour out there or will I need to pull out the Scala REPL? Cheers! -- Viktor Klang Scala Loudmouth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database
JIT development ;) In all serious though, its better to have a minimal set of features that work well and can be refactored effortlessly, than to define an entire API and have everything need to change in an updated release. And at the speed this particular fix went in, its hardly hindering progress! On Wed, 2009-06-17 at 08:45 -0700, Andrew Scherpbier wrote: Isn't this just the result of JIT development? Don't need something right now, don't implement it. If you need it later, refactor. I'm probably looking at this too much from a low level grunt developer. I understand that when developing a framework or anything with a public API these are important issues, but that's what bugtrackers are for! I'm all for composability, but it shouldn't be a religion :-) (-- please note the smiley!) --Andrew --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Trivially Set Mapper Scope
Is there a simple way that I can set the record scope on a mapper. For example, if I want to specify a WHERE clause for every query to the database, how would I do this? In my particular case, I want to set the scope based upon the hostname used to service the request, but other usages may involve soft record deletion, etc. Kind Regards, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Thoughts on separation of display from logic
I wholeheartedly agree with the philosophy of separating the display from the program logic, and am currently getting to grips with the generators, but am finding that now I end up with a degree of markup within my code. Can you think of any caveats to infering the node type passed, and dynamically using the relevant generators to construct the returned node. I am thinking something along the lines of: person:biography textarea style=myStyle cols=20 rows=5 This is a sample of some biography text /textarea /person:biography Where it would automatically infer that it is a textarea, pass through the relevant attributes, and insert whatever function, values, etc I have specified in my snippet. What are your thoughts on this? Brgds, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Lift + Javeline
Maybe an issue with the compressor? (although i dont see why that would just affect firefox) On Wed, 2009-06-17 at 14:00 -0700, marius d. wrote: Just 2.1 version ... we'll try that out. It's still a mystery because offline example works but wen putting it in lift fails only on FF. So far there is no indication that Lift is doing anything wrong. Br's, Marius On Jun 17, 4:14 pm, Matt Williams m...@makeable.co.uk wrote: Are you using the latest version from the repository? There were a few firefox fixes put in place a week or so ago. On Jun 17, 1:18 pm, Marius marius.dan...@gmail.com wrote: Hi all, We've been trying javeline (http://ajax.org/) with Lift and it's pretty needless to say how cool it is. It seems to work fine in Chrome, IE6/7, Safari but we're getting a strange JS error on FF3 only. Seehttp://scalaliftapp.appspot.com/example2... or FF3 we're getting this.oDrag is null JS error. Did anyone experience this before? Br's, Marius --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Sitemap Base URL
Im currently working on porting a CMS built in rails over to lift. Im finding the sitemap very handy for use in the administration area, which will be located at /admin/, but for the rest of the site, we will be using a dynamic navigation constructed from the database on a requested hostname basis. By using a sitemap, am I preventing the access to urls not defined within the sitemap? If so, how do I overcome this behaviour, or can I set the sitemap to only have scope to a baseuri of /admin/ Kind Regards, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: Trivially Set Mapper Scope
Thank you VERY much! Kind Regards, Matt On Wed, 2009-06-17 at 14:42 -0700, David Pollak wrote: User.addlQueryParams.set(By(User.firstname, david) :: User.addlQueryParams.is) It's a request var so it's set on a request by request basis. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: scalajpa - while accessing two distincts databases, the second access is made with a connection to the first database
i trust that all understood i was having good fun. The only thing I understood is that there are some people out there vastly more knowledgeable than myself! :D Brgds, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: directives versus snippets
There's a dispatcher in Lift and it checks for user-supplied snippets before dispatching to the hard-coded snippet names. Is this actually the case? I have tried to replace the buiiltin snippet for Msgs in order to embed a span within the list items, but I needed to use a different name for the class, as it was still rendering using the builtin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: directives versus snippets
Thank you David. Hello by the way, and thank you for such a graceful framework. Matt On Jun 4, 5:21 pm, David Pollak feeder.of.the.be...@gmail.com wrote: In order to override a built-in snippet, you must do: LiftRules.snippetDispatch.prepend{ case Msgs | msgs = } in Boot. The LiftRules snippet dispatch table is consulted first, before the by convention reflection-based snippet dispatching is invoked. This enhances performance. On Thu, Jun 4, 2009 at 8:14 AM, Matt Williams m...@makeable.co.uk wrote: There's a dispatcher in Lift and it checks for user-supplied snippets before dispatching to the hard-coded snippet names. Is this actually the case? I have tried to replace the buiiltin snippet for Msgs in order to embed a span within the list items, but I needed to use a different name for the class, as it was still rendering using the builtin. -- Lift, the simply functional web frameworkhttp://liftweb.net Beginning Scalahttp://www.apress.com/book/view/1430219890 Follow me:http://twitter.com/dpp Git some:http://github.com/dpp --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---