SHtml has a few a() methods for defining javascript calls:

  def a(func: () => JsCmd, body: NodeSeq, attrs: (String, String)*):
Elem = {
  def a(body: NodeSeq, cmd: JsCmd, attrs: (String, String)*): Elem =
  def a(body: NodeSeq, attrs: (String, String)*)(func: => JsCmd): Elem
=

These do entirely different things as far as I can tell, so the naming
and docs should be clearer I think.   The first I think binds a scala
function and executes it on the server on click.   The second runs a
client side javascript function on click (right?).

I found this pretty confusing, especially since the parameter order is
different and there is such a subtle difference in the signature (at
least to a Scala newbie.)  Thought that might be helpful...


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to