Home > Javascript, PHP, Website Design, XHTML > Widget/badge

Widget/badge

December 16th, 2009

I want to make a widget like this one:
http://www.rehabilitation-center.org/rehabwidget.html
with some obvious improvements to the design and functionality. The first being that I would like to make a page with a simple form, where the user inputs a date and chooses what color their badge will be and on submit it will generate a code for their unique widget/badge…I figured you could go about it adding query strings into the equation (which you would you know better what to do and how to go about it, being the programmer):

http://www.rehabilitation-center.org/rehabwidget.html?y=1989&m=05&d=11

or

http://www.rehabilitation-center.org/rehabwidget.html?d=198905111

Then it could grab these values(using JS) and pass it to the countup method. I don’t know if that is the best way I don’t care how it would be done, just reallllly want this done. Anyway, I hope that is enough for you to let me know what can be done….so the short breakdown is:
1.) a page with a simple form for a person to fill in a date and choose a badge color
2.) on submission they will recieve a code snippet to place on their site with their specific count up from date with the correct badge color
3.) best case scenario would be if they just got a small line of javascript or something like that to make it easy….as of right now, if I were to give the widget/badge out they would have to insert some very sloppy markup and a small js.


Widget/badge

Comments are closed.
Bear