bjr a tous tous les courriers non ecrie en francais ne reponds pas de notre part donc vos couriies non ecrie en francais a la poubelle merci de bien vouloir respecter le francais ????
> Date: Tue, 21 Oct 2008 20:17:22 -0700> Subject: [Google-Gadgets-API] Re: > Working with Feeds Example does not work> From: [EMAIL PROTECTED]> To: > [email protected]> > > Hi Void,> > gadgets.* API has been > temporarily disabled.> > http://groups.google.com/group/Google-Gadgets-API/browse_thread/thread/5f8e67cda102d67/e1830d63556d8355?lnk=gst&q=gadgets.io.makeRequest#e1830d63556d8355> > > Adam> > On Oct 21, 8:07 pm, Void <[EMAIL PROTECTED]> wrote:> > I pasted > the "Working with Feeds" example from the developer site into> > the gadget > editor and previewed it. Nothing happens. The feed it's> > using appears to > be working.> >> > <?xml version="1.0" encoding="UTF-8" ?>> > <Module>> > > <ModulePrefs title="Fetch Feed Example"> > > title_url="http://groups.google.com/group/Google-Gadgets-API"> > > scrolling="true">> > </ModulePrefs>> > <UserPref name="show_date" > display_name="Show Dates?"> > datatype="bool" default_value="false"/>> > > <UserPref name="num_entries" display_name="Number of Entries:"> > > default_value="5"/>> > <UserPref name="show_summ" display_name="Show > Summaries?"> > datatype="bool" default_value="false"/>> > <Content > type="html">> > <![CDATA[> > <style> #content_div { font-size: 80%; > margin: 5px; background-> > color: #FFFFBF;} </style>> > <div > id="content_div"></div>> > <script type="text/javascript">> >> > // Get > userprefs> > var prefs = new gadgets.Prefs();> > var showdate = > prefs.getBool("show_date");> > var entries = prefs.getInt("num_entries");> > > var summaries = prefs.getBool("show_summ");> >> > function getFeed() {> > > var params = {};> > > params[gadgets.io.RequestParameters.CONTENT_TYPE] => > > gadgets.io.ContentType.FEED;> > > params[gadgets.io.RequestParameters.NUM_ENTRIES] = new> > Number(entries);> > > params[gadgets.io.RequestParameters.GET_SUMMARIES] = summaries;> > > var url = "http://groups.google.com/group/Google-Gadgets-API/feed/> > > rss_v2_0_msgs.xml";> > gadgets.io.makeRequest(url, response, params);> > > };> >> > function response(obj) {> > // obj.data contains the feed > data> > var feed = obj.data;> > var html = "";> >> > // Display > the feed title and description> > html += "<div><b>" + feed.Title + > "</b></div>";> > html += "<div>" + feed.Description + "</div><br>";> >> > > // Access the data for a given entry> > if (feed.Entry) {> > > for (var i = 0; i < feed.Entry.length; i++) {> > html += "<div>"> > > + "<a target='_blank' href='" + feed.Entry[i].Link + "'>"> > > + feed.Entry[i].Title> > + "</a> ";> > if > (showdate==true)> > {> > // The feed entry Date field > contains the timestamp in> > seconds> > // since Jan. 1, 1970. To > convert it to the milliseconds> > needed> > // to initialize the > JavaScript Date object with the correct> > date,> > // multiply by > 1000.> > var milliseconds = (feed.Entry[i].Date) * 1000;> > > var date = new Date(milliseconds);> > html += > date.toLocaleDateString();> > html += " ";> > html += > date.toLocaleTimeString();> > }> > if (summaries==true) {> > > html += "<br><i>" + feed.Entry[i].Summary + "</i>";> > }> > > html += "</div>";> > }> > }> > > document.getElementById('content_div').innerHTML = html;> > };> > > gadgets.util.registerOnLoadHandler(getFeed);> > </script>> > ]]>> > > </Content>> > </Module>> > _________________________________________________________________ Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
