When trying to add the widget to my site, I realized that SpringWidgets is using the
embed tag. e.g. my widget
embed tag is obsolete in XHTML, i.e. if you use it, then the W3C Validator will throw errors.
Here is what you can do to solve that…
In XHTML in order to embed flash we have to use the
object tag. Normally, this would have been simple, but SpringWidgets requires the feed url to be passed using the
flashvars attribute of the embed tag.
The XHTML equivalent when using
object is to do the same using using the
param tag with name
So before you start your code, here is what you will need to do.
Configure the RSS Widget with the size you want and the feed you wish to embed and generate the code for the same.
The main things you will need are:
- The source of the embed, usually http://downloads.thespringbox.com/web/wrapper.swf
- the value of flashvars attribute; for me it is
- the width and height
Use the code below to embed your file.
You will need to replace the value of the
FlashVars param with your code, as well as the value of the
href value of the
a tag with that of your own.
Once you are done with this, you will be able to view your widget. Here is mine: