?
Solved

Insert an <img> tag in a textarea

Posted on 2004-04-28
9
Medium Priority
?
278 Views
Last Modified: 2012-06-22
I have a textarea that saves text to a table db to show text in other page.
I thought that adding an <img scr="image.gif"> in the textarea would work (I mean, would show the image in the showing page) but for my surprise, it doesn't.
When I see the source code in the showing page, the code is ok, but the image is not shown (the page shows only a small icon, not like the one that image is not found).
When I see the properties of the image, it doesn't show anything, only the width and height if I specify them in the tag. The image is saved correctly, If I type the url of the image in the browser it shows it perfectly.
What can be happening?
Thank you!
0
Comment
Question by:DeLaVegaz
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 33

Expert Comment

by:hongjun
ID: 10941877
it is not possible to show an image in a textarea.
0
 

Author Comment

by:DeLaVegaz
ID: 10941921
And the reason about that? How can I solve?
0
 

Expert Comment

by:amweiss
ID: 10941948
are you sure your scr is pointing the image?  Try putting in the full url instead.  If it can't find an image (which happens if the folder is wrong or something like that) you will only get the small icon.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:DeLaVegaz
ID: 10941992
I already try using the full url:

<img src="http://www.mysite.com/images/image.gif">

But it's the same :(
0
 

Accepted Solution

by:
amweiss earned 75 total points
ID: 10942099
make sure you have the image loaded properly on the server...try putting that url into a browser and make sure you can it.
0
 
LVL 11

Assisted Solution

by:L00M
L00M earned 75 total points
ID: 10942173
agree with amweiss
Either you are not supplying the proper path, or the HTML is malformed
0
 
LVL 33

Expert Comment

by:hongjun
ID: 10944584
you accepted an answer.
So do you mean that you managed to get an image appeared in a textarea?

hongjun
0
 

Author Comment

by:DeLaVegaz
ID: 10944685
No, that was not the question, I think you understood wrong...
I wanted to put an <img> tag in a textarea, and then to appear in other page where I printed the result.... for some strange reason it was not working, although everything's was right, I didn't change anything, and it start working without touching anything...
Thanks
0
 
LVL 33

Expert Comment

by:hongjun
ID: 10947792
ok
i really misunderstood.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question