HTML Code Disappearing
-
I’m afraid I’m really losing patience with this.
I can’t understand what I’m doing wrong. I have some HTML code I want to put into WordPress, I’m exploring the various features of WP and thinking of switching from Blogger. I want to embed some HTML code into the body of my blog, see what I do on blogger at http://goforarun.blogspot.com/ The motionbased bit is what the code generates for the blog.
When I want to paste code into WP, I go from the Visual tab to the Code tab, I paste my code into the Code tab, then switch back to Visual tab. I can see my Motionbased code all working fine for about 3 seconds before the whole thing goes blank and just disappears.
Can someone tell me whats going on, or what am I doing wrong? I’ve searched the forums and haven’t really found a satisfactory answer to this, although its evident others have had problems with this.
Thanks,
Dex.
-
Next time please just paste the code here that you’re trying to add in. It’s kind of a pain trying to dig through another site trying to figure out what you’re trying to do. Also not everybody can pull up page source. :)
Digging through the code shows that these are iframes. iframes are removed here at wp.com from all user input due to security concerns since you can pass through hazardious code through them. Here’s a recent example of what came through an iframe used in a spam email recently:
http://isc.sans.org/diary.html?storyid=2639&rss
Not sure which threads you’re looking at as this is a very much discussed topic around here and we always explain what the issue is with iframes. Would love to see what you’re looking at where we haven’t responded.
Hope this helps,
-drmike -
drmike,
Thanks for the reply, below is an example of the code I’m trying to embed.
<iframe src=”http://trail.motionbased.com/trail/invitation/accept.mb?senderPk.pkValue=9237&unitSystemPkValue=2&episodePk.pkValue=2794972&backgroundDatasourcePk.pkValue=23&view=portlet” width=”530px” height=”300px” title=”MotionBased Activity Viewport” scrolling=”no” frameborder=”0″> </iframe>
I know nothing about code at all, but I can see the reference to “iframe” in the above code and suspect this is what you are referring to. This is one of the main features of my blog so I suspect that my desire to move from Blogger to WP is not possible until WP accepts frames?
I think you may have misunderstood about not having responded, the above is my first post at WP, not sure how you thought I was commenting on someone not responding. I was simply saying that I have searched through the forums and found posts about text disappearing, but couldn’t find anything specific to my problem. I was simply trying to infer that I had looked for an answer prior to posting the question. Sorry for any misunderstanding.
Thanks for your help.
Dex.
-
If you want to post code AS code, it should be possible, but if you want to actually use iframes, you won’t be able to do that at WordPress.com and should probably stick with where you are. Because we share our blogging backbone here, we have to be extra-diligent about security and they introduce a potential risk that becomes too large when shared across a million blogs.
You would be able to download WP software from WordPress.org and get hosting for it and then you’d be free to use iFrames, though. It runs very similarly to what we have here; see the Read Me First sticky thread at the head of the forums for details.
We do discuss iframes, embeds, and the posting of raw code quite often here and it should have come up in the search, but if it didn’t, oh well.
-
Hi, I too am having trouble posting html code.
It keeps disappearing.
I am not a very sophisticated html user, so bear with me please.
I created a table 3×3 on a Page, into which I want to paste images (thumbnails linked to .jpg files).
the 2nd and 3rd row of my table disappeared. Below is what remains:
Thanks for your help.
<!–TABLE START–>
<table border=”2″ width=”495″>
<tr align=”center”>
<td><img src=”http://kiteastman.wordpress.com/files/2007/06/night.thumbnail.jpg” alt=”Night” /></td>
<td><img src=”http://kiteastman.wordpress.com/files/2007/06/gathering.thumbnail.jpg” alt=”Gathering” /></td>
<td><img src=”http://kiteastman.wordpress.com/files/2007/06/autumn.thumbnail.jpg” alt=”Autumn” /> </td>
</tr>
</table>
<!–TABLE END–> -
I had nothing but trouble the time I tried to use a table. It doesn’t sound like it would be a solution for as you have images (mine was just text), but my work around was to create the table, view it as a local file in Firefox, take a screen cap, crop the image and upload the image.
-
-
-
Yes I’ve been having trouble with HTML code disappearing too. However, sometimes when I re-enter and save it, then it stays. It’s really frustrating when you’ve typed up quite a bit and it all disappears. My code is very very simple. For example just inserting a link or an image (on an external server).
-
it happens to me too. specially when i enter a width on the img tag. It rarely stays there the 1st time. I always have to edit and add it again.
I’m gaining the habit of a always making a Ctrl+C before i post, whenever i write some kind of code on my posts.
-
Yeah! That’s it, it doesn’t stick the 1st time and sometimes I even have to edit it twice. I guess the only way to deal with it is the way you’re doing it…using ctrl+c.
At the very beginning, I thought I was imagining things. Then later, I thought it was only me who was having this problem.
I find also, if you typed in the code wrong like forgetting to close it or forgetting a quote, the chances of it disappearing are higher.
-
-
I have the same exact problem as everyone else here.
I will put in the code that will separate my paragraphs to make my pages look neater. Then I would come back just a little while later, and the code is gone, and I have to put it back in again. It’s just such a hassle.
-
-
IF you’re trying to do spacing with tags, do a forum search please and you’ll find a million threads on the solution; some tags work, some common ones don’t.
-
Mozilla 1.7.12 worked for me but I was having the same problem as moonlightninjas in Safari 3 and Safari 2.0.4.
-
Old thread, but was this resolved? I noticed a major problem with WP’s ‘write’ page from day one. And, its not just HTML. I’ve lost both text and HTML just from switching back and forth from ‘Visual’ to ‘Code’ screens and saving. It seems to randomly delete parts, replace code with odd symbols, etc. Simple hyperlinks and even slide.com slideshow code are decimated. It’s like the old Java-crap errors I’d see years ago. What is going on?
-
Are you hosted at WordPress.com? If so, you probably saw the threads at the top of the forum relating to the issues we’ve been having for a week or so, and you’ve probably also sent a Support ticket in to staff. If you haven’t, I suggest you search for those threads and if those don’t answer your questions, send your Support ticket in when Support reopens.
If you’re not hosted by WP.com, you’re in the wrong place.
- The topic ‘HTML Code Disappearing’ is closed to new replies.