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
Solved

Insert an <img> tag in a textarea

Posted on 2004-04-28
9
271 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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

790 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