Re: [Lift] How to execute client-side js from ajax callback?

2009-11-18 Thread Eros Candelaresi
Hi, I ran into the same problem. The Alert case class takes only a string. |case class Alert(val text : String http://java.sun.com/javase/6/docs/api/java/lang/String.html)| | |I.e. the result of getWidth is quoted such that it remains a plain string when it is evaluated on client side. Best

Re: [Lift] Re: How to execute client-side js from ajax callback?

2009-11-18 Thread Eros Candelaresi
Hi, as a rule of thumb: when the Lift class expects a String as parameter, this will also be a String on JavaScript side. Alert expects a String, so it does not matter if the string is Hello World!, getAvailableWidth() or anything else. By the time it reaches the client, Lift has already made

Re: [Lift] Re: Where are the dragons hiding?

2009-11-18 Thread Eros Candelaresi
Hi, Marius wrote: On Nov 18, 6:31 pm, Paul Butcher p...@paulbutcher.com wrote: I'm seriously considering Lift for a new project. I know what the benefits of Scala and Lift are (that's why I'm seriously considering this as a route forwards :-) What I'm wondering is whether there are any

[Lift] Re: How to use Box

2009-11-16 Thread Eros Candelaresi
Hi again, sorry for answering my own post. Should have looked at the documentation first. It's as simple as: val username = User.find(id).choice( Full(_.name) )( Full(User not found) ).open_! (not checked for syntax!) Regards, Eros Eros Candelaresi wrote: Hi, I like the getOrElse way

[Lift] Re: How to use Box

2009-11-15 Thread Eros Candelaresi
Hi, I like the getOrElse way of accessing data very much as it allows to handle non-existing values with very little code. However, I am still looking for a more elegant replacement for this: val username = User.find(id).getOrElse(User.create.name(User not found)).name Ok, this is very

[Lift] Re: [Sorta Not Related] Ummm.. at the risk of crashing my browser........

2009-10-16 Thread Eros Candelaresi
Hi, I'm be interested too. So if you still have invitations left... :) Regards, Eros Jim Barrows schrieb: Who wants a wave invite? Not sure how long Google will take to process them.. but I have some! I just added the lifehack list to my wave account, and I think firefox nearly died.

[Lift] Script merge similar to head merge?

2009-10-11 Thread Eros Candelaresi
for that. Also I don't want to reinvent the wheel. Is there something that I missed? Some kind of script merge? Kind regards, Eros Candelaresi --snip script type=text/javascript //![CDATA[ jQuery(document).ready(function() {jQuery('#'+'F766360102107OWD