Johnny6773854
Posts: 0
Joined: Mon Mar 31, 2014 7:11 am

RSS

Hi there

I have RSS app. 1 Page to view all the news. then 1 page to read that news.

So on the page where I view the news list, I want to click on the news title and then it must go and read it on the other page.

But it always show the first post no matter what title I click on. So I try to store it in the local storage but the same.

Can you maybe help please?

Thank you

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

RSS

Hi Johnny,

Take a look at here please: https://getsatisfaction.com/apperyio/...

Johnny6773854
Posts: 0
Joined: Mon Mar 31, 2014 7:11 am

RSS

Ok thank you.

i did look at it and I am not using a database but I did use the local storage like this: localStorage.setItem("variableName", $(this).text());

So i retrieve the title, excerpt and content. Now the content i put in the label and hide it. So when they click on the read more link the that content is stored like this:
localStorage.setItem("variableName", $(post).text());

And on the other page i get that value.

But still the first article is showing

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

RSS

Johnny,

On Link click run this JS code to save in localStorage:
prelocalStorage.setItem("variableName", $(this).parent().find("[name=labelName]").text());/preWhere 'labelName' is a name of a Label component name where the news text is contained.

Johnny6773854
Posts: 0
Joined: Mon Mar 31, 2014 7:11 am

RSS

Thank you but seems to be the same problem.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

RSS

Hi,

Could you share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a?

Johnny6773854
Posts: 0
Joined: Mon Mar 31, 2014 7:11 am

RSS

Yes, you will see on the slide option there is a option "Algemene Nuus" that is the page I use.

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

RSS

Did you share it? Did you follow these steps:
http://docs.appery.io/documentation/s...

Johnny6773854
Posts: 0
Joined: Mon Mar 31, 2014 7:11 am

RSS

yes i did Image

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

RSS

Please specify your app name.

Return to “Issues”