How to embed a widget on your website / blog

Embedding a widget is really easy.

You need to follow 2 steps :

1. Identify the widget you want to embed and its data, availables widgets includes :

'rss','stock','agenda','files','gmail','horoscope','liens','mail','meteo','notepad','podcast','radio'
'series','calcul','todo','chrono','diapo','diapopicasa','facebook','twitter','gvideo','pacman','fish','venteprivee','diapofacebook'

2. embed the code to your page :

<script type="text/javascript">
  widget_type="YOUR WANTED WIDGET NAME";
  widget_data=YOUR WANTED WIDGET DATA (OBJECT) - CAN BE NULL;
</script>
 
<script type="text/javascript" SRC="http://www.ustart.org/include/tools/standalone/standalone.js"></script>

Rss feed widget example

Copy the following in your HTML body tag :

<script type="text/javascript">
  widget_type="rss";
  widget_data={'URL':'http://wiki.ustart.org/feed.php'};
</script>
 
<script type="text/javascript" SRC="http://www.ustart.org/include/tools/standalone/standalone.js"></script>

and you will get :

My Links widget example

Copy the following in your HTML body tag :

<script type="text/javascript">
widget_type="liens";
widget_data={'Links':[{'URL':"mail.google.com/mail",'Name':"Google Mail"},{'URL':"www.echanblardnext.org"
,'Name':"eChanblardNext"},{'URL':"mail.live.com",'Name':"Hotmail"},{'URL':"http://www.facebook.com/",'Name':"Facebook | Welcome to Facebook!"}]};
</script>
 
<script type="text/javascript" SRC="http://www.ustart.org/include/tools/standalone/standalone.js"></script>

and you will get :

My calendar widget example

Copy the following in your HTML body tag :

<script type="text/javascript">
widget_type="agenda";
widget_data={'RDV':[{'Date':"5/5/2009",'Cont':"EMBED MY CALENDAR",'id':0}]};
</script>
 
<script type="text/javascript" SRC="http://www.ustart.org/include/tools/standalone/standalone.js"></script>

and you will get :

 
embed.txt · Last modified: 2009/12/02 22:43 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki