Solved

Insert an <img> tag in a textarea

Posted on 2004-04-28
9
267 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
 

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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Accepted Solution

by:
amweiss earned 25 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 25 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now