6 messages in com.googlegroups.bloggerdev[bloggerDev] Re: '</ifame>' disappear...| From | Sent On | Attachments |
|---|---|---|
| Ken Chen | 01 Jun 2008 03:22 | |
| Jeff Scudder | 02 Jun 2008 14:38 | |
| Ken Chen | 04 Jun 2008 00:48 | |
| Ryan Cullen | 04 Jun 2008 08:39 | |
| Jeff Scudder | 04 Jun 2008 08:58 | |
| Ken Chen | 04 Jun 2008 23:18 |
| Subject: | [bloggerDev] Re: '</ifame>' disappear when publishing a blog post.![]() |
|---|---|
| From: | Jeff Scudder (j....@google.com) |
| Date: | 06/04/2008 08:58:10 AM |
| List: | com.googlegroups.bloggerdev |
Hi Ken,
Thank you for sending the request and response. This looks like the same thing I was seeing, and it seems that the problem might be newlines in your XHTML. Does it work if you remove the newlines? I was able to post iframe content in both XHTML and HTML when the content looks like this:
HTML <content type="html"><p><iframe width='510' height='300' frameborder='0' scrolling='no' src='http://www.google.com'></iframe></ p></content> XHTML <content type="xhtml"><div xmlns="http://www.w3.org/1999/ xhtml"><p><iframe width='510' height='300' frameborder='0' scrolling='no' src='http://www.google.com'></iframe></p></div></ content>
Cheers,
Jeff
On Jun 4, 12:49 am, Ken Chen <Ken7...@gmail.com> wrote:
Thanks.
The following 2 sections, first is what I send to Google Blogger API, the 2nd section is the server's response.
Only '</iframe>' disappear is server's response.
======================== 8< ===========================
POST /feeds/3092354783568168411/posts/default HTTP/1.1 Content-type: application/atom+xml Authorization: AuthSub token="CNvr9-i5BBCE3ZkV" Content-length: 381 UserAgent: PHP Host:www.blogger.com Connection: Close
<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom"><title>test iframe</ title><content type="xhtml"><div> <p><iframe width='510' height='300' frameborder='0' scrolling='no' src='http://friend.top1069.com/ showmap.html? center=25.0268562172,121.470122337&markers=25.0268562172,121.470122337,purple&zoom=15'></ iframe></p> </div></content></entry>
======================== 8< ===========================
<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet
href="http://www.blogger.com/styles/atom.css" type="text/css"?><entry
xmlns='http://www.w3.org/2005/Atom'><id>tag:blogger.com,1999:blog-3092354783568168411.post-1069992423858092977</id><published>2008-06-04T15:42:00.001+08:00</published><updated>2008-06-04T15:42:38.985+08:00</updated><title
type='text'>test iframe</title><content type='html'><div>
<p><iframe src='http://friend.top1069.com/showmap.html?
center=25.0268562172,121.470122337&amp;markers=25.0268562172,121.470122337,purple&amp;zoom=15'
scrolling='no' frameborder='0' height='300' width='510'/></p>
</div></content><link rel='alternate' type='text/html'
href='http://kenchenblog.blogspot.com/2008/06/test-iframe_8711.html'
title='test iframe'/><link rel='replies' type='text/html'
href='http://www.blogger.com/comment.g?blogID=3092354783568168411&postID=10699...
title='0 個意見'/><link rel='replies' type='application/atom+xml'
href='http://kenchenblog.blogspot.com/feeds/1069992423858092977/
comments/default' title='張貼意見'/><link rel='self' type='application/atom
+xml' href='http://www.blogger.com/feeds/3092354783568168411/posts/
default/1069992423858092977'/><link rel='edit' type='application/atom
+xml' href='http://www.blogger.com/feeds/3092354783568168411/posts/
default/1069992423858092977'/><author><name>Ken Chen</
name><email>nore...@blogger.com</email></author></entry>
On Jun 3, 5:39 am, Jeff Scudder <j....@google.com> wrote:
Hi Ken,
I've tried to reproduce this, but I'm seeing slightly different behavior. Could I see the server's response to your POST request?
Thank you,
Jeff
On Jun 1, 3:22 am, Ken Chen <Ken7...@gmail.com> wrote:
Hi.
I am trying to creating post through Blogger Data API. I find, the '</ iframe>' will disappear after posting to the Blogger.
Please check this URL:http://kenchenblog.blogspot.com/2008/06/test-iframe.html
Because the '</iframe>' disappeared, the page is broken. But in original post, the '</iframe>' is exists.
What I send to logger Data API is:
POST /feeds/3092354783568168411/posts/default HTTP/1.1 Content-type: application/atom+xml Authorization: AuthSub token="CNvr9-i5BBCepqr-_f____8B" Content-length: 380 UserAgent: PHP Host:www.blogger.com Connection: Close
<?xml version="1.0" encoding="UTF-8"?> <entry xmlns="http://www.w3.org/2005/Atom"> <title>test iframe</title> <content type="xhtml"> <div> <p> <iframe width='510' height='300' frameborder='0' scrolling='no' src='xxxxx'> </iframe> </p> </div> </content> </entry>
In Blogger, it is: <div> <p><iframe src='http://friend.top1069.com/showmap.html? center=25.0450923983,121.557712555&markers=25.0450923983,121.557712555,purple&zoom=7' scrolling='no' frameborder='0' height='300' width='510'/></p> </div>
The '</iframe>' disappears! I also try to use '<object>' to replace '<iframe>'. Firefox works fine, but IE6 seems not to understand '<object type="text/html"",
Thanks a lot, and please forgive my poor English.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Blogger Data API" group.
To post to this group, send email to blog...@googlegroups.com
To unsubscribe from this group, send email to
blog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/bloggerDev?hl=en
-~----------~----~----~----~------~----~------~--~---




