Page 1 of 2
					
			
				Change URL Value for RSS Feed
				Posted: Sat Apr 25, 2015 6:40 pm
				by Eric Van Buren
				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
 
					
			
				Change URL Value for RSS Feed
				Posted: Sat Apr 25, 2015 9:41 pm
				by Evgene Karachevtsev
				
			 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 6:59 pm
				by Eric Van Buren
				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
 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 7:08 pm
				by Eric Van Buren
				This is the service I am working with
 
   
 
 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 8:13 pm
				by Illya Stepanov
				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...
 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 8:18 pm
				by Eric Van Buren
				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..."});
 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 8:23 pm
				by Illya Stepanov
				And this doesn't works for you?
 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 10:01 pm
				by Eric Van Buren
				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.
 
					
			
				Change URL Value for RSS Feed
				Posted: Sun Apr 26, 2015 10:13 pm
				by Eric Van Buren
				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?
 
					
			
				Change URL Value for RSS Feed
				Posted: Mon Apr 27, 2015 8:31 pm
				by Eric Van Buren
				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