BBC Home

Explore the BBC

h2g2
28th November 2009
Accessibility help
Text only

Guide ID: A388000 (Help Page)

Help Page


SEARCH h2g2
Edited Entries only
Search h2g2Advanced Search


New visitors: Create your membership
Returning members: Sign in
BBC Homepage
The Guide to Life, The Universe and Everything.

4. All About h2g2 / h2g2 Information / GuideML, the Markup Language of the Guide

Created: 7th July 2000
GuideML Gadgets
Contact Us


Like this page?
Send it to a friend!

 

Welcome to the GuideML Gadgets scheme. This is the place for all you JavaScript experts out there who want to design cool gizmos for the whole h2g2 Community.

What's a GuideML Gadget?

A GuideML Gadget is a cool tool that's got its own tag. An example is the Who's Online Gadget, which can be inserted into GuideML entries with:

<WHO-IS-ONLINE>Click here</WHO-IS-ONLINE>

This creates a link like this - Click here - that pops up the Who's Online window.

We want to extend the range of GuideML Gadgets so the whole Community can put special effects on their pages, and to do that we need budding JavaScript authors to write great tools and submit them to the h2g2 team. The best ones will be coded into GuideML for everyone to use.

How the Scheme Works

To submit your JavaScript Gadget for our consideration, create a new plain text entry containing your JavaScript - you must create a plain text entry, as otherwise the JavaScript will be disabled when the entry is viewed.

In the entry describe the syntax for the GuideML tag which would enable other Researchers to include your tool. For example, a tag tool that displayed a list of links to your friends might have the syntax:

<BUDDY-LIST>
<BUDDY BIO="U123456">
<BUDDY BIO="U234567">
...
<BUDDY BIO="U456789">
</BUDDY-LIST>

Finally, create a new Conversation below, with a succint description of the Gadget as the subject (eg 'Buddy List'), and a full link to your Gadget entry as the first line of your Posting (eg http://www.h2g2.com/A123456) to enable others to check out your code easily. The rest of the Posting should describe what your Gadget does, and why you think it's so essential.

Feel free to comment on other people's Gadgets, too, or to suggest improvements. The aim is to create brilliant gadgets, after all.

What We're Looking For

If you think your fellow Researchers will find your tool fun or useful, then you're probably onto a winner. However, here are a few guidelines to help:

  • No cookies: We do not support cookies in JavaScript, as they are a security risk, so please don't use them.

  • Don't play with the colour scheme: Ensure your script will work on all skins - even those we haven't designed yet - by avoiding a reliance on specific colours. Things like a link that cycles through a rainbow of colours, or a graphic that follows your pointer, would be fine, but a script that changed the background colours of the page wouldn't.

  • Graphics: If your script uses any graphics then we may well re-do them if we implement your script, so don't spend hours and hours on your graphics; instead, make sure the JavaScript is right.

  • Multiple browsers: The more browsers you test your code on, the better the chance that it will be accepted. If you have tested your script on more than one browser, it's worth saying so in your Posting below.

  • Clear coding: Lay your code out clearly, and please use comments liberally. They will be removed if your script is implemented as a Gadget, but comments will help us to check that the code is sound.

  • Be flexible: If possible, try to generalise your Gadget as much as possible by using arguments to the GuideML (as in the example above). If your Gadget can be used in lots of different ways, then it has a better chance of being implemented.

That's it! Although we make absolutely no guarantees as to when we will implement individual Gadgets (because we have to fit all development of this sort into the release schedules) we do hope to start building up a library of Gadgets soon.

Watch this space.



Clip/Bookmark this page
This article has not been bookmarked.
ENTRY DATA
Edited by:

The h2g2 Editors



CONVERSATION TOPICS FOR THIS ENTRY:

Start a new conversation

People have been talking about this Guide Entry. Here are the most recent Conversations:

TITLE
LATEST POST
Friends list?Jun 1, 2008
The Counter GadgetApr 17, 2007
okay, I have a widget, if that's a start?Apr 16, 2007
Infinite Improbability DriveFeb 4, 2007
Thingite clock gadget Jan 19, 2007
name of researcher?Nov 13, 2004
The Animated ScrollerJan 21, 2004
How about the "Don't press this button again!" buttonNov 4, 2003
Voting GadgetSep 4, 2003
The Campaign for a BubbleFish™ GadgetAug 6, 2003

More Conversations


Disclaimer

Most of the content on h2g2 is created by h2g2's Researchers, who are members of the public. The views expressed are theirs and unless specifically stated are not those of the BBC. The BBC is not responsible for the content of any external sites referenced. In the event that you consider anything on this page to be in breach of the site's House Rules, please click here. For any other comments, please start a Conversation above.




About the BBC | Help | Terms of Use | Privacy & Cookies Policy