0

XML data

Hi all. I would like to ask if anyone can tell me why does this happen:

I have a main view that consists of a number of different news which are retrieved from a web service for users to choose in a grid and each news has a newsID and title.
When the user selects one of the news in the grid cell, it will go to a details view together with the newsID.
The details view consists of the codes retrieving the XML data of the news details with another web service using the newsID.
However, the problem strikes when I go back to the main view and choose another news with another newsID.
It will go to the details view with the news details of the news the user first selected.

I suspect that it is the position of my this.grabXML(url) function in the createView() as it only calls for this function at the first time I go the details view. So may I ask if i am right, how could I always call for this.grabXML(url) function whenever I go the details view? Thanks for reading.

by
0 Replies

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets