473,804 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

html in textarea

Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.
Jul 17 '05 #1
4 14692
megha wrote:
Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.


You should not use a JTextArea for that, but instead use a JEditorPane or
JTextPane for this.
Brgds, Herman
--
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Visit us : http://users.skynet.be/herman.timmermans
Jul 17 '05 #2
I am not using any of this infact it is a plane textarea of html in
jsp file but is not doing the proper functioning please advice.

Thanks


Herman Timmermans <ti************ ********@skynet .be> wrote in message news:<40******* *************** @news.skynet.be >...
megha wrote:
Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.


You should not use a JTextArea for that, but instead use a JEditorPane or
JTextPane for this.
Brgds, Herman

Jul 17 '05 #3
megha wrote:
I am not using any of this infact it is a plane textarea of html in
jsp file but is not doing the proper functioning please advice.

Thanks


Herman Timmermans <ti************ ********@skynet .be> wrote in message
news:<40******* *************** @news.skynet.be >...
megha wrote:
> Hi all
>
> I am adding signature in textarea which is stored as text in database
> now if i add html tags to it and later retrieve it in textarea it
> shows all tags of html but not their function. How i can get proper
> signature with html function.


You should not use a JTextArea for that, but instead use a JEditorPane or
JTextPane for this.
Brgds, Herman


Maybe you should be a little more precise and clear in stating your problem.
Maybe you can post the source code of the JSP and post as well the signature
you want to display ?
Herman
--
Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
Anti Spam = remove the "dot" and the "at"
Registered Linux User #264690
Visit us : http://users.skynet.be/herman.timmermans
Jul 17 '05 #4
An html textarea tag will not render html.. it will only show text, so your
html will not be rendered in the text area, it is not designed for that.

What you could do is a preview pane with a div tag and use javascript on the
client side to populate the div tag using the innerHTML property of a div.
This would then render the html. Or display the html in any other way... it
won't be rendered in a textarea, as far as I know.

hope this helps

cheers
Martin

--

---------------
http://www.nonstoploop.co.uk/ - dynamic websites
http://www.rossanobacchin.be/ - fine art
http://www.weycameras.co.uk/ - photographic supplies
---------------

"megha" <me***@4cplus.c om> wrote in message
news:ee******** *************** **@posting.goog le.com...
Hi all

I am adding signature in textarea which is stored as text in database
now if i add html tags to it and later retrieve it in textarea it
shows all tags of html but not their function. How i can get proper
signature with html function.

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
20948
by: Mark | last post by:
I have found many examples of how to access an HTML text field from PHP, but cannot find the reverse - how to load an HTML form from a MySQL database. Specifically, I have an HTML form which contains several text boxes that correspond to the fields in a MySQL file. What I want to do is call a PHP form that reads one record from MySQL and then populates all of the HTML fields on the calling form. The call to MySQL is not a problem -...
12
2587
by: Phil Powell | last post by:
The customer made a wild request: they want on their admin panel a textarea that will display an existing resume. This textarea, however, must have a dynamic width, one that "fills the screen width of any sized screen". Sorry but I cannot fathom how to do this! <textarea name="resume" cols="108" rows="29" wrap="physical><?= $resume ?></textarea>
4
2828
by: google | last post by:
I would like to print a table, using a while loop to insert as many blank text fields as players specified by the user. How do I put html inside a php loop. This is what I have.... <body> <form name="results" method="post"> Number of players:<input type ="textarea" name="number_players">
5
24740
by: Richard | last post by:
I am filling a TEXTAREA with text and links from a database. I need to display the <a href....> code in the TEXTAREA as a clickable link with _blank targetting. I realise I could simply use a TD but a closed table design and limited space require me to scroll the data loaded from the database. I need to avoid LAYERS for the sake of cross browser compatability (some 3rd world users) so would really like to stick to the TEXTAREA.
4
4928
by: Newbie | last post by:
How would I modify this form to encode *all* the characters in the 'source' textarea to the '%xx' format & place result code into the 'output' textarea? (cross browser compatable) Any help is appreciated. Regards.
4
2291
by: Tauqir | last post by:
I am trying to do a simple thing: I have these two text fields in an HTML form. I want to assign the concatenated value to a TEXTAREA. Can someone help me with the syntax? <HTML> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> </SCRIPT> <table ALIGN="center" border="2" width="100%" cellspacing="8" cellpadding="0"> <FORM action="" method="POST">
6
1665
by: SRafiq | last post by:
Hi I need help with a topic I have an html page and in it i have a textarea which can have a multiple of info, is there any possible way that i can out put a specific area of the textarea using javascript or no its not possible.
5
2237
by: Schraalhans Keukenmeester | last post by:
I want to build a very basic online text editor, to allow customers to modify their own sites' html content using a simple form with textarea element. I read the HTML file like so: <?PHP function EditText ($filepath) {
7
3360
by: Xh | last post by:
Hi All, I have problems with generating valid HTML output there are few HTML elements that i don't what to output as <tagname/> but as <tagname></tagnamebut Xalan keeps generating them as <tagname/> there are few really annoying situations where adding   to some HTML elements is necessary:
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9130
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.