No one?

On Jan 12, 1:41 am, ale <[email protected]> wrote:
> Hi everybody,
> I'm trying to include a feed rss in my application,
> I'm using the AjaxLoader library
>
> http://code.google.com/docreader/#p=google-documentation-reader,gwt-g...
>
> and the Google AJAX Feed API
>
> http://code.google.com/intl/it/apis/ajaxfeeds/
>
> this is my code:
>
> ...
>                 AjaxLoader.init("KEY");  // I omitted the key only here
>                 AjaxLoaderOptions options = AjaxLoaderOptions.newInstance();
>                 AjaxLoader.loadApi("feeds", "1", new Runnable() {
>                         public void run() {
>                                 rssLoaded();
>                         }
>                 }, options);
> ...
>
>       private void rssLoaded(){
>                 panel = new SimplePanel();
>                 nativeMakeRssPanel(panel());
>                 pnlRss.setWidget(panel);
>         }
>
> ...
> private native void nativeMakeWeatherPanel(Element feedDiv) /*-{
>                 var feed = new 
> $wnd.google.feeds.Feed("http://www.digg.com/rss/
> index.xml");
>              feed.load(function(result) {
>             if (!result.error) {
>                    var container = feedDiv;
>                            for (var i = 0; i < result.feed.entries.length; 
> i++) {
>                                    var entry = result.feed.entries[i];
>                                    var div = document.createElement("div");
>                                    
> div.appendChild(document.createTextNode(entry.title));
>                                    container.appendChild(div);
>           }
>         }
>       });
>
>         }-*/;
>
> I only put the javascript in the tutorial of the feed api instead of
> the javascript in the tutorial oh ajaxloader (that used visualization
> api, and work fine...)
>
> the error is:
>
> com.google.gwt.dev.js.JsParserException: illegal character
>         at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88)
>         at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459)
>         at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError
> (TokenStream.java:1553)
> ...
>
> can you help me?
>
> Thanks..
> ah, if you know a simplest method to load rss fedd I will
> appreciate... my aim is to load the Yahoo! Weather RSS Feed...
> the example of ibm of three years ago doesen't work ...
>
> Thanks!
> regards
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.


Reply via email to