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


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