Are you trying to create a link/button that someone clicks on to cause the Ajax call to be made?
On Wed, Aug 19, 2009 at 8:43 AM, pravin <[email protected]> wrote: > > Hi , > i am trying to configure Ajax in my application using lift. > > I have : > > > > <lift:DisplayResults.showFeeds> > <table border="0" width="100%" class = "resultheader" > cellpadding="10"> > <t:feedsResultRows/> > </table> > </lift:DisplayResults.showFeeds> > > > snippet for given html code : > > def showFeeds(xhtml:NodeSeq):NodeSeq ={ > println("Inside showFeeds"); > bind("t", xhtml,"feedsResultRows" -> SHtml.ajaxInvoke > (updateStartDate)._2) > } > > def updateStartDate () : JsCmd= { > > JsCmds.SetHtml("resultsRow", displayResult(List("abc","xyz"))) > } > > def displayResult(rList:List[Object]):NodeSeq={ > <tr><td > > <table> > <tr><td>rList(0).toString()}</ > td> > </tr> > <tr><td>{rList(1).toString()}</a> </ > td> > </tr> > </table> > </td></tr> > } > > But its not working- > Giving out put on html page like- > lift_ajaxHandler('F966737512075R2E' + '=true', > null, null) > > What is this .... > How can i use Ajax in my application.I want to give asynchronous call > (Ajax) for my above html component so it can get show list that i get > from Db call . > > This all happening on submit button click.... > > Appreciate any pointer regarding this > > -Pravin > > > > > -- 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 [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 -~----------~----~----~----~------~----~------~--~---
