Try this:

import JE._
import JqJE._

def openDialog:String = {
   (JqId("dialogpopup") ~>  JsFunc("dialog", "open")).toJsCmd
}


or

def openDialog:String = {
   (JqId("dialogpopup") >>  new JsExp with JQueryRight {
        def toJsCmd = dialog('open')"
   }).toJsCmd
}



Br's,
Marius

On 13 feb., 20:42, Richard <richard.m.willi...@gmail.com> wrote:
> Can someone post an example of a very simple way to use JQuery UI to
> open a dialog. I found this code online but it's not well documented
> and I can't get it to work. I'm assuming that the scala code was in a
> snippet and that the HTML was in a web page. I've also tried
> implemententing as a View but no luck.
>
> import net.liftweb.http.js.JE
> import net.liftweb.http.js.jquery.JqJE
>
> def openDialog:String = {
>    (JqJE.JqId(JE.Str("dialogpopup")) ~>
>     JE.JsFunc("dialog")).cmd.toJsCmd
>
> }
>
> <div id="dialogpopup" title="Dialog Title"></div>
> Please click <a href="" onclick={openDialog}>here</a> to open a new
> window.
>
> Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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