Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

XHTML 1.1 compliant Ajax framework for Cumulus

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

Moderators: daj, TNETWeather

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

XHTML 1.1 compliant Ajax framework for Cumulus

Postby MarkB » Mon Mar 16, 2009 8:54 pm

This is yet another Ajax XML HTML webserver frameset that displays dynamic realtime data on your webpages.

What's different about this one?

You can develop strict XHTML 1.1 pages that get a W3C green tick and allow you to attach one of these to your webpage:
Image
[url]<a href="http://validator.w3.org/check?uri=referer"><img
style="border:0;width:88px;height:31px"
src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1" /></a>
[/url]


All the usual caveats and disclaimers go with it. It's free software; worth what you pay for it.

Let me know if you like it.
Let me know if you hate it.

Initial Release:
cumulusxml.zip

Update: new version of XML template file restructured to match the Webtabs entry in the Cumulus Wiki as of 15th January 2010.
http://wiki.sandaysoft.com/index.php?title=Webtags
xmltemplate.1.8.zip

Update: beta version of XML template to match Cumulus 1.8.9 build 904 beta webtags. This is not fully tested.
xmltemplate.1.9.zip

Update: new version of XML template to match Cumulus 1.9.2 build 1018 webtags. (I thought it was about time - I've not been here for a while!)
xmltemplate.1.12.zip


Update 1.2: I noticed that on occasion the 'first pass' did not always fully populate the web page, leaving some fields empty until after the first update period. This seemed to be a problem only affecting IE. Version 1.2 smb_ajax.js fixes this - see the comment section in the script if you are curious. Now tested with IE7, IE8, Firefox3 and Symbian

Update 1.3: Fixes an infrequently occuring error when the XML file was being read by the browser at the same time it was being updated by the server. Also tidied up the inner loop to make things a bit more efficient (you can't tell from the client side though)
smb_ajax.1.3.zip

If you have not downloaded any of these files you should download ALL of them to get the full kit. Otherwise, just download the updates to what you already have...
You do not have the required permissions to view the files attached to this post.
Last edited by MarkB on Fri Oct 14, 2011 1:04 am, edited 13 times in total.
Image

User avatar
Paul C
Posts: 372
Joined: Thu Jun 19, 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby Paul C » Mon Mar 16, 2009 9:13 pm

Is your working copy at

http://www.yontcleugh.co.uk/weather/

cheers, Paul

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby MarkB » Mon Mar 16, 2009 9:15 pm

Yep. But I can't guarantee it will always work 'coz it's my development and test site all in one ;)
Image

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby MarkB » Tue Mar 24, 2009 6:29 pm

Found a typo in the XML template that was causing Yesterday's Rainfall to be incorrectly displayed.

It's been so long since it last rained I only just noticed the problem!

The attached template fixes the problem.


[Edit] - Attachment moved to first post in thread, for neetniss. (had been downloaded 6 times)
Image

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby MarkB » Mon Jun 01, 2009 7:59 pm

I noticed that if you left the web-page open for a long time (hours and hours) there would eventually be an occasion when the client was reading the XML file at the same time the server was updating it. This was causing an 'error on page' alert to show up. I thought this made the page look untidy.

I have posted version 1.3 of the JavaScript to the first post in the thread to fix this problem.

This completes V1 of this little project. There is no V2 planned at present...

Thanks to all who downloaded it. Was it of any use?
Image

User avatar
MarkB
Posts: 68
Joined: Tue Jan 13, 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby MarkB » Thu Sep 03, 2009 11:06 pm

Updated the XMLtemplate.zip attached to the first post in the thread. Version 1.6 now includes all of the webtags listed in the same order as the Cumulus Wiki Webtag section.
Image

larrystein
Posts: 63
Joined: Sun Aug 30, 2009 2:46 pm
Weather Station: WH1080

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby larrystein » Mon Sep 07, 2009 5:40 pm

Hi, I'm trying out your app. However I cannot get it to work properly.

Cumulus isn't sending the cumulus.xml file.

Help please.

Larry

User avatar
steve
Cumulus Author
Posts: 26314
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in Portugal
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby steve » Mon Sep 07, 2009 6:08 pm

larrystein wrote:Cumulus isn't sending the cumulus.xml file.


Apologies if I'm stating the obvious, but: It doesn't send it automatically, you have to configure it as one of the 'extra' files. If you've done that and it isn't uploading, turn on the ftp log and that should show what the problem is.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

HasseH
Posts: 3
Joined: Tue Sep 08, 2009 6:04 pm
Weather Station: Proove WP1400

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby HasseH » Tue Sep 08, 2009 9:16 pm

Excellent idea and thanks very much for sharing it!

However, I am getting a XML error every 15 secs and no results. Cumulus.xml is uploaded an the .js file is in place. I might just be tired, though I cannot find any obvious mistakes with the setup. I am running a Windows server and I have a vaugue idea that I might need a plugin or update to get the XML parsing to work. Grateful for any tips and tricks.

I am new to Cumulus and I like it a lot better than Weather Display.

Hasse

gemini06720
Posts: 1700
Joined: Mon Aug 10, 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby gemini06720 » Fri Sep 11, 2009 11:42 am

MarkB,

I have worked on the templates you have previously released, updated them somewhat and have made them full compliant to the XHTML 1.0 Transitional standard.

I enjoyed working with XML - my first experience.

So far, other than displaying the variables from the XML file (using the <span class="ajax" id="variablename"></span>), I have not been able to transfer the value of XML variables to other variables, probably something that cannot be done in the present setup and with the present JavaScript.

Should you be interested at looking in my results, here is the link:

[link removed]
Last edited by gemini06720 on Wed May 22, 2013 8:16 pm, edited 1 time in total.

User avatar
meteotortosa
Posts: 323
Joined: Thu Dec 04, 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby meteotortosa » Fri Oct 16, 2009 9:05 pm

Paul C wrote:Is your working copy at

http://www.yontcleugh.co.uk/weather/

cheers, Paul


wooow !!

How can I get like this?
Weather in Tortosa (NE Spain), updated every 15'
Image Image

User avatar
werribee_au
Posts: 336
Joined: Mon Jun 08, 2009 6:25 am
Weather Station: WH-1081 (Jaycar Digitech XC0348)
Operating System: XP SP3
Location: Wyndham Vale, Vic, Australia.
Contact:

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Postby werribee_au » Sun Jun 13, 2010 8:50 pm

I downloaded The cumulusxml.zip archive from the first post and am having a play with it, but I'm having trouble with gaugesT.htm crashing cumulus when trying to process the it.

It looks to me like this is a template file that has already been processed by cumulus.

Is there another archive I should have downloaded?


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 9 guests