0 Replies Latest reply on Mar 17, 2012 5:39 PM by Török Attila

    Listing multiply URLs in one list with asynclistview

    Török Attila

      Hi,

       

      My problem is, that I have some URLs to be listed with asynclistview in a mobile application, with Flash Builder:

       

      myurl.com/service.php?job=search&what=apple&page=0

      myurl.com/service.php?job=search&what=apple&page=1

      myurl.com/service.php?job=search&what=apple&page=2

      etc.

       

      I did the listing with a NEXT button to increase the page number, but unfortunately if I get to a high number, I get an empty page and no error message... And after an empty page, there's lot of it (page=43268 has also result: empty page). The php code cannot be modified, so I have to make the listing to work.

       

      What I'd like to do is to list the URLs without NEXT button, so they should be in one list until that page number that has no content. Maybe I should have a CONTINUE LISTING element at the end of every page, I don't know.

       

      Now I have this function, I guess I have to make the modifications in this one (the variables job, what are strings of course and page is int):

       

      protected function list_creationCompleteHandler(event:FlexEvent):void

                                    {

                                              getDataResult.token = search.getData(job, what, page.toString());

                                    }

       

      <s:CallResponder id="getDataResult" />

      <search:Search id="search"/>

       

      Please somebofy help me, this is driving me insane!

       

      Thanks a lot!

       

      Attila