How to Load Html Response in present Page

Hi Team,
Initially i am loading a web page and it contains loadmore Button

If when i click the button its making an Ajax call and getting Html responce

for every click it loads next 24 products .


How can i load the Html response for the present page and click next load more button

Thanks
Sumanth P

You have to do something like that:

new HttpRequest().XHR().url(moreButton.getAttribute("data-url"))
          .param("selectedUrl", moreButton.getAttribute("data-url"))
          .appendTo(ProductListingPage.instance.productGrid.locate().first())
          .assertContent("Nothing came back from XHR.", true, HttpRequest.NOT_BLANK)
          .fire();

The appendTo part is important. The returned HTML fragment will be inserted at the specified position which is a regular selector.