Bug fixed : Several FastRssWidget in the web page

Feb 12, 2009 at 8:45 AM
Edited Feb 12, 2009 at 12:13 PM
symptom :

In debug mode
  • put a RSS widget on the page > it displays normally
  • put a second one (the same widget or not, just a RSS one) > the new one displays normally, the first one displays no lines anymore and you have an error message : "Sys.ScriptLoadFailedException : The script "Widgets/FastRssWidget.js" could not be loaded."
  • put as much RSS widget as you want, only the last one displays normally and you have the same error each time


If someone knows about... :)
Feb 13, 2009 at 10:58 AM
Hi Bigboomshakala ,

You are to index the name of the inserted script in fastRssWidgets.ascx.cs

ScriptManager.RegisterStartupScript(this, typeof(Widgets_FastRssWidget), "LoadRSS" + this.index,
                string.Format("var rssLoader{0} = new FastRssWidget( '{1}', '{2}', {3}, {4} ); rssLoader{0}.load();",
                    this._Host.ID, this.Url, this.RssContainer.ClientID, this.Count, cachedJSON ?? "null"), true);

The reason is you can't have several script with the same name on a page.