On Wed, Aug 19, 2009 at 10:50 PM, pravin <[email protected]> wrote:

>
> yes i have submit button.
> on click event of this i am doing other tasks.


What is the user interface (HTML) element that causes the Ajax update to
happen?  What does the user do in order to get the Ajax thing to happen?

ajaxInvoke is a very low level call.  If you want to have an Ajax button,
use SHtml.ajaxButton.  If you want to have an Ajax form, use SHtml.ajaxForm.
 If you can describe what the user interaction should be, I'll write up some
example code for you.


>
>
> above data population for text is not on click submit button.
>
>
> On Aug 20, 2:56 am, David Pollak <[email protected]>
> wrote:
> > 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 frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
>
> >
>


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

Reply via email to