facebook

Dynamically Add ListItems

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #320090 Reply

    janosh
    Member

    Hello,

    I have created an app containing a “rounded list”. Is it possible to add another ListItem dynamically? I’m using PHP and tried to copy an existing HTML “li” element, filling with new information such as new id numbers, new text content etc. But it seems that the UI information stored in the *.js file is missing and too difficult to dynamically add these.

    At design time, I don’t know yet how many list items will be there later on, so I need to find a way how to add list items dynamically on runtime. Is there any way to achieve this?

    regards,
    janosh

    #320095 Reply

    support-michael
    Keymaster

    @janosh

    See this thread:
    http://www.genuitec.com/support-mobione/viewtopic.php?f=14&t=1858

    You should be able to generate new list-items based on an example list-item. What I’ve been doing is mockup my list with a single list-item formatted the way I need it with text, images, other… Then I generate the html and write custom JavaScript to build the new list-items. In your case, instead of using JavaScript you would use PHP to generate the custom list-items.

    #320259 Reply

    janosh
    Member

    This message has not been recovered.

    #320282 Reply

    support-michael
    Keymaster

    This message has not been recovered.

    #320304 Reply

    support-michael
    Keymaster

    This message has not been recovered.

    #320353 Reply

    janosh
    Member

    This message has not been recovered.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Dynamically Add ListItems

You must be logged in to post in the forum log in