Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

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

Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

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

Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

This is the service I am working with

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Change URL Value for RSS Feed

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...

Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

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..."});

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Change URL Value for RSS Feed

And this doesn't works for you?

Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

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.

Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

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?

Eric Van Buren
Posts: 0
Joined: Sat Apr 25, 2015 6:40 pm

Change URL Value for RSS Feed

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

Return to “Issues”