Try JsVar("this", "id") or JsRaw("this.id")

-Ross

On Sep 29, 2009, at 4:22 PM, glenn wrote:

>
> I'd like to converting the following
>
> JsRaw("""function() $('#item-save').html(this.id + ' was
> toggled')""")
>
> into something more object-oriented, using JQuery support functions in
> Lift.
>
> I've tried various combiniations, including this
>
> AnonFunc(JqId("item-save") >> JqEmptyAfter(<div>{JsRaw(this.id)} was
> toggled</div>))
>
> but nothing seems to work. It just treats this.id as ordinary text,
> not as a Javascript variable.
>
> Any ideas would be appreciated.
>
> Glenn
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to