Try this! <a t:type="pageLink" page="getcomment" context="blogId" onclick="loadMoreComment(this.href); return false;"> <span> LoadMore</span> </a>
2007/10/6, Angelo Chen <[EMAIL PROTECTED]>: > > Hi, > > I have a very simple Ajax need, here is the situation: > > My page will display a blog, when user click 'more comments', I'd like to > load a T5 page into a DIV provided, so basically, the page is like this: > > <p>my blog's text goes here</p> > <div id="comments"></div> > > the js will be like this: > > $('#more_comments').click(function() { > $('#comments').load('/getcomment'); > > got some questions: 1. simply passing the url '/getcomment' to load is > enough? how to pass blog ID as parameters? 2. if above steps not correct, > any other way to achive this? Thanks, > A.C. > > > > -- > View this message in context: > http://www.nabble.com/T5%3A-A-simple-Ajax-need%28JQuery%29-tf4580040.html#a13074090 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- ----徐 依伟