Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020

    Web Page Pagination

    Hi,

    Is there a way for me to paginate HTML pages which were created on the fly? The HTML pages would be created by populating HTML variables by data sets coming from SQLite , which is done through a FOR-DO loop.

    Scenario:
    - Say I have 100 records of members in SQLite.
    - Then whenever I click a View All button, only 20 members appear on the WebObject. This would be page one. So I have 4 pages more to view.
    - The pagination is SET on several LABEL objects just outside the WebObject, at the bottom.
    - Therefore the pagination would show something like this, if I'm on page 2, where [2] is NOT an ACTIVE LABEL:
    <<PREVIOUS ... [1] [2] [3] [4] [5] ... NEXT>>

    As a result, when I clicked on an ACTIVE LABEL, say [3], it will repopulate the WebObject with Record NUMBER 41 to 60. And LABEL [3] will then become INACTIVE. Or I can also click ACTIVE LABEL NEXT>> for the same RECORD series.

    Any help, tip, formula or example would be greatly appreciated.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  2. #2
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Hi,

    Okay. I managed to do exactly as I stated above, for Web Pagination on AMS.

    But I found out that I need to Auto-EXPAND the area where the Labels are created on the fly if the database is large. So this method is suitable for eBook such as recipes, science and the like, where the number of pages are FIXED at design time. And not suitable for user-definable/writable apps.

    Using Listbox Object is a better way of Web Page Pagination.

    So I was thinking that if only I can have Object in an Object Plugin. This means to embed Labels inside Shape Plugin and let the Shape autoscroller on when more Labels are inserted. hehehe wishful thinking.

    Then, I thought, it would be nice if there is also a Horizontal ListBox. This will fix it and enriches AMS-based developers with even more flexibilty.

    Any comments?
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  3. #3
    Join Date
    Dec 2003
    Posts
    891
    Maybe I'm don't have what you want correct in my mind, but could you substitute the Application.ShowpopupMenu for the list box?
    it can be populated from a table (text-db, etc).

  4. #4
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by Roboblue
    Maybe I'm don't have what you want correct in my mind, but could you substitute the Application.ShowpopupMenu for the list box?
    it can be populated from a table (text-db, etc).

    Good idea.... this means I can save space using PopUpMenu and have as many LINKS without messing the design. Having it hidden and bringing it up when needed.

    And when I need to show lots of stuff in 1 screen, I can use ListBox. This brings the idea of having ComboBox in the middle of <<PREVIOUS n NEXT>>, would be a good substitute to Active Labels and ListBoxes.

    Thanks for the spark, Robo...

    Now I have many options.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  5. #5
    Join Date
    Dec 2003
    Posts
    891
    you could also have catagories for your html, then create global popup functions for each catagory, so you could still use popups even if you have a lot of links.
    you could use a db and call tables for the catagory to dynamically populate each popup. Use an sVariable to call a menu.
    see this simple apz for a basic idea
    Attached Files
    Last edited by Roboblue; 04-29-2006 at 12:59 PM.

  6. #6
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    hmmmm ...nice one ..

    This means, I am drilling down 1 layer on behalf of users. Making their life much easier..

    Really nice one.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  7. #7
    Join Date
    Dec 2003
    Posts
    891
    Sure
    Just populate a popup from the table names (Title) in the db (tables named by catagory). Then when they choose a Title, call another popup populated by the data in the selected table.
    You can see how to populate the popup from SQLite from this apz (Amanzar, I think you already have this).
    Man, if you could only customize the menu (color, transparency, font, etc) this would be a cool looking way to do this. Much cooler than a tree object or listbox.

  8. #8
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Robo,

    Thanks for the pointers. Indeed I have the apz.

    I like the idea of controlling the PopUps specs.

    In the mean time, maybe I'll upload the Web Pagination with Active Labels for others to refer and hack around. Could be useful.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

Similar Threads

  1. web object - load page - send login
    By sferguson in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 11-14-2003, 07:24 AM
  2. Interacting with Embedded Web Objects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-01-2003, 02:17 PM
  3. reading source from a web page
    By TJ_Tigger in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 03-04-2003, 05:19 AM
  4. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  5. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts