Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

tag problem

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
w5afw
Posts: 154
Joined: Thu 29 Jan 2009 8:48 pm
Weather Station: ws-2315
Location: Houston, the Eagle has landed, TX
Contact:

Re: tag problem

Post by w5afw »

thanks for the tip. I tried adding unique id's to the two #temps. now neither works! smile, lex
W5AFW, Lex

Image
ritchie
Posts: 42
Joined: Mon 02 Feb 2009 10:25 pm
Weather Station: WS 1081
Operating System: windows 10
Location: Rieti Italy

Re: tag problem

Post by ritchie »

OK - at the top of your page, you have id="#_11temp" it should be id="_11#temp"
and where you show the temperature you have id="#_10temp" it should be id="_10#temp"

Try that, it should work - I searched for possible duplicates if you change those values and there won't be any.
Image
User avatar
w5afw
Posts: 154
Joined: Thu 29 Jan 2009 8:48 pm
Weather Station: ws-2315
Location: Houston, the Eagle has landed, TX
Contact:

Re: tag problem

Post by w5afw »

Nope---I thought I had tried that... I think I have tried about every combination to no avail. This is a puzzler! Other ideas? lex
W5AFW, Lex

Image
ritchie
Posts: 42
Joined: Mon 02 Feb 2009 10:25 pm
Weather Station: WS 1081
Operating System: windows 10
Location: Rieti Italy

Re: tag problem

Post by ritchie »

Something is broken at the back end - if I use http://www.w5afw.com/wx/xmlreturn.php?i ... erty=value I still get the error symbol.
However, if I use http://www.w5afw.com/wx/cumulusdata.xml it all seems OK as far as data goes. Have you changed anything in the php code ?
Image
User avatar
w5afw
Posts: 154
Joined: Thu 29 Jan 2009 8:48 pm
Weather Station: ws-2315
Location: Houston, the Eagle has landed, TX
Contact:

Re: tag problem

Post by w5afw »

Hi...I haven't changed the cumulusdata or xmlreturn files (that I know...); I have edited the template, as you can see. It works fine until I try and add temp a second time... lex
W5AFW, Lex

Image
User avatar
aadal
Posts: 168
Joined: Tue 04 Nov 2008 8:07 pm
Weather Station: WH 1080
Location: Skodje
Contact:

Re: tag problem

Post by aadal »

Hi there
I set up an testpage and cant take two times #temp here either.
Test page here http://www.aadal.org/weather/ajaxindex_test.htm
Page is translated to Norwegian...

Tag _11#temp is as i can see the °F in my case °C the problem here is #temp only one show.
  • Windows Vista
Image

Image
ritchie
Posts: 42
Joined: Mon 02 Feb 2009 10:25 pm
Weather Station: WS 1081
Operating System: windows 10
Location: Rieti Italy

Re: tag problem

Post by ritchie »

Yep - it won't work !
Copy the code below and replace the code currently in your index page with it.
I didn't notice it as I have moved more functionality into the php code - to stop getting errors :o

Code: Select all

//<![CDATA[
    document.observe('dom:loaded', function () {
		var url = 'xmlreturn.php';	
		$$('.refresh').each(function(dynamicitem) { 
			tID = dynamicitem.id
			if (dynamicitem.id.indexOf("_") == 0) {
				tID = dynamicitem.id.substring(3);
			}	
		 	dynamicitem.update('??'); 
	  		var refreshAjax = new Ajax.PeriodicalUpdater(dynamicitem.id,url,{parameters: {item: tID, property: 'value'} , method : 'post', frequency: '3'});				
		});
		
		$$('.onceonly').each(function(staticitem) { 
			tID = staticitem.id;
			if (staticitem.id.indexOf("_") == 0) {
				tID = staticitem.id.substring(3);
			}		
			staticitem.update('**'); 
  			var staticAjax = new Ajax.Updater(staticitem.id,url,{parameters: {item: tID, property: 'value'} , method : 'post'});				
		});

		$$('.unit').each(function(unit) {
			tID = unit.id;
			if (unit.id.indexOf("_") == 0) {
				tID = unit.id.substring(3);
			}
			var unitAjax = new Ajax.Updater(unit.id,url,{parameters: {item: tID, property: 'unit'} , method : 'post'});
		});
		

		
     });
// ]]>  


I enjoyed Norway too, but I never got to see much outside of Oslo, perhaps next time.

ciao
Image
User avatar
w5afw
Posts: 154
Joined: Thu 29 Jan 2009 8:48 pm
Weather Station: ws-2315
Location: Houston, the Eagle has landed, TX
Contact:

Re: tag problem

Post by w5afw »

incredible; stupendous; fantastico; thank you! lex
W5AFW, Lex

Image
User avatar
aadal
Posts: 168
Joined: Tue 04 Nov 2008 8:07 pm
Weather Station: WH 1080
Location: Skodje
Contact:

Re: tag problem

Post by aadal »

ritchie wrote:Yep - it won't work !
Copy the code below and replace the code currently in your index page with it.
I didn't notice it as I have moved more functionality into the php code - to stop getting errors :o

Code: Select all

//<![CDATA[
    document.observe('dom:loaded', function () {
		var url = 'xmlreturn.php';	
		$$('.refresh').each(function(dynamicitem) { 
			tID = dynamicitem.id
			if (dynamicitem.id.indexOf("_") == 0) {
				tID = dynamicitem.id.substring(3);
			}	
		 	dynamicitem.update('??'); 
	  		var refreshAjax = new Ajax.PeriodicalUpdater(dynamicitem.id,url,{parameters: {item: tID, property: 'value'} , method : 'post', frequency: '3'});				
		});
		
		$$('.onceonly').each(function(staticitem) { 
			tID = staticitem.id;
			if (staticitem.id.indexOf("_") == 0) {
				tID = staticitem.id.substring(3);
			}		
			staticitem.update('**'); 
  			var staticAjax = new Ajax.Updater(staticitem.id,url,{parameters: {item: tID, property: 'value'} , method : 'post'});				
		});

		$$('.unit').each(function(unit) {
			tID = unit.id;
			if (unit.id.indexOf("_") == 0) {
				tID = unit.id.substring(3);
			}
			var unitAjax = new Ajax.Updater(unit.id,url,{parameters: {item: tID, property: 'unit'} , method : 'post'});
		});
		

		
     });
// ]]>  


I enjoyed Norway too, but I never got to see much outside of Oslo, perhaps next time.

ciao
Thanx ritchie its working now. http://www.aadal.org/weather/ajaxindex_test.htm
Yes, test out vest coast some time.

grazie
  • Windows Vista
Image

Image
Post Reply