Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2005, 08:48 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default HTML block in Text field

I'm an experienced HTML programmer, but I need help with this one…

Not sure if this is possible… I have a blog site. One of the fields I can edit is the title of my blog. I've created a small banner that I'd like to use in place of plain text; however, when I enter the HTML img tags into the field, the code is always displayed as text. So basically, instead of entering my blog title of "Quick Slants," I entered something like <img src="image.gif">. When I refreshed the page, my new blog title was "<img src="image.gif">" and NOT the image I had created.

I know there must be a tag that disables HTML code; however, I was wondering if there is a tag I can use that will play with the code and make my idea possible.

Any suggestions?

 
Old August 16th, 2005, 09:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Do you by title mean the title element, <title></title>? No, you can't put an image there. It can only contain text.

Or do you mean a "title" on the page, like <h1>My Blog</h1>? In that case it must be something your blog software or service does...

(o<
//\ =^..^=
 
Old August 16th, 2005, 02:25 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It sounds like your HTML is Html encoded before it's displayed. Are you using your own Blog engine or a ready made one? If the latter is true, I think this is done to prevent script attacks in your code....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
a block of html code keyvanjan ASP.NET 1.0 and 1.1 Basics 2 July 14th, 2006 12:48 AM
Parsing a block of text SiliconFuRy Pro PHP 6 December 15th, 2004 06:43 AM
Ch3, P.76 - text.html/text.php not working Hostile BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 May 15th, 2004 11:09 AM
Retrive text from input type field of html file?? bikash Javascript 10 July 30th, 2003 04:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.