Problem including iframe in post

  • Hi . I am trying to include an iframe tag in my post. I tried putting a text box on the widget and writing <iframe src=”http://xyz.jsp” name=”a” id=”a”></iframe> in the text box . I tried this with the tags as well before the iframe tags.
    I also tried escaping the characters in the tag like ” , > , < and / with the substitutes as given on http://codex.wordpress.org/Writing_Code_in_Your_Posts . Still am not able to get the iframe tag on the page. Can someone please point out what i am doing wrong ?

  • Due to security concerns with javascipt and iFrames, they are stripped from posts, pages and widgets. This means you won’t be able to insert the text that you want.

    Sorry!

  • iframes are all stripped here at WordPress.com due to security concerns. Please be sure to get your instructions for WordPress.com blogs, not WordPress.org ones, as the software that we have here is very different than that the independently-hosted blogs are running. Because we share our blogging platform, we have tighter security rules, as one person could otherwise render us all vulnerable.

    What are you trying to get done? Perhaps there’s a workaround.

  • Thanks cornell and raincoaster for replying .

    I need to get some information from my remote location and display it on my blog.
    So am using an iframe for the same. An a href is working fine but I need to display it on my own blog and not when i click on it.

    Any suggestions are welcome.

    Thanks in advance.

  • Is there a way to do it as an RSS feed? You can always put that in a widget.

  • Just for reference, some iframes are allowed from some sites but we’re not aware of what’s allowed and what’s not. Reference.

    You may want to try getting this site whitelisted. Best bet would be sending in a feedback via the link at the upper right of your Dashboard with an explaination of the situation and a link to the site in question.

    Could you please post where you’re getting this iframe from? It may help us help you if we could see the code that you’re trying to put in there.

    Aside: Just for reference, the link within this post is broken. The domain name within it is missing the extention.

    Regards,
    -drmike

  • BTW, what exactly is the security problem with iframes? I thought browsers do a pretty good job of preventing “cross-site” scripting attacks by not allowing any script in the iframe to access the parent window.

  • The problem isn’t, as I understand it, in the viewing end; it’s in the fact that we’re on a shared blogging platform. Everyone with the same blog template as you is using the exact same software as you, so everything you introduce to your blog is in some sense shared with all of those people’s blogs. Although god knows I’m not a techie; still, this is my understanding of the situation.

  • As I understand it, it’s because the content within the iframe is not sent through the filters in place here at wp.com.

    I may be wrong though.

    I think IE6 still had issues with the cross-site attacks. I’d have to go do a search…

  • The problem for me is that WordPress won’t support Mapplets, which would be a must for a travel blog. Can you look at Mapplets and consider adding support for iframes from whitelisted domains? Or let us know if this is never going to happen so we can move on.

    Thanks,

  • Only staff can tell you that for sure. I would suggest sending in a feedback from your dashboard.

  • I would suggest not holding your breath. It could easily be a year or more, if ever.

  • Agreed. There have been whitelisting requests in the past that I believe have never been followed up on. best bet, as noted, would be the suggestion made via your dashboard.

  • I found this post as I was having an iframe issue myself. I was trying to post a Google map and the iframe was getting stripped away. Well, I wandered around my blog and found a cool widget called “Platial Mapkit.” All you do is go to your Widgets, drag the Platial Mapkit to your sidebar. It will ask you for your map code. You will need to create an account at the Platial Mapkit website. From there you can create and edit your map. They have lots of cool features like letting people post comments, let them add their own locations, etc.

    The features are really awesome!

  • In my blog fortyfivepesos.wordpress.com i got a page with a list of musics i’ve listen in 2007. As you can imagine the list is quite long. So my question is. Is there a way to include a side bar to scroll down the list? thanks

  • The topic ‘Problem including iframe in post’ is closed to new replies.