Results 1 to 4 of 4
  1.    #1  
    I am parsing an xml feed and updating the list with the data obtained from parsing the xml. For some reason the list is not getting updated at all. (using the console log I have verified the xml parsing of values are fine). Any ideas what i might be doing wrong ?

    Here is the how I am creating the list

    Code:
    this.listItems = [];
    
    this.resultsModel = {items: [this.listItems], listTitle: $L('Results')};
    this.controller.setupWidget('results-list', {itemTemplate:'frontpage/search-result', listTemplate:'frontpage/result-list'}, this.resultsModel);
    I assign values using the below code

    Code:
    this.listItems[i] = {
    title: unescape(rssItems[i].getElementsByTagName("title").item(0).textContent)
    }

    and update the list as
    Code:
    this.controller.get('results-list').mojo.noticeUpdatedItems(i, this.listItems[i]);
    The frontpage/search-result template is as
    Code:
    <div class='result row' x-mojo-tap-highlight='momentary'>
    		<div class="palm-row-wrapper">
    		<div class="title">{-title}</div>
    		</div> </div>
  2. #2  
    did you ever figure this out?
    AmpachPre, your music your way.

  3. #3  
    Try this:
    Code:
    this.controller.modelChanged(this.resultsModel);
    That should update the list with the new model's items.
  4. #4  
    Quote Originally Posted by clacombe View Post
    Try this:
    Code:
    this.controller.modelChanged(this.resultsModel);
    That should update the list with the new model's items.
    Thanks, I think I read the original problem wrong though. I posted a new thread for my problem.

    http://forums.precentral.net/web-os-...st-widget.html
    AmpachPre, your music your way.

Posting Permissions