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
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
Moderator: daj
- 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
thanks for the tip. I tried adding unique id's to the two #temps. now neither works! smile, lex
-
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
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.
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.
- 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
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
-
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
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 ?
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 ?
- 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
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
Re: tag problem
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.
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.
-
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
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
I enjoyed Norway too, but I never got to see much outside of Oslo, perhaps next time.
ciao
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
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
Re: tag problem
Thanx ritchie its working now. http://www.aadal.org/weather/ajaxindex_test.htmritchie 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![]()
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
Yes, test out vest coast some time.
grazie
