Solved

Insert an <img> tag in a textarea

Posted on 2004-04-28
9
273 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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