I'm creating a RSS feed as shown in this example but wondering if I can dynamically change the URL property? I would like a select box on the page that has a different URL for each select box value.
https://devcenter.appery.io/tutorials...
Thanks
I'm creating a RSS feed as shown in this example but wondering if I can dynamically change the URL property? I would like a select box on the page that has a different URL for each select box value.
https://devcenter.appery.io/tutorials...
Thanks
Hello Eric,
Please look at these posts, hope they will be useful for you:
https://getsatisfaction.com/apperyio/...
https://getsatisfaction.com/apperyio/...
https://getsatisfaction.com/apperyio/...
Hi, Thanks for the response. I'm not sure that I understand the information given in these other threads.
My RSS feed uses a appery service and one of the properties of the service is URL which is https://cvunews.wordpress.com/feed/. At the top of the page I have a select box and when the selected value changes I want the RSS (service) URL value to change. How do I change the URL value of the service with javascript?
Thanks
Hi Eric -
You can do it with Settings service - more information you can find here:
https://devcenter.appery.io/documenta...
and here is how to use it with JavaScript: https://devcenter.appery.io/documenta...
I made the select box on the RSS feed page a custom component and then have it run javascript event = value change and action = javascript. This is the javascript I've tried where CVUNewsService is the RSS service.
CVUNewsService.URL = 'http://cvunews.wordpress.com?feed=rss...';
CVUNewsService.execute({"url":"http://cvunews.wordpress.com?feed=rss..."});
And this doesn't works for you?
No, these lines of js are not working for me on a value change of the selectbox.
CVUNewsService.URL = 'http://cvunews.wordpress.com?feed=rss...';
CVUNewsService.execute({"url":"http://cvunews.wordpress.com?feed=rss..."});
It's almost as though the select box is not firing any javascript events at all. I've tried adding console.log('test'); and alert('test'); in the code but I do not see these during testing.
I have the selectbox firing js events but the URL property for the CVUNewsService doesn't change at least the data in the RSS doesn't refresh. Do I need to rebind CVUNewsService to refresh the data?
Can anyone please help me out with this? To summarize my question again, when the value of my selectbox changes I want the URL property of my RSS service to change. So far I've tried
CVUNewsService.URL = 'http://cvunews.wordpress.com?tag=nord...';
and
CVUNewsService.execute({"url":"http://cvunews.wordpress.com?tag=nord..."});
After the URL property is changed, do I need to refresh or rebind the page which contains the RSS feed?
Thanks