Solved

Insert an <img> tag in a textarea

Posted on 2004-04-28
9
274 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
Technology Partners: 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!

 

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

Technology Partners: 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

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/…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

691 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