Page 1 of 2

RSS

Posted: Mon Mar 31, 2014 7:19 am
by Johnny6773854

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


RSS

Posted: Mon Mar 31, 2014 7:37 am
by Kateryna Grynko

Hi Johnny,

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


RSS

Posted: Mon Mar 31, 2014 9:15 am
by Johnny6773854

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


RSS

Posted: Mon Mar 31, 2014 2:15 pm
by Kateryna Grynko

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.


RSS

Posted: Tue Apr 01, 2014 5:41 am
by Johnny6773854

Thank you but seems to be the same problem.


RSS

Posted: Tue Apr 01, 2014 6:23 am
by Nikita

Hi,

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


RSS

Posted: Tue Apr 01, 2014 6:47 am
by Johnny6773854

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


RSS

Posted: Tue Apr 01, 2014 7:37 am
by Nikita

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


RSS

Posted: Tue Apr 01, 2014 7:42 am
by Johnny6773854

yes i did Image


RSS

Posted: Tue Apr 01, 2014 7:50 am
by Nikita

Please specify your app name.