Page 1 of 1

XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Mon 16 Mar 2009 8:54 pm
by MarkB
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
<a href="http://validator.w3.org/check? ... 1" /></a>


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

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Mon 16 Mar 2009 9:13 pm
by Paul C
Is your working copy at

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

cheers, Paul

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Mon 16 Mar 2009 9:15 pm
by MarkB
Yep. But I can't guarantee it will always work 'coz it's my development and test site all in one ;)

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Tue 24 Mar 2009 6:29 pm
by MarkB
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)

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Mon 01 Jun 2009 7:59 pm
by MarkB
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?

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Thu 03 Sep 2009 11:06 pm
by MarkB
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.

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Mon 07 Sep 2009 5:40 pm
by larrystein
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

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Mon 07 Sep 2009 6:08 pm
by steve
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.

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Tue 08 Sep 2009 9:16 pm
by HasseH
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

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Fri 11 Sep 2009 11:42 am
by gemini06720
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]

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Fri 16 Oct 2009 9:05 pm
by meteotortosa
Paul C wrote:Is your working copy at

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

cheers, Paul
wooow !!

How can I get like this?

Re: XHTML 1.1 compliant Ajax framework for Cumulus

Posted: Sun 13 Jun 2010 8:50 pm
by werribee_au
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?