Thanks Jeremy.

That worked just fine.

Kind Regards
Geoff

On Mar 28, 3:32 pm, Jeremy Geerdes <[email protected]> wrote:
> With the code in place, you're serving your page as Content-type: 
> application/xhtml+xml, which has some ramifications for the page DOM. Of 
> particular concern, pages served with this content type do not have a 
> document.write method, which is utilized in the JSAPI to load scripts under 
> normal circumstances. There is, however, a workaround. Rather than loading 
> the Feeds API as you are, move the script elements to the very bottom of the 
> page and change the first two lines of your newsfeed.js (i.e., the first two 
> lines with code on them, that is) to this:
>
> google.load('feeds', '1', {'callback' : showFeed});
>
> That should work a bit better for you.
>
> Jeremy R. Geerdes
> Generally Cool Guy
> Des Moines, IA
>
> For more information or a project quote:
> [email protected]
>
> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan 
> Church!
>
> On Mar 28, 2011, at 8:15 AM, ptgeoff wrote:
>
>
>
> > Several years ago I started placing this code at the top of my web
> > pages.  Can't remember where I first read about this.
>
> > <?php
> >   if ( isset($_SERVER["HTTP_ACCEPT"]) and
> > stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
> >    header("Content-type: application/xhtml+xml");
> >   }
> >   else {
> >    header("Content-type: text/html");
> >    }
> > ?>
>
> > I have just started using the Feed API but found that it will not work
> > with this code in place.
>
> > See:
> >www.1ontheweb.net/newsfeed-1.html  (without this code)
>
> >www.1ontheweb.net/newsfeed-2.html  (with this code)
>
> > Why is this?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google AJAX APIs" 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 
> > athttp://groups.google.com/group/google-ajax-search-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" 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-ajax-search-api?hl=en.

Reply via email to